diff --git a/stage0/src/stdlib_flags.h b/stage0/src/stdlib_flags.h index ad491b0de1..79a0e58edd 100644 --- a/stage0/src/stdlib_flags.h +++ b/stage0/src/stdlib_flags.h @@ -1,4 +1,3 @@ -// update me! #include "util/options.h" namespace lean { diff --git a/stage0/stdlib/Init/Data/Int/Linear.c b/stage0/stdlib/Init/Data/Int/Linear.c index 2fc16a6a4c..63512e5fe5 100644 --- a/stage0/stdlib/Init/Data/Int/Linear.c +++ b/stage0/stdlib/Init/Data/Int/Linear.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Int.Linear -// Imports: Init.ByCases Init.Data.Prod Init.Data.Int.Lemmas Init.Data.Int.LemmasAux Init.Data.Int.DivMod.Bootstrap Init.Data.Int.Cooper Init.Data.Int.Gcd Init.Data.Int.Gcd Init.Data.RArray Init.Data.AC Init.Data.AC +// Imports: Init.ByCases Init.Data.Prod Init.Data.Int.Lemmas Init.Data.Int.LemmasAux Init.Data.Int.DivMod.Bootstrap Init.Data.Int.Cooper Init.Data.Int.Gcd Init.Data.Int.Gcd Init.Data.RArray Init.Data.AC Init.Data.AC Init.LawfulBEqTactics #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -953,6 +953,75 @@ x_1 = l_Int_Linear_instBEqPoly___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Init_Data_Int_Linear_0__Int_Linear_instBEqPoly_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_5); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec_ref(x_1); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec_ref(x_2); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_3); +x_9 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +return x_9; +} +} +else +{ +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +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_dec(x_5); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 2); +lean_inc_ref(x_13); +lean_dec_ref(x_1); +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_16); +lean_dec_ref(x_2); +x_17 = lean_apply_6(x_4, x_11, x_12, x_13, x_14, x_15, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Int_Linear_0__Int_Linear_instBEqPoly_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Init_Data_Int_Linear_0__Int_Linear_instBEqPoly_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} LEAN_EXPORT lean_object* l_Int_Linear_Poly_denote(lean_object* x_1, lean_object* x_2) { _start: { @@ -2493,75 +2562,6 @@ x_10 = l___private_Init_Data_Int_Linear_0__Int_Linear_Expr_toPoly_x27_go_match__ return x_10; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Int_Linear_0__Int_Linear_instBEqPoly_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_dec(x_4); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_5); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec_ref(x_1); -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec_ref(x_2); -x_8 = lean_apply_2(x_3, x_6, x_7); -return x_8; -} -else -{ -lean_object* x_9; -lean_dec(x_3); -x_9 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_9; -} -} -else -{ -lean_dec(x_3); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_10; -lean_dec(x_4); -x_10 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -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_dec(x_5); -x_11 = lean_ctor_get(x_1, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_1, 1); -lean_inc(x_12); -x_13 = lean_ctor_get(x_1, 2); -lean_inc_ref(x_13); -lean_dec_ref(x_1); -x_14 = lean_ctor_get(x_2, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_2, 1); -lean_inc(x_15); -x_16 = lean_ctor_get(x_2, 2); -lean_inc_ref(x_16); -lean_dec_ref(x_2); -x_17 = lean_apply_6(x_4, x_11, x_12, x_13, x_14, x_15, x_16); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Int_Linear_0__Int_Linear_instBEqPoly_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Data_Int_Linear_0__Int_Linear_instBEqPoly_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} LEAN_EXPORT uint8_t l_Int_Linear_Poly_isUnsatEq(lean_object* x_1) { _start: { @@ -3470,6 +3470,7 @@ lean_object* initialize_Init_Data_Int_Gcd(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_RArray(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_AC(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_AC(uint8_t builtin, lean_object*); +lean_object* initialize_Init_LawfulBEqTactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Int_Linear(uint8_t builtin, lean_object* w) { lean_object * res; @@ -3508,6 +3509,9 @@ lean_dec_ref(res); res = initialize_Init_Data_AC(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_LawfulBEqTactics(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Int_Linear_instInhabitedExpr_default___closed__0 = _init_l_Int_Linear_instInhabitedExpr_default___closed__0(); lean_mark_persistent(l_Int_Linear_instInhabitedExpr_default___closed__0); l_Int_Linear_instInhabitedExpr_default___closed__1 = _init_l_Int_Linear_instInhabitedExpr_default___closed__1(); diff --git a/stage0/stdlib/Init/Data/Nat/Linear.c b/stage0/stdlib/Init/Data/Nat/Linear.c index 73eecd9fe6..2f2c4190bb 100644 --- a/stage0/stdlib/Init/Data/Nat/Linear.c +++ b/stage0/stdlib/Init/Data/Nat/Linear.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Nat.Linear -// Imports: Init.ByCases Init.Data.Prod Init.Data.RArray +// Imports: Init.ByCases Init.Data.Prod Init.Data.RArray Init.LawfulBEqTactics #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -49,6 +49,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_Poly_isZero_match__1_splitter___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Var_denote___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_instInhabitedExpr_default; +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_toPoly_go(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_beq___at___Nat_Linear_instBEqPolyCnstr_beq_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_Poly_cancelAux_match__3_splitter___redArg___boxed(lean_object*, lean_object*, lean_object*); @@ -56,6 +57,7 @@ LEAN_EXPORT lean_object* l_Nat_elimOffset___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_Expr_toPoly_go_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_Poly_cancelAux_match__3_splitter___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Nat_Linear_Expr_inc___closed__0; +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_toExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_Expr_denote_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_denote(lean_object*, lean_object*); @@ -89,6 +91,7 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_instBEqExpr; LEAN_EXPORT lean_object* l_Nat_Linear_Expr_ctorIdx(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_toPoly(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_toNormPoly___boxed(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_ctorIdx(lean_object*); @@ -1695,6 +1698,45 @@ x_1 = l_Nat_Linear_instBEqPolyCnstr___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter___redArg(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec_ref(x_1); +x_7 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +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_box(x_4); +x_11 = lean_box(x_7); +x_12 = lean_apply_6(x_3, x_10, x_5, x_6, x_11, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter(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; +x_6 = l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter___redArg(x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter___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_6; +x_6 = l___private_Init_Data_Nat_Linear_0__Nat_Linear_instBEqPolyCnstr_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +return x_6; +} +} LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_ctorIdx(lean_object* x_1) { _start: { @@ -2531,6 +2573,7 @@ return x_7; lean_object* initialize_Init_ByCases(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Prod(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_RArray(uint8_t builtin, lean_object*); +lean_object* initialize_Init_LawfulBEqTactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Nat_Linear(uint8_t builtin, lean_object* w) { lean_object * res; @@ -2545,6 +2588,9 @@ lean_dec_ref(res); res = initialize_Init_Data_RArray(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_LawfulBEqTactics(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Nat_Linear_fixedVar = _init_l_Nat_Linear_fixedVar(); lean_mark_persistent(l_Nat_Linear_fixedVar); l_Nat_Linear_instInhabitedExpr_default___closed__0 = _init_l_Nat_Linear_instInhabitedExpr_default___closed__0(); diff --git a/stage0/stdlib/Init/Grind/AC.c b/stage0/stdlib/Init/Grind/AC.c index ce4b6a2bee..bc2bd4aae0 100644 --- a/stage0/stdlib/Init/Grind/AC.c +++ b/stage0/stdlib/Init/Grind/AC.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Grind.AC -// Imports: Init.Core Init.Data.Nat.Lemmas Init.Data.RArray Init.Data.Bool +// Imports: Init.Core Init.Data.Nat.Lemmas Init.Data.RArray Init.Data.Bool Init.LawfulBEqTactics #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -1877,6 +1877,7 @@ lean_object* initialize_Init_Core(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Lemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_RArray(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Bool(uint8_t builtin, lean_object*); +lean_object* initialize_Init_LawfulBEqTactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind_AC(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1894,6 +1895,9 @@ lean_dec_ref(res); res = initialize_Init_Data_Bool(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_LawfulBEqTactics(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Grind_AC_instInhabitedExpr_default___closed__0 = _init_l_Lean_Grind_AC_instInhabitedExpr_default___closed__0(); lean_mark_persistent(l_Lean_Grind_AC_instInhabitedExpr_default___closed__0); l_Lean_Grind_AC_instInhabitedExpr_default = _init_l_Lean_Grind_AC_instInhabitedExpr_default(); diff --git a/stage0/stdlib/Init/Grind/Attr.c b/stage0/stdlib/Init/Grind/Attr.c index d8fb14ebea..3d91cbd92c 100644 --- a/stage0/stdlib/Init/Grind/Attr.c +++ b/stage0/stdlib/Init/Grind/Attr.c @@ -39,6 +39,7 @@ LEAN_EXPORT lean_object* l_Lean_Grind_genHEqPattern(lean_object*, lean_object*, static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__7; static lean_object* l_Lean_Parser_Attr_grindLR___closed__10; static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__5; +static lean_object* l_Lean_Parser_Attr_grind_x21_x3f___closed__0; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__20; static lean_object* l_Lean_Parser_resetGrindAttrs___closed__4; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__0; @@ -63,6 +64,7 @@ static lean_object* l_Lean_Parser_Attr_grindExt___closed__4; static lean_object* l_Lean_Parser_Attr_grindSym___closed__5; LEAN_EXPORT lean_object* l_Lean_Grind_genHEqPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Attr_grindEq___closed__4; +static lean_object* l_Lean_Parser_Attr_grind_x21_x3f___closed__1; static lean_object* l_Lean_Parser_Attr_grindSym___closed__0; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__4; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindEqRhs; @@ -76,6 +78,7 @@ static lean_object* l_Lean_Parser_Attr_grindEq___closed__8; static lean_object* l_Lean_Parser_Attr_grindBwd___closed__8; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__6; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__7; +static lean_object* l_Lean_Parser_Attr_grind_x21___closed__2; static lean_object* l_Lean_Parser_Attr_grindGen___closed__11; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grind; static lean_object* l_Lean_Parser_Attr_grindEq___closed__5; @@ -143,6 +146,7 @@ static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__0; static lean_object* l_Lean_Parser_Attr_grindEq___closed__7; static lean_object* l_Lean_Parser_Attr_grindUsr___closed__3; static lean_object* l_Lean_Parser_Attr_grindLR___closed__3; +static lean_object* l_Lean_Parser_Attr_grind_x21___closed__1; LEAN_EXPORT lean_object* l_Lean_Grind_genHEqPattern___redArg(lean_object*); static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__12; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__5; @@ -155,8 +159,10 @@ static lean_object* l_Lean_Parser_Attr_grindMod___closed__0; static lean_object* l_Lean_Parser_Attr_grindBwd___closed__10; static lean_object* l_Lean_Parser_Attr_grind___closed__6; static lean_object* l_Lean_Parser_Attr_grindIntro___closed__3; +LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grind_x21_x3f; static lean_object* l_Lean_Parser_Attr_grindRL___closed__8; static lean_object* l_Lean_Parser_Attr_grindUsr___closed__0; +static lean_object* l_Lean_Parser_Attr_grind_x21___closed__4; static lean_object* l_Lean_Parser_Attr_grindCases___closed__3; static lean_object* l_Lean_Parser_Attr_grindMod___closed__6; static lean_object* l_Lean_Parser_Attr_grindMod___closed__16; @@ -164,6 +170,7 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Attr_grindRL___closed__12; static lean_object* l_Lean_Parser_Attr_grindRL___closed__10; static lean_object* l_Lean_Parser_Attr_grindGen___closed__4; +static lean_object* l_Lean_Parser_Attr_grind_x21___closed__3; static lean_object* l_Lean_Parser_Attr_grindRL___closed__11; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__14; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__4; @@ -188,6 +195,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindRL; static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__1; static lean_object* l_Lean_Parser_resetGrindAttrs___closed__5; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__9; +LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grind_x21; static lean_object* l_Lean_Parser_Attr_grindMod___closed__7; static lean_object* l_Lean_Parser_Attr_grind___closed__5; static lean_object* l_Lean_Parser_Attr_grind_x3f___closed__1; @@ -198,12 +206,14 @@ static lean_object* l_Lean_Parser_Attr_grindMod___closed__5; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__3; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__2; lean_object* l_Lean_Name_mkStr1(lean_object*); +static lean_object* l_Lean_Parser_Attr_grind_x21___closed__0; static lean_object* l_Lean_Parser_Attr_grindLR___closed__8; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Attr_grindBwd___closed__9; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__13; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__1; static lean_object* l_Lean_Parser_Attr_grindMod___closed__4; +static lean_object* l_Lean_Parser_Attr_grind_x21_x3f___closed__4; static lean_object* l_Lean_Parser_resetGrindAttrs___closed__0; static lean_object* l_Lean_Parser_Attr_grindSym___closed__2; static lean_object* l_Lean_Parser_Attr_grindLR___closed__12; @@ -212,10 +222,12 @@ static lean_object* l_Lean_Parser_Attr_grindBwd___closed__4; static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__4; static lean_object* l_Lean_Parser_Attr_grindGen___closed__2; static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__11; +static lean_object* l_Lean_Parser_Attr_grind_x21_x3f___closed__3; static lean_object* l_Lean_Parser_Attr_grindExt___closed__0; static lean_object* l_Lean_Parser_Attr_grindBwd___closed__5; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__2; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__2; +static lean_object* l_Lean_Parser_Attr_grind_x21_x3f___closed__2; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__0; static lean_object* l_Lean_Parser_Attr_grindMod___closed__3; static lean_object* l_Lean_Parser_Attr_grind___closed__1; @@ -2423,6 +2435,74 @@ x_1 = l_Lean_Parser_Attr_grind___closed__6; return x_1; } } +static lean_object* _init_l_Lean_Parser_Attr_grind_x21___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind!", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21___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_Lean_Parser_Attr_grind_x21___closed__0; +x_2 = l_Lean_Parser_Attr_grindGen___closed__1; +x_3 = l_Lean_Parser_resetGrindAttrs___closed__1; +x_4 = l_Lean_Parser_resetGrindAttrs___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_Parser_Attr_grind_x21___closed__2() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Parser_Attr_grind_x21___closed__0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grind___closed__4; +x_2 = l_Lean_Parser_Attr_grind_x21___closed__2; +x_3 = l_Lean_Parser_Attr_grindGen___closed__4; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grind_x21___closed__3; +x_2 = lean_unsigned_to_nat(1022u); +x_3 = l_Lean_Parser_Attr_grind_x21___closed__1; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Attr_grind_x21___closed__4; +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Attr_grind_x3f___closed__0() { _start: { @@ -2491,6 +2571,74 @@ x_1 = l_Lean_Parser_Attr_grind_x3f___closed__4; return x_1; } } +static lean_object* _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind!\?", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21_x3f___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_Lean_Parser_Attr_grind_x21_x3f___closed__0; +x_2 = l_Lean_Parser_Attr_grindGen___closed__1; +x_3 = l_Lean_Parser_resetGrindAttrs___closed__1; +x_4 = l_Lean_Parser_resetGrindAttrs___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_Parser_Attr_grind_x21_x3f___closed__2() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Parser_Attr_grind_x21_x3f___closed__0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grind___closed__4; +x_2 = l_Lean_Parser_Attr_grind_x21_x3f___closed__2; +x_3 = l_Lean_Parser_Attr_grindGen___closed__4; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grind_x21_x3f___closed__3; +x_2 = lean_unsigned_to_nat(1022u); +x_3 = l_Lean_Parser_Attr_grind_x21_x3f___closed__1; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grind_x21_x3f() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Attr_grind_x21_x3f___closed__4; +return x_1; +} +} lean_object* initialize_Init_Tactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind_Attr(uint8_t builtin, lean_object* w) { @@ -2890,6 +3038,18 @@ l_Lean_Parser_Attr_grind___closed__6 = _init_l_Lean_Parser_Attr_grind___closed__ lean_mark_persistent(l_Lean_Parser_Attr_grind___closed__6); l_Lean_Parser_Attr_grind = _init_l_Lean_Parser_Attr_grind(); lean_mark_persistent(l_Lean_Parser_Attr_grind); +l_Lean_Parser_Attr_grind_x21___closed__0 = _init_l_Lean_Parser_Attr_grind_x21___closed__0(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21___closed__0); +l_Lean_Parser_Attr_grind_x21___closed__1 = _init_l_Lean_Parser_Attr_grind_x21___closed__1(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21___closed__1); +l_Lean_Parser_Attr_grind_x21___closed__2 = _init_l_Lean_Parser_Attr_grind_x21___closed__2(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21___closed__2); +l_Lean_Parser_Attr_grind_x21___closed__3 = _init_l_Lean_Parser_Attr_grind_x21___closed__3(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21___closed__3); +l_Lean_Parser_Attr_grind_x21___closed__4 = _init_l_Lean_Parser_Attr_grind_x21___closed__4(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21___closed__4); +l_Lean_Parser_Attr_grind_x21 = _init_l_Lean_Parser_Attr_grind_x21(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21); l_Lean_Parser_Attr_grind_x3f___closed__0 = _init_l_Lean_Parser_Attr_grind_x3f___closed__0(); lean_mark_persistent(l_Lean_Parser_Attr_grind_x3f___closed__0); l_Lean_Parser_Attr_grind_x3f___closed__1 = _init_l_Lean_Parser_Attr_grind_x3f___closed__1(); @@ -2902,6 +3062,18 @@ l_Lean_Parser_Attr_grind_x3f___closed__4 = _init_l_Lean_Parser_Attr_grind_x3f___ lean_mark_persistent(l_Lean_Parser_Attr_grind_x3f___closed__4); l_Lean_Parser_Attr_grind_x3f = _init_l_Lean_Parser_Attr_grind_x3f(); lean_mark_persistent(l_Lean_Parser_Attr_grind_x3f); +l_Lean_Parser_Attr_grind_x21_x3f___closed__0 = _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__0(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21_x3f___closed__0); +l_Lean_Parser_Attr_grind_x21_x3f___closed__1 = _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__1(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21_x3f___closed__1); +l_Lean_Parser_Attr_grind_x21_x3f___closed__2 = _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__2(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21_x3f___closed__2); +l_Lean_Parser_Attr_grind_x21_x3f___closed__3 = _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__3(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21_x3f___closed__3); +l_Lean_Parser_Attr_grind_x21_x3f___closed__4 = _init_l_Lean_Parser_Attr_grind_x21_x3f___closed__4(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21_x3f___closed__4); +l_Lean_Parser_Attr_grind_x21_x3f = _init_l_Lean_Parser_Attr_grind_x21_x3f(); +lean_mark_persistent(l_Lean_Parser_Attr_grind_x21_x3f); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Grind/Ordered/Linarith.c b/stage0/stdlib/Init/Grind/Ordered/Linarith.c index b69043f2e3..8fe6973fbe 100644 --- a/stage0/stdlib/Init/Grind/Ordered/Linarith.c +++ b/stage0/stdlib/Init/Grind/Ordered/Linarith.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Grind.Ordered.Linarith -// Imports: Init.Grind.Ordered.Module Init.Grind.Ordered.Ring Init.Grind.Ring.Field Init.Data.Ord.Basic Init.Data.Ord.Basic Init.Data.AC Init.Data.AC Init.Data.RArray +// Imports: Init.Grind.Ordered.Module Init.Grind.Ordered.Ring Init.Grind.Ring.Field Init.Data.Ord.Basic Init.Data.Ord.Basic Init.Data.AC Init.Data.AC Init.Data.RArray Init.LawfulBEqTactics #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -1682,6 +1682,84 @@ x_1 = l_Lean_Grind_Linarith_instBEqPoly___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_dec(x_5); +lean_inc(x_3); +return x_3; +} +else +{ +lean_object* x_6; +x_6 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +return x_6; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; +lean_dec(x_4); +x_7 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +return x_7; +} +else +{ +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_dec(x_5); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 2); +lean_inc(x_10); +lean_dec_ref(x_1); +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 2); +lean_inc(x_13); +lean_dec_ref(x_2); +x_14 = lean_apply_6(x_4, x_8, x_9, x_10, x_11, x_12, x_13); +return x_14; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___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_6; +x_6 = l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___redArg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +return x_7; +} +} static lean_object* _init_l_Lean_Grind_Linarith_instReprPoly_repr___closed__0() { _start: { @@ -1784,12 +1862,12 @@ block_34: { 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; uint8_t x_31; lean_object* x_32; lean_object* x_33; x_22 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 0, x_18); lean_ctor_set(x_22, 1, x_21); -lean_inc(x_18); +lean_inc(x_20); x_23 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_18); +lean_ctor_set(x_23, 1, x_20); x_24 = l_Nat_reprFast(x_15); x_25 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_25, 0, x_24); @@ -1798,7 +1876,7 @@ lean_ctor_set(x_26, 0, x_23); lean_ctor_set(x_26, 1, x_25); x_27 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_18); +lean_ctor_set(x_27, 1, x_20); x_28 = l_Lean_Grind_Linarith_instReprPoly_repr(x_16, x_17); x_29 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_29, 0, x_27); @@ -1827,9 +1905,9 @@ x_40 = l_Int_repr(x_14); lean_dec(x_14); x_41 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_41, 0, x_40); -x_18 = x_36; +x_18 = x_37; x_19 = x_35; -x_20 = x_37; +x_20 = x_36; x_21 = x_41; goto block_34; } @@ -1841,9 +1919,9 @@ lean_dec(x_14); x_43 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_43, 0, x_42); x_44 = l_Repr_addAppParen(x_43, x_17); -x_18 = x_36; +x_18 = x_37; x_19 = x_35; -x_20 = x_37; +x_20 = x_36; x_21 = x_44; goto block_34; } @@ -3134,84 +3212,6 @@ lean_dec(x_3); return x_10; } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_dec(x_4); -if (lean_obj_tag(x_2) == 0) -{ -lean_dec(x_5); -lean_inc(x_3); -return x_3; -} -else -{ -lean_object* x_6; -x_6 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_6; -} -} -else -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_7; -lean_dec(x_4); -x_7 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_7; -} -else -{ -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_dec(x_5); -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 2); -lean_inc(x_10); -lean_dec_ref(x_1); -x_11 = lean_ctor_get(x_2, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_2, 1); -lean_inc(x_12); -x_13 = lean_ctor_get(x_2, 2); -lean_inc(x_13); -lean_dec_ref(x_2); -x_14 = lean_apply_6(x_4, x_8, x_9, x_10, x_11, x_12, x_13); -return x_14; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___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_6; -x_6 = l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___redArg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Grind_Ordered_Linarith_0__Lean_Grind_Linarith_instBEqPoly_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -return x_7; -} -} LEAN_EXPORT lean_object* l_Lean_Grind_Linarith_Poly_leadCoeff(lean_object* x_1) { _start: { @@ -3827,6 +3827,7 @@ lean_object* initialize_Init_Data_Ord_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_AC(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_AC(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_RArray(uint8_t builtin, lean_object*); +lean_object* initialize_Init_LawfulBEqTactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind_Ordered_Linarith(uint8_t builtin, lean_object* w) { lean_object * res; @@ -3856,6 +3857,9 @@ lean_dec_ref(res); res = initialize_Init_Data_RArray(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_LawfulBEqTactics(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Grind_Linarith_instInhabitedExpr_default = _init_l_Lean_Grind_Linarith_instInhabitedExpr_default(); lean_mark_persistent(l_Lean_Grind_Linarith_instInhabitedExpr_default); l_Lean_Grind_Linarith_instInhabitedExpr = _init_l_Lean_Grind_Linarith_instInhabitedExpr(); diff --git a/stage0/stdlib/Init/Grind/Ring/CommSemiringAdapter.c b/stage0/stdlib/Init/Grind/Ring/CommSemiringAdapter.c index 910dcd4a9b..4ebedc9d85 100644 --- a/stage0/stdlib/Init/Grind/Ring/CommSemiringAdapter.c +++ b/stage0/stdlib/Init/Grind/Ring/CommSemiringAdapter.c @@ -13,866 +13,478 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__3_splitter___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_Lean_Grind_CommRing_Expr_toPolyS(lean_object*); uint8_t l_Lean_Grind_CommRing_instBEqPoly_beq(lean_object*, lean_object*); -static lean_object* l_Lean_Grind_Ring_OfSemiring_instHashableExpr___closed__0; LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_denoteSInt___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_var_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Grind_CommRing_eq__normS__nc__cert(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Poly_denoteS_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(lean_object*, lean_object*); -uint64_t lean_uint64_of_nat(lean_object*); -uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); -static lean_object* l_Lean_Grind_CommRing_denoteSInt___redArg___closed__0; -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_denoteS_match__1_splitter___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_Lean_Grind_CommRing_denoteSInt___redArg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_eq__normS__cert___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_denoteS___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_denoteSInt(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Grind_Ring_OfSemiring_eq__normS__cert(lean_object*, lean_object*); lean_object* l_Lean_RArray_getImpl___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instHashableExpr; -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Grind_Ring_OfSemiring_npow___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_pow_elim___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_num_elim___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_eq__normS__nc__cert___boxed(lean_object*, lean_object*); lean_object* l_Lean_Grind_Ring_OfSemiring_toQ___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_num_elim(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default; +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_toPoly_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Grind_CommRing_Poly_mul__nc(lean_object*, lean_object*); lean_object* l_Int_pow(lean_object*, lean_object*); lean_object* l_Lean_Grind_Ring_OfSemiring_mul___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_toPolyS__nc(lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_denoteS___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Grind_CommRing_Expr_toPolyS___closed__1; LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Poly_denoteS_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Grind_CommRing_Poly_pow__nc(lean_object*, lean_object*); lean_object* l_Lean_Grind_CommRing_Poly_combine(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_mul_elim___redArg(lean_object*, lean_object*); lean_object* l_Lean_Grind_CommRing_Poly_mul(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_toPoly_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorIdx(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Grind_CommRing_Mon_denote___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_pow_elim(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_denote_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_denote_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_denoteS_match__1_splitter(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_Lean_Grind_CommRing_eq__normS__cert(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_denoteS___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_abs(lean_object*); lean_object* l_Lean_Grind_CommRing_Poly_ofVar(lean_object*); -uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr; -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_eq__normS__cert___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Grind_CommRing_Poly_ofMon(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq___boxed(lean_object*, lean_object*); uint8_t lean_int_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_denoteSInt___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_add_elim___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Grind_Ring_OfSemiring_add___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Grind_Ring_OfSemiring_instBEqExpr___closed__0; -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorIdx___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash___boxed(lean_object*); -LEAN_EXPORT uint64_t l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_add_elim(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteSAsRing(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Grind_CommRing_Expr_toPolyS___closed__0; +LEAN_EXPORT lean_object* l_Nat_cast___at___Lean_Grind_CommRing_Expr_toPolyS_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_denoteS(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Nat_cast___at___Lean_Grind_Ring_OfSemiring_Expr_toPoly_spec__0(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instBEqExpr; -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_var_elim(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Grind_CommRing_Poly_pow(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__3_splitter(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_Grind_Ring_OfSemiring_natCast___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_mul_elim(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default___closed__0; -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorIdx(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_2; -x_2 = lean_unsigned_to_nat(0u); -return x_2; -} -case 1: -{ -lean_object* x_3; -x_3 = lean_unsigned_to_nat(1u); -return x_3; -} -case 2: -{ -lean_object* x_4; -x_4 = lean_unsigned_to_nat(2u); -return x_4; -} -case 3: -{ -lean_object* x_5; -x_5 = lean_unsigned_to_nat(3u); -return x_5; -} -default: -{ -lean_object* x_6; -x_6 = lean_unsigned_to_nat(4u); -return x_6; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorIdx___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorIdx(x_1); -lean_dec_ref(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 2: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_4); -lean_dec_ref(x_1); -x_5 = lean_apply_2(x_2, x_3, x_4); -return x_5; -} -case 3: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_6); -x_7 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_7); -lean_dec_ref(x_1); -x_8 = lean_apply_2(x_2, x_6, x_7); -return x_8; -} -case 4: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_9); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_dec_ref(x_1); -x_11 = lean_apply_2(x_2, x_9, x_10); -return x_11; -} -default: -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); -lean_dec_ref(x_1); -x_13 = lean_apply_1(x_2, x_12); -return x_13; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim(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; -x_6 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_3, x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___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_6; -x_6 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_num_elim___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_num_elim(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_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_2, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_var_elim___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_var_elim(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_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_2, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_add_elim___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_add_elim(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_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_2, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_mul_elim___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_mul_elim(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_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_2, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_pow_elim___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_pow_elim(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_Grind_Ring_OfSemiring_Expr_ctorElim___redArg(x_2, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default___closed__0() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -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_Grind_Ring_OfSemiring_instInhabitedExpr_default() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default___closed__0; -return x_1; -} -} -static lean_object* _init_l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default; -return x_1; -} -} -LEAN_EXPORT uint8_t l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(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; -switch (lean_obj_tag(x_1)) { -case 0: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_1, 0); -x_11 = lean_ctor_get(x_2, 0); -x_12 = lean_nat_dec_eq(x_10, x_11); -return x_12; -} -else -{ -uint8_t x_13; -x_13 = 0; -return x_13; -} -} -case 1: -{ -if (lean_obj_tag(x_2) == 1) -{ -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_ctor_get(x_1, 0); -x_15 = lean_ctor_get(x_2, 0); -x_16 = lean_nat_dec_eq(x_14, x_15); -return x_16; -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -case 2: -{ -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_1, 0); -x_19 = lean_ctor_get(x_1, 1); -x_20 = lean_ctor_get(x_2, 0); -x_21 = lean_ctor_get(x_2, 1); -x_3 = x_18; -x_4 = x_19; -x_5 = x_20; -x_6 = x_21; -goto block_9; -} -else -{ -uint8_t x_22; -x_22 = 0; -return x_22; -} -} -case 3: -{ -if (lean_obj_tag(x_2) == 3) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 0); -x_24 = lean_ctor_get(x_1, 1); -x_25 = lean_ctor_get(x_2, 0); -x_26 = lean_ctor_get(x_2, 1); -x_3 = x_23; -x_4 = x_24; -x_5 = x_25; -x_6 = x_26; -goto block_9; -} -else -{ -uint8_t x_27; -x_27 = 0; -return x_27; -} -} -default: -{ -if (lean_obj_tag(x_2) == 4) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_28 = lean_ctor_get(x_1, 0); -x_29 = lean_ctor_get(x_1, 1); -x_30 = lean_ctor_get(x_2, 0); -x_31 = lean_ctor_get(x_2, 1); -x_32 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(x_28, x_30); -if (x_32 == 0) -{ -return x_32; -} -else -{ -uint8_t x_33; -x_33 = lean_nat_dec_eq(x_29, x_31); -return x_33; -} -} -else -{ -uint8_t x_34; -x_34 = 0; -return x_34; -} -} -} -block_9: -{ -uint8_t x_7; -x_7 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(x_3, x_5); -if (x_7 == 0) -{ -return x_7; -} -else -{ -x_1 = x_4; -x_2 = x_6; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(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_Grind_Ring_OfSemiring_instBEqExpr___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Grind_Ring_OfSemiring_instBEqExpr() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr___closed__0; -return x_1; -} -} -LEAN_EXPORT uint64_t l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; -x_2 = lean_ctor_get(x_1, 0); -x_3 = 0; -x_4 = lean_uint64_of_nat(x_2); -x_5 = lean_uint64_mix_hash(x_3, x_4); -return x_5; -} -case 1: -{ -lean_object* x_6; uint64_t x_7; uint64_t x_8; uint64_t x_9; -x_6 = lean_ctor_get(x_1, 0); -x_7 = 1; -x_8 = lean_uint64_of_nat(x_6); -x_9 = lean_uint64_mix_hash(x_7, x_8); -return x_9; -} -case 2: -{ -lean_object* x_10; lean_object* x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; -x_10 = lean_ctor_get(x_1, 0); -x_11 = lean_ctor_get(x_1, 1); -x_12 = 2; -x_13 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_10); -x_14 = lean_uint64_mix_hash(x_12, x_13); -x_15 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_11); -x_16 = lean_uint64_mix_hash(x_14, x_15); -return x_16; -} -case 3: -{ -lean_object* x_17; lean_object* x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; -x_17 = lean_ctor_get(x_1, 0); -x_18 = lean_ctor_get(x_1, 1); -x_19 = 3; -x_20 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_17); -x_21 = lean_uint64_mix_hash(x_19, x_20); -x_22 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_18); -x_23 = lean_uint64_mix_hash(x_21, x_22); -return x_23; -} -default: -{ -lean_object* x_24; lean_object* x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; -x_24 = lean_ctor_get(x_1, 0); -x_25 = lean_ctor_get(x_1, 1); -x_26 = 4; -x_27 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_24); -x_28 = lean_uint64_mix_hash(x_26, x_27); -x_29 = lean_uint64_of_nat(x_25); -x_30 = lean_uint64_mix_hash(x_28, x_29); -return x_30; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash___boxed(lean_object* x_1) { -_start: -{ -uint64_t x_2; lean_object* x_3; -x_2 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_1); -lean_dec_ref(x_1); -x_3 = lean_box_uint64(x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Grind_Ring_OfSemiring_instHashableExpr___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Grind_Ring_OfSemiring_instHashableExpr() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr___closed__0; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_RArray_getImpl___redArg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_RArray_getImpl___redArg(x_2, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote___redArg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Var_denote___redArg(x_1, x_2); -lean_dec(x_2); -lean_dec_ref(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Var_denote___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Grind_Ring_OfSemiring_Var_denote(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec_ref(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteSAsRing___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_3)) { case 0: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 3); lean_inc(x_4); lean_dec_ref(x_1); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec_ref(x_3); -x_6 = lean_apply_1(x_4, x_5); -return x_6; +x_6 = lean_nat_abs(x_5); +lean_dec(x_5); +x_7 = lean_apply_1(x_4, x_6); +return x_7; } case 1: { -lean_object* x_7; lean_object* x_8; +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_1, 3); +lean_inc(x_8); lean_dec_ref(x_1); -x_7 = lean_ctor_get(x_3, 0); -lean_inc(x_7); -lean_dec_ref(x_3); -x_8 = l_Lean_RArray_getImpl___redArg(x_2, x_7); -lean_dec(x_7); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_3, 0); -lean_inc_ref(x_10); -x_11 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_11); -lean_dec_ref(x_3); -lean_inc_ref(x_1); -x_12 = l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(x_1, x_2, x_10); -x_13 = l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(x_1, x_2, x_11); -x_14 = lean_apply_2(x_9, x_12, x_13); -return x_14; -} -case 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; -x_15 = lean_ctor_get(x_1, 1); -lean_inc(x_15); -x_16 = lean_ctor_get(x_3, 0); -lean_inc_ref(x_16); -x_17 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_17); -lean_dec_ref(x_3); -lean_inc_ref(x_1); -x_18 = l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(x_1, x_2, x_16); -x_19 = l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(x_1, x_2, x_17); -x_20 = lean_apply_2(x_15, x_18, x_19); -return x_20; -} -default: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_1, 5); -lean_inc(x_21); -x_22 = lean_ctor_get(x_3, 0); -lean_inc_ref(x_22); -x_23 = lean_ctor_get(x_3, 1); -lean_inc(x_23); -lean_dec_ref(x_3); -x_24 = l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(x_1, x_2, x_22); -x_25 = lean_apply_2(x_21, x_24, x_23); -return x_25; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote(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_Grind_Ring_OfSemiring_Expr_denote___redArg(x_2, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Grind_Ring_OfSemiring_Expr_denote___redArg(x_1, x_2, x_3); -lean_dec_ref(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denote___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Grind_Ring_OfSemiring_Expr_denote(x_1, x_2, x_3, x_4); -lean_dec_ref(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -switch (lean_obj_tag(x_3)) { -case 0: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -lean_dec_ref(x_3); -x_5 = l_Lean_Grind_Ring_OfSemiring_natCast___redArg(x_1, x_4); -return x_5; -} -case 1: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -lean_dec_ref(x_3); -x_7 = l_Lean_RArray_getImpl___redArg(x_2, x_6); -lean_dec(x_6); -x_8 = l_Lean_Grind_Ring_OfSemiring_toQ___redArg(x_1, x_7); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_9 = lean_ctor_get(x_3, 0); -lean_inc_ref(x_9); -x_10 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_10); +lean_inc(x_9); lean_dec_ref(x_3); -lean_inc_ref(x_1); -x_11 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(x_1, x_2, x_9); -lean_inc_ref(x_1); -x_12 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(x_1, x_2, x_10); -x_13 = l_Lean_Grind_Ring_OfSemiring_add___redArg(x_1, x_11, x_12); -return x_13; +x_10 = lean_apply_1(x_8, x_9); +return x_10; } case 3: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_11; lean_object* x_12; +lean_dec_ref(x_1); +x_11 = lean_ctor_get(x_3, 0); +lean_inc(x_11); +lean_dec_ref(x_3); +x_12 = l_Lean_RArray_getImpl___redArg(x_2, x_11); +lean_dec(x_11); +return x_12; +} +case 5: +{ +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_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); x_14 = lean_ctor_get(x_3, 0); lean_inc_ref(x_14); x_15 = lean_ctor_get(x_3, 1); lean_inc_ref(x_15); lean_dec_ref(x_3); lean_inc_ref(x_1); -x_16 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(x_1, x_2, x_14); -lean_inc_ref(x_1); -x_17 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(x_1, x_2, x_15); -x_18 = l_Lean_Grind_Ring_OfSemiring_mul___redArg(x_1, x_16, x_17); +x_16 = l_Lean_Grind_CommRing_Expr_denoteS___redArg(x_1, x_2, x_14); +x_17 = l_Lean_Grind_CommRing_Expr_denoteS___redArg(x_1, x_2, x_15); +x_18 = lean_apply_2(x_13, x_16, x_17); return x_18; } +case 7: +{ +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_19 = lean_ctor_get(x_1, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_20); +x_21 = lean_ctor_get(x_3, 1); +lean_inc_ref(x_21); +lean_dec_ref(x_3); +lean_inc_ref(x_1); +x_22 = l_Lean_Grind_CommRing_Expr_denoteS___redArg(x_1, x_2, x_20); +x_23 = l_Lean_Grind_CommRing_Expr_denoteS___redArg(x_1, x_2, x_21); +x_24 = lean_apply_2(x_19, x_22, x_23); +return x_24; +} +case 8: +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_1, 5); +lean_inc(x_25); +x_26 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_26); +x_27 = lean_ctor_get(x_3, 1); +lean_inc(x_27); +lean_dec_ref(x_3); +x_28 = l_Lean_Grind_CommRing_Expr_denoteS___redArg(x_1, x_2, x_26); +x_29 = lean_apply_2(x_25, x_28, x_27); +return x_29; +} default: { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_3, 0); -lean_inc_ref(x_19); -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec_ref(x_3); -lean_inc_ref(x_1); -x_21 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(x_1, x_2, x_19); -x_22 = l_Lean_Grind_Ring_OfSemiring_npow___redArg(x_1, x_21, x_20); -lean_dec(x_20); -return x_22; +x_30 = lean_ctor_get(x_1, 3); +lean_inc(x_30); +lean_dec_ref(x_1); +x_31 = lean_unsigned_to_nat(0u); +x_32 = lean_apply_1(x_30, x_31); +return x_32; } } } } -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS(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_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(x_2, x_3, x_4); +x_5 = l_Lean_Grind_CommRing_Expr_denoteS___redArg(x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___redArg(x_1, x_2, x_3); +x_4 = l_Lean_Grind_CommRing_Expr_denoteS___redArg(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteS___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRing(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Grind_CommRing_Expr_denoteS(x_1, x_2, x_3, x_4); lean_dec_ref(x_3); return x_5; } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_denote_match__1_splitter___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_Grind_CommRing_Expr_denoteSAsRing___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +switch (lean_obj_tag(x_3)) { +case 0: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec_ref(x_3); +x_5 = lean_nat_abs(x_4); +lean_dec(x_4); +x_6 = l_Lean_Grind_Ring_OfSemiring_natCast___redArg(x_1, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); +lean_dec_ref(x_3); +x_8 = l_Lean_Grind_Ring_OfSemiring_natCast___redArg(x_1, x_7); +return x_8; +} +case 3: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_3, 0); +lean_inc(x_9); +lean_dec_ref(x_3); +x_10 = l_Lean_RArray_getImpl___redArg(x_2, x_9); +lean_dec(x_9); +x_11 = l_Lean_Grind_Ring_OfSemiring_toQ___redArg(x_1, x_10); +return x_11; +} +case 5: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_12); +x_13 = lean_ctor_get(x_3, 1); +lean_inc_ref(x_13); +lean_dec_ref(x_3); +lean_inc_ref(x_1); +x_14 = l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg(x_1, x_2, x_12); +lean_inc_ref(x_1); +x_15 = l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg(x_1, x_2, x_13); +x_16 = l_Lean_Grind_Ring_OfSemiring_add___redArg(x_1, x_14, x_15); +return x_16; +} +case 7: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_17); +x_18 = lean_ctor_get(x_3, 1); +lean_inc_ref(x_18); +lean_dec_ref(x_3); +lean_inc_ref(x_1); +x_19 = l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg(x_1, x_2, x_17); +lean_inc_ref(x_1); +x_20 = l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg(x_1, x_2, x_18); +x_21 = l_Lean_Grind_Ring_OfSemiring_mul___redArg(x_1, x_19, x_20); +return x_21; +} +case 8: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_22); +x_23 = lean_ctor_get(x_3, 1); +lean_inc(x_23); +lean_dec_ref(x_3); +lean_inc_ref(x_1); +x_24 = l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg(x_1, x_2, x_22); +x_25 = l_Lean_Grind_Ring_OfSemiring_npow___redArg(x_1, x_24, x_23); +lean_dec(x_23); +return x_25; +} +default: +{ +lean_object* x_26; lean_object* x_27; +lean_dec_ref(x_3); +x_26 = lean_unsigned_to_nat(0u); +x_27 = l_Lean_Grind_Ring_OfSemiring_natCast___redArg(x_1, x_26); +return x_27; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteSAsRing(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_Grind_CommRing_Expr_denoteSAsRing___redArg(x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Grind_CommRing_Expr_denoteSAsRing___redArg(x_1, x_2, x_3); +lean_dec_ref(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteSAsRing___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Grind_CommRing_Expr_denoteSAsRing(x_1, x_2, x_3, x_4); +lean_dec_ref(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_denoteS_match__1_splitter___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: { switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_7; lean_object* x_8; +lean_object* x_11; lean_object* x_12; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); lean_dec_ref(x_1); -x_8 = lean_apply_1(x_2, x_7); -return x_8; +x_12 = lean_apply_1(x_2, x_11); +return x_12; } case 1: { -lean_object* x_9; lean_object* x_10; +lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); lean_dec_ref(x_1); -x_10 = lean_apply_1(x_3, x_9); -return x_10; +x_14 = lean_apply_1(x_3, x_13); +return x_14; } case 2: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_15; lean_object* x_16; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_11 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_11); -x_12 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_12); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); lean_dec_ref(x_1); -x_13 = lean_apply_2(x_4, x_11, x_12); -return x_13; +x_16 = lean_apply_1(x_10, x_15); +return x_16; } case 3: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_17; lean_object* x_18; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_14 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_14); -x_15 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_15); +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); lean_dec_ref(x_1); -x_16 = lean_apply_2(x_5, x_14, x_15); -return x_16; +x_18 = lean_apply_1(x_4, x_17); +return x_18; } -default: +case 4: { -lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_19; lean_object* x_20; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_17 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_17); -x_18 = lean_ctor_get(x_1, 1); -lean_inc(x_18); +x_19 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_19); lean_dec_ref(x_1); -x_19 = lean_apply_2(x_6, x_17, x_18); -return x_19; +x_20 = lean_apply_1(x_9, x_19); +return x_20; +} +case 5: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_21 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_21); +x_22 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_22); +lean_dec_ref(x_1); +x_23 = lean_apply_2(x_5, x_21, x_22); +return x_23; +} +case 6: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_24); +x_25 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_25); +lean_dec_ref(x_1); +x_26 = lean_apply_2(x_8, x_24, x_25); +return x_26; +} +case 7: +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_27 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_27); +x_28 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_28); +lean_dec_ref(x_1); +x_29 = lean_apply_2(x_6, x_27, x_28); +return x_29; +} +default: +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_30); +x_31 = lean_ctor_get(x_1, 1); +lean_inc(x_31); +lean_dec_ref(x_1); +x_32 = lean_apply_2(x_7, x_30, x_31); +return x_32; } } } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_denote_match__1_splitter(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___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_denoteS_match__1_splitter(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_8; -x_8 = l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_denote_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; +lean_object* x_12; +x_12 = l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_denoteS_match__1_splitter___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_Nat_cast___at___Lean_Grind_Ring_OfSemiring_Expr_toPoly_spec__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Nat_cast___at___Lean_Grind_CommRing_Expr_toPolyS_spec__0(lean_object* x_1) { _start: { lean_object* x_2; @@ -880,7 +492,26 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(lean_object* x_1) { +static lean_object* _init_l_Lean_Grind_CommRing_Expr_toPolyS___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_nat_to_int(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Grind_CommRing_Expr_toPolyS___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Grind_CommRing_Expr_toPolyS___closed__0; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_toPolyS(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -890,162 +521,392 @@ uint8_t x_2; x_2 = !lean_is_exclusive(x_1); if (x_2 == 0) { -lean_object* x_3; lean_object* x_4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_nat_to_int(x_3); -lean_ctor_set(x_1, 0, x_4); +x_4 = lean_nat_abs(x_3); +lean_dec(x_3); +x_5 = lean_nat_to_int(x_4); +lean_ctor_set(x_1, 0, x_5); return x_1; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); lean_dec(x_1); -x_6 = lean_nat_to_int(x_5); -x_7 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_7, 0, x_6); -return x_7; +x_7 = lean_nat_abs(x_6); +lean_dec(x_6); +x_8 = lean_nat_to_int(x_7); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +return x_9; } } case 1: { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -lean_dec_ref(x_1); -x_9 = l_Lean_Grind_CommRing_Poly_ofVar(x_8); -return x_9; -} -case 2: +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_10); -x_11 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_11); -lean_dec_ref(x_1); -x_12 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_10); -x_13 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_11); -x_14 = l_Lean_Grind_CommRing_Poly_combine(x_12, x_13); -return x_14; +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_nat_to_int(x_11); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 0, x_12); +return x_1; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_nat_to_int(x_13); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} } case 3: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_15); -x_16 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_16); +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); lean_dec_ref(x_1); -x_17 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_15); -x_18 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_16); -x_19 = l_Lean_Grind_CommRing_Poly_mul(x_17, x_18); -return x_19; +x_17 = l_Lean_Grind_CommRing_Poly_ofVar(x_16); +return x_17; } -default: +case 5: { -lean_object* x_20; -x_20 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_20); -switch (lean_obj_tag(x_20)) { +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_1, 0); +lean_inc_ref(x_18); +x_19 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_19); +lean_dec_ref(x_1); +x_20 = l_Lean_Grind_CommRing_Expr_toPolyS(x_18); +x_21 = l_Lean_Grind_CommRing_Expr_toPolyS(x_19); +x_22 = l_Lean_Grind_CommRing_Poly_combine(x_20, x_21); +return x_22; +} +case 7: +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_23); +x_24 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_24); +lean_dec_ref(x_1); +x_25 = l_Lean_Grind_CommRing_Expr_toPolyS(x_23); +x_26 = l_Lean_Grind_CommRing_Expr_toPolyS(x_24); +x_27 = l_Lean_Grind_CommRing_Poly_mul(x_25, x_26); +return x_27; +} +case 8: +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_28); +switch (lean_obj_tag(x_28)) { case 0: { -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_1, 1); -lean_inc(x_21); +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_1, 1); +lean_inc(x_29); lean_dec_ref(x_1); -x_22 = !lean_is_exclusive(x_20); -if (x_22 == 0) +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_20, 0); -x_24 = lean_nat_to_int(x_23); -x_25 = l_Int_pow(x_24, x_21); -lean_dec(x_21); -lean_dec(x_24); -lean_ctor_set(x_20, 0, x_25); -return x_20; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_28, 0); +x_32 = lean_nat_abs(x_31); +lean_dec(x_31); +x_33 = lean_nat_to_int(x_32); +x_34 = l_Int_pow(x_33, x_29); +lean_dec(x_29); +lean_dec(x_33); +lean_ctor_set(x_28, 0, x_34); +return x_28; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_20, 0); -lean_inc(x_26); -lean_dec(x_20); -x_27 = lean_nat_to_int(x_26); -x_28 = l_Int_pow(x_27, x_21); -lean_dec(x_21); -lean_dec(x_27); -x_29 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_29, 0, x_28); -return x_29; +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_28, 0); +lean_inc(x_35); +lean_dec(x_28); +x_36 = lean_nat_abs(x_35); +lean_dec(x_35); +x_37 = lean_nat_to_int(x_36); +x_38 = l_Int_pow(x_37, x_29); +lean_dec(x_29); +lean_dec(x_37); +x_39 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_39, 0, x_38); +return x_39; +} +} +case 3: +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_1); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_1, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_28, 0); +lean_inc(x_42); +lean_dec_ref(x_28); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 0, x_42); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_1); +lean_ctor_set(x_44, 1, x_43); +x_45 = l_Lean_Grind_CommRing_Poly_ofMon(x_44); +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; +x_46 = lean_ctor_get(x_1, 1); +lean_inc(x_46); +lean_dec(x_1); +x_47 = lean_ctor_get(x_28, 0); +lean_inc(x_47); +lean_dec_ref(x_28); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_Grind_CommRing_Poly_ofMon(x_50); +return x_51; +} +} +default: +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_1, 1); +lean_inc(x_52); +lean_dec_ref(x_1); +x_53 = l_Lean_Grind_CommRing_Expr_toPolyS(x_28); +x_54 = l_Lean_Grind_CommRing_Poly_pow(x_53, x_52); +lean_dec(x_52); +return x_54; +} +} +} +default: +{ +lean_object* x_55; +lean_dec_ref(x_1); +x_55 = l_Lean_Grind_CommRing_Expr_toPolyS___closed__1; +return x_55; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_toPolyS__nc(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_nat_abs(x_3); +lean_dec(x_3); +x_5 = lean_nat_to_int(x_4); +lean_ctor_set(x_1, 0, x_5); +return x_1; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_nat_abs(x_6); +lean_dec(x_6); +x_8 = lean_nat_to_int(x_7); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +return x_9; } } case 1: { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_1); -if (x_30 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 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_1, 0); -lean_dec(x_31); -x_32 = lean_ctor_get(x_20, 0); -lean_inc(x_32); -lean_dec_ref(x_20); +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_nat_to_int(x_11); lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 0, x_32); -x_33 = lean_box(0); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_1); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_Grind_CommRing_Poly_ofMon(x_34); -return x_35; +lean_ctor_set(x_1, 0, x_12); +return x_1; } else { -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_36 = lean_ctor_get(x_1, 1); -lean_inc(x_36); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); lean_dec(x_1); -x_37 = lean_ctor_get(x_20, 0); -lean_inc(x_37); -lean_dec_ref(x_20); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_Grind_CommRing_Poly_ofMon(x_40); -return x_41; +x_14 = lean_nat_to_int(x_13); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} +} +case 3: +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +lean_dec_ref(x_1); +x_17 = l_Lean_Grind_CommRing_Poly_ofVar(x_16); +return x_17; +} +case 5: +{ +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_1, 0); +lean_inc_ref(x_18); +x_19 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_19); +lean_dec_ref(x_1); +x_20 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_18); +x_21 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_19); +x_22 = l_Lean_Grind_CommRing_Poly_combine(x_20, x_21); +return x_22; +} +case 7: +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_23); +x_24 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_24); +lean_dec_ref(x_1); +x_25 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_23); +x_26 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_24); +x_27 = l_Lean_Grind_CommRing_Poly_mul__nc(x_25, x_26); +return x_27; +} +case 8: +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_28); +switch (lean_obj_tag(x_28)) { +case 0: +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_1, 1); +lean_inc(x_29); +lean_dec_ref(x_1); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_28, 0); +x_32 = lean_nat_abs(x_31); +lean_dec(x_31); +x_33 = lean_nat_to_int(x_32); +x_34 = l_Int_pow(x_33, x_29); +lean_dec(x_29); +lean_dec(x_33); +lean_ctor_set(x_28, 0, x_34); +return x_28; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_28, 0); +lean_inc(x_35); +lean_dec(x_28); +x_36 = lean_nat_abs(x_35); +lean_dec(x_35); +x_37 = lean_nat_to_int(x_36); +x_38 = l_Int_pow(x_37, x_29); +lean_dec(x_29); +lean_dec(x_37); +x_39 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_39, 0, x_38); +return x_39; +} +} +case 3: +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_1); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_1, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_28, 0); +lean_inc(x_42); +lean_dec_ref(x_28); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 0, x_42); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_1); +lean_ctor_set(x_44, 1, x_43); +x_45 = l_Lean_Grind_CommRing_Poly_ofMon(x_44); +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; +x_46 = lean_ctor_get(x_1, 1); +lean_inc(x_46); +lean_dec(x_1); +x_47 = lean_ctor_get(x_28, 0); +lean_inc(x_47); +lean_dec_ref(x_28); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_Grind_CommRing_Poly_ofMon(x_50); +return x_51; } } default: { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_1, 1); -lean_inc(x_42); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_1, 1); +lean_inc(x_52); lean_dec_ref(x_1); -x_43 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_20); -x_44 = l_Lean_Grind_CommRing_Poly_pow(x_43, x_42); -lean_dec(x_42); -return x_44; +x_53 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_28); +x_54 = l_Lean_Grind_CommRing_Poly_pow__nc(x_53, x_52); +lean_dec(x_52); +return x_54; } } } -} -} -} -static lean_object* _init_l_Lean_Grind_CommRing_denoteSInt___redArg___closed__0() { -_start: +default: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_nat_to_int(x_1); -return x_2; +lean_object* x_55; +lean_dec_ref(x_1); +x_55 = l_Lean_Grind_CommRing_Expr_toPolyS___closed__1; +return x_55; +} +} } } LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_denoteSInt___redArg(lean_object* x_1, lean_object* x_2) { @@ -1053,7 +914,7 @@ _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Grind_CommRing_denoteSInt___redArg___closed__0; +x_4 = l_Lean_Grind_CommRing_Expr_toPolyS___closed__0; x_5 = lean_int_dec_lt(x_2, x_4); if (x_5 == 0) { @@ -1204,7 +1065,183 @@ x_5 = l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Pol return x_5; } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_toPoly_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__3_splitter___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: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec_ref(x_1); +x_12 = lean_apply_1(x_2, x_11); +return x_12; +} +case 1: +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec_ref(x_1); +x_14 = lean_apply_1(x_7, x_13); +return x_14; +} +case 2: +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +lean_dec_ref(x_1); +x_16 = lean_apply_1(x_10, x_15); +return x_16; +} +case 3: +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +lean_dec_ref(x_1); +x_18 = lean_apply_1(x_3, x_17); +return x_18; +} +case 4: +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_19 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_19); +lean_dec_ref(x_1); +x_20 = lean_apply_1(x_9, x_19); +return x_20; +} +case 5: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_21 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_21); +x_22 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_22); +lean_dec_ref(x_1); +x_23 = lean_apply_2(x_4, x_21, x_22); +return x_23; +} +case 6: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_24); +x_25 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_25); +lean_dec_ref(x_1); +x_26 = lean_apply_2(x_8, x_24, x_25); +return x_26; +} +case 7: +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_27 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_27); +x_28 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_28); +lean_dec_ref(x_1); +x_29 = lean_apply_2(x_5, x_27, x_28); +return x_29; +} +default: +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_30); +x_31 = lean_ctor_get(x_1, 1); +lean_inc(x_31); +lean_dec_ref(x_1); +x_32 = lean_apply_2(x_6, x_30, x_31); +return x_32; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__3_splitter(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___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__3_splitter___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___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { switch (lean_obj_tag(x_1)) { @@ -1219,7 +1256,7 @@ lean_dec_ref(x_1); x_6 = lean_apply_1(x_2, x_5); return x_6; } -case 1: +case 3: { lean_object* x_7; lean_object* x_8; lean_dec(x_4); @@ -1241,31 +1278,52 @@ return x_9; } } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_toPoly_match__1_splitter(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___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__1_splitter(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; -x_6 = l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_Ring_OfSemiring_Expr_toPoly_match__1_splitter___redArg(x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Grind_Ring_CommSemiringAdapter_0__Lean_Grind_CommRing_Expr_toPolyS_match__1_splitter___redArg(x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT uint8_t l_Lean_Grind_Ring_OfSemiring_eq__normS__cert(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lean_Grind_CommRing_eq__normS__cert(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_1); -x_4 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_2); +x_3 = l_Lean_Grind_CommRing_Expr_toPolyS(x_1); +x_4 = l_Lean_Grind_CommRing_Expr_toPolyS(x_2); x_5 = l_Lean_Grind_CommRing_instBEqPoly_beq(x_3, x_4); lean_dec_ref(x_4); lean_dec_ref(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_eq__normS__cert___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_eq__normS__cert___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Grind_Ring_OfSemiring_eq__normS__cert(x_1, x_2); +x_3 = l_Lean_Grind_CommRing_eq__normS__cert(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lean_Grind_CommRing_eq__normS__nc__cert(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_1); +x_4 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_2); +x_5 = l_Lean_Grind_CommRing_instBEqPoly_beq(x_3, x_4); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_eq__normS__nc__cert___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Grind_CommRing_eq__normS__nc__cert(x_1, x_2); x_4 = lean_box(x_3); return x_4; } @@ -1291,22 +1349,10 @@ lean_dec_ref(res); res = initialize_Init_Grind_Ring_CommSolver(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default___closed__0 = _init_l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default___closed__0(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default___closed__0); -l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default = _init_l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr_default); -l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr = _init_l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_instInhabitedExpr); -l_Lean_Grind_Ring_OfSemiring_instBEqExpr___closed__0 = _init_l_Lean_Grind_Ring_OfSemiring_instBEqExpr___closed__0(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_instBEqExpr___closed__0); -l_Lean_Grind_Ring_OfSemiring_instBEqExpr = _init_l_Lean_Grind_Ring_OfSemiring_instBEqExpr(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_instBEqExpr); -l_Lean_Grind_Ring_OfSemiring_instHashableExpr___closed__0 = _init_l_Lean_Grind_Ring_OfSemiring_instHashableExpr___closed__0(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_instHashableExpr___closed__0); -l_Lean_Grind_Ring_OfSemiring_instHashableExpr = _init_l_Lean_Grind_Ring_OfSemiring_instHashableExpr(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_instHashableExpr); -l_Lean_Grind_CommRing_denoteSInt___redArg___closed__0 = _init_l_Lean_Grind_CommRing_denoteSInt___redArg___closed__0(); -lean_mark_persistent(l_Lean_Grind_CommRing_denoteSInt___redArg___closed__0); +l_Lean_Grind_CommRing_Expr_toPolyS___closed__0 = _init_l_Lean_Grind_CommRing_Expr_toPolyS___closed__0(); +lean_mark_persistent(l_Lean_Grind_CommRing_Expr_toPolyS___closed__0); +l_Lean_Grind_CommRing_Expr_toPolyS___closed__1 = _init_l_Lean_Grind_CommRing_Expr_toPolyS___closed__1(); +lean_mark_persistent(l_Lean_Grind_CommRing_Expr_toPolyS___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Grind/Ring/CommSolver.c b/stage0/stdlib/Init/Grind/Ring/CommSolver.c index 7393a5e979..768670ab8b 100644 --- a/stage0/stdlib/Init/Grind/Ring/CommSolver.c +++ b/stage0/stdlib/Init/Grind/Ring/CommSolver.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Grind.Ring.CommSolver -// Imports: Init.Data.Nat.Lemmas Init.Data.Int.LemmasAux Init.Data.Hashable Init.Data.Ord.Basic Init.Data.RArray Init.Grind.Ring.Basic Init.Grind.Ring.Field Init.Grind.Ordered.Ring Init.GrindInstances.Ring.Int Init.Data.Ord.Basic +// Imports: Init.Data.Nat.Lemmas Init.Data.Int.LemmasAux Init.Data.Hashable Init.Data.Ord.Basic Init.Data.RArray Init.Grind.Ring.Basic Init.Grind.Ring.Field Init.Grind.Ordered.Ring Init.GrindInstances.Ring.Int Init.Data.Ord.Basic Init.LawfulBEqTactics #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -2162,6 +2162,41 @@ x_1 = l_Lean_Grind_CommRing_instBEqPower___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec_ref(x_1); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec_ref(x_2); +x_8 = lean_apply_4(x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter(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; +x_6 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter___redArg(x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter___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_6; +x_6 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +return x_6; +} +} LEAN_EXPORT lean_object* l_Nat_cast___at___Lean_Grind_CommRing_instReprPower_repr_spec__0(lean_object* x_1) { _start: { @@ -2569,41 +2604,6 @@ x_1 = l_Lean_Grind_CommRing_instHashablePower___closed__0; return x_1; } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -lean_dec_ref(x_1); -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_dec_ref(x_2); -x_8 = lean_apply_4(x_3, x_4, x_5, x_6, x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter(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; -x_6 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter___redArg(x_2, x_3, x_4); -return x_6; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter___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_6; -x_6 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPower_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -return x_6; -} -} LEAN_EXPORT uint8_t l_Lean_Grind_CommRing_Power_varLt(lean_object* x_1, lean_object* x_2) { _start: { @@ -2873,6 +2873,80 @@ x_1 = l_Lean_Grind_CommRing_instBEqMon___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_dec(x_5); +lean_inc(x_3); +return x_3; +} +else +{ +lean_object* x_6; +x_6 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +return x_6; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; +lean_dec(x_4); +x_7 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +x_8 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec_ref(x_1); +x_10 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec_ref(x_2); +x_12 = lean_apply_4(x_4, x_8, x_9, x_10, x_11); +return x_12; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___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_6; +x_6 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___redArg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +return x_7; +} +} static lean_object* _init_l_Lean_Grind_CommRing_instReprMon_repr___closed__0() { _start: { @@ -3114,80 +3188,6 @@ x_1 = l_Lean_Grind_CommRing_instHashableMon___closed__0; return x_1; } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_dec(x_4); -if (lean_obj_tag(x_2) == 0) -{ -lean_dec(x_5); -lean_inc(x_3); -return x_3; -} -else -{ -lean_object* x_6; -x_6 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_6; -} -} -else -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_7; -lean_dec(x_4); -x_7 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -lean_dec(x_5); -x_8 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_8); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -lean_dec_ref(x_1); -x_10 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_10); -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); -lean_dec_ref(x_2); -x_12 = lean_apply_4(x_4, x_8, x_9, x_10, x_11); -return x_12; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___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_6; -x_6 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___redArg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqMon_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -return x_7; -} -} LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Mon_denote___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4798,6 +4798,75 @@ x_1 = l_Lean_Grind_CommRing_instBEqPoly___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPoly_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_5); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec_ref(x_1); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec_ref(x_2); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_3); +x_9 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +return x_9; +} +} +else +{ +lean_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); +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_dec(x_5); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 2); +lean_inc_ref(x_13); +lean_dec_ref(x_1); +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_16); +lean_dec_ref(x_2); +x_17 = lean_apply_6(x_4, x_11, x_12, x_13, x_14, x_15, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPoly_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPoly_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} static lean_object* _init_l_Lean_Grind_CommRing_instReprPoly_repr___closed__0() { _start: { @@ -4908,8 +4977,8 @@ if (lean_is_scalar(x_13)) { lean_ctor_set_tag(x_19, 3); } lean_ctor_set(x_19, 0, x_18); -x_3 = x_15; -x_4 = x_14; +x_3 = x_14; +x_4 = x_15; x_5 = x_19; goto block_11; } @@ -4927,8 +4996,8 @@ if (lean_is_scalar(x_13)) { } lean_ctor_set(x_22, 0, x_21); x_23 = l_Repr_addAppParen(x_22, x_20); -x_3 = x_15; -x_4 = x_14; +x_3 = x_14; +x_4 = x_15; x_5 = x_23; goto block_11; } @@ -4964,25 +5033,25 @@ block_48: { 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; uint8_t x_45; lean_object* x_46; lean_object* x_47; x_37 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_37, 0, x_34); +lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -lean_inc(x_33); +lean_inc(x_34); x_38 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_33); +lean_ctor_set(x_38, 1, x_34); x_39 = l_Lean_Grind_CommRing_instReprMon_repr(x_30, x_32); x_40 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); x_41 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_33); +lean_ctor_set(x_41, 1, x_34); x_42 = l_Lean_Grind_CommRing_instReprPoly_repr(x_31, x_32); x_43 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); x_44 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_44, 0, x_35); +lean_ctor_set(x_44, 0, x_33); lean_ctor_set(x_44, 1, x_43); x_45 = 0; x_46 = lean_alloc_ctor(6, 1, 1); @@ -5005,9 +5074,9 @@ x_54 = l_Int_repr(x_29); lean_dec(x_29); x_55 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_55, 0, x_54); -x_33 = x_50; -x_34 = x_51; -x_35 = x_49; +x_33 = x_49; +x_34 = x_50; +x_35 = x_51; x_36 = x_55; goto block_48; } @@ -5019,9 +5088,9 @@ lean_dec(x_29); x_57 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_57, 0, x_56); x_58 = l_Repr_addAppParen(x_57, x_32); -x_33 = x_50; -x_34 = x_51; -x_35 = x_49; +x_33 = x_49; +x_34 = x_50; +x_35 = x_51; x_36 = x_58; goto block_48; } @@ -5031,10 +5100,10 @@ block_11: { lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; x_6 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_5); x_7 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_7, 0, x_4); +lean_ctor_set(x_7, 0, x_3); lean_ctor_set(x_7, 1, x_6); x_8 = 0; x_9 = lean_alloc_ctor(6, 1, 1); @@ -5213,75 +5282,6 @@ x_1 = l_Lean_Grind_CommRing_instHashablePoly___closed__0; return x_1; } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPoly_beq_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_dec(x_4); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_5); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec_ref(x_1); -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec_ref(x_2); -x_8 = lean_apply_2(x_3, x_6, x_7); -return x_8; -} -else -{ -lean_object* x_9; -lean_dec(x_3); -x_9 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_9; -} -} -else -{ -lean_dec(x_3); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_10; -lean_dec(x_4); -x_10 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -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_dec(x_5); -x_11 = lean_ctor_get(x_1, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_1, 1); -lean_inc(x_12); -x_13 = lean_ctor_get(x_1, 2); -lean_inc_ref(x_13); -lean_dec_ref(x_1); -x_14 = lean_ctor_get(x_2, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_2, 1); -lean_inc(x_15); -x_16 = lean_ctor_get(x_2, 2); -lean_inc_ref(x_16); -lean_dec_ref(x_2); -x_17 = lean_apply_6(x_4, x_11, x_12, x_13, x_14, x_15, x_16); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPoly_beq_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Grind_Ring_CommSolver_0__Lean_Grind_CommRing_instBEqPoly_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_denote___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -10638,6 +10638,7 @@ lean_object* initialize_Init_Grind_Ring_Field(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Ordered_Ring(uint8_t builtin, lean_object*); lean_object* initialize_Init_GrindInstances_Ring_Int(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Ord_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Init_LawfulBEqTactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind_Ring_CommSolver(uint8_t builtin, lean_object* w) { lean_object * res; @@ -10673,6 +10674,9 @@ lean_dec_ref(res); res = initialize_Init_Data_Ord_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_LawfulBEqTactics(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Grind_CommRing_instInhabitedExpr_default___closed__0 = _init_l_Lean_Grind_CommRing_instInhabitedExpr_default___closed__0(); lean_mark_persistent(l_Lean_Grind_CommRing_instInhabitedExpr_default___closed__0); l_Lean_Grind_CommRing_instInhabitedExpr_default___closed__1 = _init_l_Lean_Grind_CommRing_instInhabitedExpr_default___closed__1(); diff --git a/stage0/stdlib/Init/Grind/ToInt.c b/stage0/stdlib/Init/Grind/ToInt.c index 131a57ae83..0359ed0dd3 100644 --- a/stage0/stdlib/Init/Grind/ToInt.c +++ b/stage0/stdlib/Init/Grind/ToInt.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Grind.ToInt -// Imports: Init.Data.Int.DivMod.Lemmas +// Imports: Init.Data.Int.DivMod.Lemmas Init.LawfulBEqTactics #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -353,6 +353,136 @@ x_1 = l_Lean_Grind_instBEqIntInterval___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___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) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_dec(x_5); +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_7); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec_ref(x_1); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec_ref(x_2); +x_12 = lean_apply_4(x_3, x_8, x_9, x_10, x_11); +return x_12; +} +else +{ +lean_object* x_13; +lean_dec(x_3); +x_13 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); +return x_13; +} +} +case 1: +{ +lean_dec(x_5); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_7); +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +lean_dec_ref(x_1); +x_15 = lean_ctor_get(x_2, 0); +lean_inc(x_15); +lean_dec_ref(x_2); +x_16 = lean_apply_2(x_4, x_14, x_15); +return x_16; +} +else +{ +lean_object* x_17; +lean_dec(x_4); +x_17 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); +return x_17; +} +} +case 2: +{ +lean_dec(x_4); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_7); +x_18 = lean_ctor_get(x_1, 0); +lean_inc(x_18); +lean_dec_ref(x_1); +x_19 = lean_ctor_get(x_2, 0); +lean_inc(x_19); +lean_dec_ref(x_2); +x_20 = lean_apply_2(x_5, x_18, x_19); +return x_20; +} +else +{ +lean_object* x_21; +lean_dec(x_5); +x_21 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); +return x_21; +} +} +default: +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 3) +{ +lean_dec(x_7); +lean_inc(x_6); +return x_6; +} +else +{ +lean_object* x_22; +x_22 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); +return x_22; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter(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; +x_9 = l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___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: +{ +lean_object* x_8; +x_8 = l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___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: +{ +lean_object* x_9; +x_9 = l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +return x_9; +} +} LEAN_EXPORT uint8_t l_Lean_Grind_instDecidableEqIntInterval_decEq(lean_object* x_1, lean_object* x_2) { _start: { @@ -542,136 +672,6 @@ x_1 = l_Lean_Grind_instInhabitedIntInterval_default; return x_1; } } -LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___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) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -lean_dec(x_7); -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -lean_dec_ref(x_1); -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); -lean_dec_ref(x_2); -x_12 = lean_apply_4(x_3, x_8, x_9, x_10, x_11); -return x_12; -} -else -{ -lean_object* x_13; -lean_dec(x_3); -x_13 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_13; -} -} -case 1: -{ -lean_dec(x_5); -lean_dec(x_3); -if (lean_obj_tag(x_2) == 1) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_7); -x_14 = lean_ctor_get(x_1, 0); -lean_inc(x_14); -lean_dec_ref(x_1); -x_15 = lean_ctor_get(x_2, 0); -lean_inc(x_15); -lean_dec_ref(x_2); -x_16 = lean_apply_2(x_4, x_14, x_15); -return x_16; -} -else -{ -lean_object* x_17; -lean_dec(x_4); -x_17 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_17; -} -} -case 2: -{ -lean_dec(x_4); -lean_dec(x_3); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_7); -x_18 = lean_ctor_get(x_1, 0); -lean_inc(x_18); -lean_dec_ref(x_1); -x_19 = lean_ctor_get(x_2, 0); -lean_inc(x_19); -lean_dec_ref(x_2); -x_20 = lean_apply_2(x_5, x_18, x_19); -return x_20; -} -else -{ -lean_object* x_21; -lean_dec(x_5); -x_21 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_21; -} -} -default: -{ -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -if (lean_obj_tag(x_2) == 3) -{ -lean_dec(x_7); -lean_inc(x_6); -return x_6; -} -else -{ -lean_object* x_22; -x_22 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_22; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter(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; -x_9 = l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___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: -{ -lean_object* x_8; -x_8 = l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter___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: -{ -lean_object* x_9; -x_9 = l___private_Init_Grind_ToInt_0__Lean_Grind_instBEqIntInterval_beq_match__1_splitter(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -return x_9; -} -} static lean_object* _init_l_Lean_Grind_IntInterval_uint___closed__0() { _start: { @@ -1205,6 +1205,7 @@ return x_4; } } lean_object* initialize_Init_Data_Int_DivMod_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Init_LawfulBEqTactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind_ToInt(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1213,6 +1214,9 @@ _G_initialized = true; res = initialize_Init_Data_Int_DivMod_Lemmas(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_LawfulBEqTactics(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Grind_instBEqIntInterval___closed__0 = _init_l_Lean_Grind_instBEqIntInterval___closed__0(); lean_mark_persistent(l_Lean_Grind_instBEqIntInterval___closed__0); l_Lean_Grind_instBEqIntInterval = _init_l_Lean_Grind_instBEqIntInterval(); diff --git a/stage0/stdlib/Init/LawfulBEqTactics.c b/stage0/stdlib/Init/LawfulBEqTactics.c index 5dfcc4deb3..e1b0c18fbc 100644 --- a/stage0/stdlib/Init/LawfulBEqTactics.c +++ b/stage0/stdlib/Init/LawfulBEqTactics.c @@ -30,6 +30,7 @@ static lean_object* l_tacticDeriving__LawfulEq__tactic__step___closed__2; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__27; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__18; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__4; +static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__7; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__2; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__60; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__42; @@ -76,6 +77,7 @@ static lean_object* l_tacticDeriving__LawfulEq__tactic__step___closed__1; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__44; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__66; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__59; +static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__6; static lean_object* l_DerivingHelpers_tacticDeriving__ReflEq__tactic___closed__4; lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1(lean_object*, lean_object*, lean_object*); @@ -106,6 +108,7 @@ static lean_object* l_tacticDeriving__LawfulEq__tactic___closed__0; lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__6; LEAN_EXPORT lean_object* l_DerivingHelpers_tacticDeriving__ReflEq__tactic; +static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__8; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__65; static lean_object* l_DerivingHelpers_tacticDeriving__ReflEq__tactic___closed__3; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__58; @@ -176,6 +179,7 @@ static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRu lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__55; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__26; +static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__77; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__16; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__10; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__0; @@ -190,6 +194,7 @@ static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRu static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__5; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__14; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__5; +static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__76; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__48; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__39; @@ -200,6 +205,7 @@ static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriv static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__2; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__1; static lean_object* l_DerivingHelpers_tacticDeriving__ReflEq__tactic___closed__2; +static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__78; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__25; static lean_object* l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__18; static lean_object* l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__57; @@ -1294,7 +1300,7 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("change", 6, 6); +x_1 = lean_mk_string_unchecked("withReducible", 13, 13); return x_1; } } @@ -1314,7 +1320,7 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Term", 4, 4); +x_1 = lean_mk_string_unchecked("with_reducible", 14, 14); return x_1; } } @@ -1322,7 +1328,7 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("arrow", 5, 5); +x_1 = lean_mk_string_unchecked("change", 6, 6); return x_1; } } @@ -1331,7 +1337,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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__3; -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; +x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__2; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); @@ -1342,20 +1348,48 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("term_=_", 7, 7); +x_1 = lean_mk_string_unchecked("Term", 4, 4); return x_1; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__6() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("arrow", 5, 5); +return x_1; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__6; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__5; +x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; +x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("term_=_", 7, 7); +return x_1; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__9() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__5; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__8; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__7() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__10() { _start: { lean_object* x_1; @@ -1363,19 +1397,19 @@ x_1 = lean_mk_string_unchecked("app", 3, 3); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__8() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__7; -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__10; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__5; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__9() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__12() { _start: { lean_object* x_1; @@ -1383,61 +1417,61 @@ x_1 = lean_mk_string_unchecked("dite", 4, 4); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__9; -x_2 = l_String_toSubstring_x27(x_1); -return x_2; -} -} -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__9; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__11; -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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__13() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__12; -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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__12; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__14() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__12; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__14; +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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__15; +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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___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_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__3; -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__5; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__15() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__18() { _start: { lean_object* x_1; @@ -1445,19 +1479,19 @@ x_1 = lean_mk_string_unchecked("hygienicLParen", 14, 14); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__16() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__15; -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__18; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__5; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__17() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__20() { _start: { lean_object* x_1; @@ -1465,16 +1499,16 @@ x_1 = lean_mk_string_unchecked("hygieneInfo", 11, 11); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__18() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__21() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__17; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__20; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__19() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__22() { _start: { lean_object* x_1; @@ -1482,16 +1516,16 @@ x_1 = lean_mk_string_unchecked("", 0, 0); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__20() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__23() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__19; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__22; x_2 = l_String_toSubstring_x27(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__21() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__24() { _start: { lean_object* x_1; lean_object* x_2; @@ -1501,19 +1535,19 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__22() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__21; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__24; 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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__23() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__26() { _start: { lean_object* x_1; @@ -1521,16 +1555,16 @@ x_1 = lean_mk_string_unchecked("term_==_", 8, 8); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__24() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__23; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__26; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__25() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__28() { _start: { lean_object* x_1; @@ -1538,19 +1572,19 @@ x_1 = lean_mk_string_unchecked("hole", 4, 4); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__26() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__25; -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__28; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__5; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30() { _start: { lean_object* x_1; @@ -1558,7 +1592,7 @@ x_1 = lean_mk_string_unchecked("_", 1, 1); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__28() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__31() { _start: { lean_object* x_1; @@ -1566,7 +1600,7 @@ x_1 = lean_mk_string_unchecked("==", 2, 2); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__29() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__32() { _start: { lean_object* x_1; @@ -1574,7 +1608,7 @@ x_1 = lean_mk_string_unchecked("=", 1, 1); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__33() { _start: { lean_object* x_1; @@ -1582,59 +1616,59 @@ x_1 = lean_mk_string_unchecked("true", 4, 4); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__31() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30; -x_2 = l_String_toSubstring_x27(x_1); -return x_2; -} -} -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__32() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__33() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30; -x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__49; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; -} -} static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__34() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__33; -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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__33; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__35() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__33; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__36() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__33; +x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__49; +x_3 = l_Lean_Name_mkStr2(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__37() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__34; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__36; 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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__36() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__38() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__37; +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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__39() { _start: { lean_object* x_1; @@ -1642,7 +1676,7 @@ x_1 = lean_mk_string_unchecked("→", 3, 1); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__37() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__40() { _start: { lean_object* x_1; @@ -1650,11 +1684,11 @@ x_1 = lean_mk_string_unchecked("refine", 6, 6); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__38() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__37; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__40; x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__2; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; @@ -1662,7 +1696,7 @@ x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__39() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__42() { _start: { lean_object* x_1; @@ -1670,16 +1704,16 @@ x_1 = lean_mk_string_unchecked("DerivingHelpers.deriving_lawful_beq_helper_dep", return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__40() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__43() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__39; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__42; x_2 = l_String_toSubstring_x27(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__41() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__44() { _start: { lean_object* x_1; @@ -1687,41 +1721,41 @@ x_1 = lean_mk_string_unchecked("deriving_lawful_beq_helper_dep", 30, 30); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__42() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__45() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__41; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__44; x_2 = l_DerivingHelpers_tacticDeriving__ReflEq__tactic___closed__0; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__43() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__46() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__42; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__45; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__44() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__47() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__43; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__46; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__45() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__48() { _start: { lean_object* x_1; @@ -1729,19 +1763,19 @@ x_1 = lean_mk_string_unchecked("syntheticHole", 13, 13); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__46() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__49() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__45; -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__48; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__5; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__47() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__50() { _start: { lean_object* x_1; @@ -1749,7 +1783,7 @@ x_1 = lean_mk_string_unchecked("\?", 1, 1); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__48() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__51() { _start: { lean_object* x_1; @@ -1757,17 +1791,17 @@ x_1 = lean_mk_string_unchecked("cdot", 4, 4); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__49() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__52() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__48; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__51; x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__50() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__53() { _start: { lean_object* x_1; @@ -1775,17 +1809,17 @@ x_1 = lean_mk_string_unchecked("cdotTk", 6, 6); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__51() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__54() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__50; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__53; x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__52() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__55() { _start: { lean_object* x_1; @@ -1793,16 +1827,16 @@ x_1 = lean_mk_string_unchecked("patternIgnore", 13, 13); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__53() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__56() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__52; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__55; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__54() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__57() { _start: { lean_object* x_1; @@ -1810,37 +1844,11 @@ x_1 = lean_mk_string_unchecked("token", 5, 5); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__55() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("· ", 3, 2); -return x_1; -} -} -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__56() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__55; -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__54; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__57() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("·", 2, 1); -return x_1; -} -} static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__58() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("solveTactic", 11, 11); +x_1 = lean_mk_string_unchecked("· ", 3, 2); return x_1; } } @@ -1849,7 +1857,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__58; -x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__57; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } @@ -1858,7 +1866,7 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("solve", 5, 5); +x_1 = lean_mk_string_unchecked("·", 2, 1); return x_1; } } @@ -1866,24 +1874,25 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("group", 5, 5); +x_1 = lean_mk_string_unchecked("solveTactic", 11, 11); return x_1; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__62() { _start: { -lean_object* x_1; lean_object* x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__61; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; +x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; +x_3 = l_Lean_Name_mkStr2(x_2, x_1); +return x_3; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__63() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("|", 1, 1); +x_1 = lean_mk_string_unchecked("solve", 5, 5); return x_1; } } @@ -1891,27 +1900,24 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("applyAssumption", 15, 15); +x_1 = lean_mk_string_unchecked("group", 5, 5); return x_1; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__65() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_1; lean_object* x_2; x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__64; -x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__2; -x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; -x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__66() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("apply_assumption", 16, 16); +x_1 = lean_mk_string_unchecked("|", 1, 1); return x_1; } } @@ -1919,37 +1925,65 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("\"could not discharge eq_of_beq assumption\"", 42, 42); +x_1 = lean_mk_string_unchecked("applyAssumption", 15, 15); return x_1; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__68() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__67; +x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__2; +x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; +x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__69() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("apply_assumption", 16, 16); +return x_1; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__70() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\"could not discharge eq_of_beq assumption\"", 42, 42); +return x_1; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__71() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string_unchecked("h", 1, 1); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__69() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__72() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__68; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__71; x_2 = l_String_toSubstring_x27(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__70() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__73() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__68; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__71; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__71() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__74() { _start: { lean_object* x_1; @@ -1957,11 +1991,11 @@ x_1 = lean_mk_string_unchecked("cases", 5, 5); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__72() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__71; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__74; x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__2; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; @@ -1969,7 +2003,7 @@ x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__73() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__76() { _start: { lean_object* x_1; @@ -1977,11 +2011,11 @@ x_1 = lean_mk_string_unchecked("dsimp", 5, 5); return x_1; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__74() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__77() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__73; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__76; x_2 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__2; x_3 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__1; x_4 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__0; @@ -1989,7 +2023,7 @@ x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__78() { _start: { lean_object* x_1; lean_object* x_2; @@ -2016,7 +2050,7 @@ return x_7; } else { -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; 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; 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; 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_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; 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; 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; 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; x_8 = lean_ctor_get(x_2, 1); lean_inc(x_8); x_9 = lean_ctor_get(x_2, 2); @@ -2036,335 +2070,349 @@ lean_ctor_set(x_15, 1, x_14); x_16 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__7; x_17 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__9; x_18 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__11; -x_19 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__0; -x_20 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__1; +x_19 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__1; +x_20 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; lean_inc(x_12); x_21 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_21, 0, x_12); -lean_ctor_set(x_21, 1, x_19); -x_22 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__4; -x_23 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__6; -x_24 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__8; -x_25 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__10; -x_26 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__11; +lean_ctor_set(x_21, 1, x_20); +x_22 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__3; +x_23 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__4; +lean_inc(x_12); +x_24 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_24, 0, x_12); +lean_ctor_set(x_24, 1, x_22); +x_25 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__7; +x_26 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__9; +x_27 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__11; +x_28 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__13; +x_29 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__14; lean_inc(x_9); lean_inc(x_8); -x_27 = l_Lean_addMacroScope(x_8, x_26, x_9); -x_28 = lean_box(0); -x_29 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__13; -lean_inc(x_12); -x_30 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_25); -lean_ctor_set(x_30, 2, x_27); -lean_ctor_set(x_30, 3, x_29); -x_31 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__14; +x_30 = l_Lean_addMacroScope(x_8, x_29, x_9); +x_31 = lean_box(0); x_32 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__16; -x_33 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__18; -x_34 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__20; -x_35 = lean_box(0); +lean_inc(x_12); +x_33 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_33, 0, x_12); +lean_ctor_set(x_33, 1, x_28); +lean_ctor_set(x_33, 2, x_30); +lean_ctor_set(x_33, 3, x_32); +x_34 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__17; +x_35 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__19; +x_36 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__21; +x_37 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__23; +x_38 = lean_box(0); lean_inc(x_9); lean_inc(x_8); -x_36 = l_Lean_addMacroScope(x_8, x_35, x_9); -x_37 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__22; +x_39 = l_Lean_addMacroScope(x_8, x_38, x_9); +x_40 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__25; lean_inc(x_12); -x_38 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_38, 0, x_12); -lean_ctor_set(x_38, 1, x_34); -lean_ctor_set(x_38, 2, x_36); -lean_ctor_set(x_38, 3, x_37); +x_41 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_41, 0, x_12); +lean_ctor_set(x_41, 1, x_37); +lean_ctor_set(x_41, 2, x_39); +lean_ctor_set(x_41, 3, x_40); lean_inc(x_12); -x_39 = l_Lean_Syntax_node1(x_12, x_33, x_38); +x_42 = l_Lean_Syntax_node1(x_12, x_36, x_41); lean_inc_ref(x_15); lean_inc(x_12); -x_40 = l_Lean_Syntax_node2(x_12, x_32, x_15, x_39); -x_41 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__24; -x_42 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__26; -x_43 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27; -lean_inc(x_12); -x_44 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_44, 0, x_12); -lean_ctor_set(x_44, 1, x_43); -lean_inc_ref(x_44); -lean_inc(x_12); -x_45 = l_Lean_Syntax_node1(x_12, x_42, x_44); -x_46 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__28; +x_43 = l_Lean_Syntax_node2(x_12, x_35, x_15, x_42); +x_44 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27; +x_45 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__29; +x_46 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30; lean_inc(x_12); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_12); lean_ctor_set(x_47, 1, x_46); -lean_inc_n(x_45, 2); +lean_inc_ref(x_47); lean_inc(x_12); -x_48 = l_Lean_Syntax_node3(x_12, x_41, x_45, x_47, x_45); -x_49 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__62; +x_48 = l_Lean_Syntax_node1(x_12, x_45, x_47); +x_49 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__31; lean_inc(x_12); x_50 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_50, 0, x_12); lean_ctor_set(x_50, 1, x_49); -lean_inc_ref(x_50); +lean_inc_n(x_48, 2); lean_inc(x_12); -x_51 = l_Lean_Syntax_node3(x_12, x_31, x_40, x_48, x_50); -lean_inc_n(x_45, 2); +x_51 = l_Lean_Syntax_node3(x_12, x_44, x_48, x_50, x_48); +x_52 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__62; lean_inc(x_12); -x_52 = l_Lean_Syntax_node3(x_12, x_18, x_51, x_45, x_45); +x_53 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_53, 0, x_12); +lean_ctor_set(x_53, 1, x_52); +lean_inc_ref(x_53); lean_inc(x_12); -x_53 = l_Lean_Syntax_node2(x_12, x_24, x_30, x_52); -x_54 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__29; +x_54 = l_Lean_Syntax_node3(x_12, x_34, x_43, x_51, x_53); +lean_inc_n(x_48, 2); lean_inc(x_12); -x_55 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_55, 0, x_12); -lean_ctor_set(x_55, 1, x_54); -x_56 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__31; +x_55 = l_Lean_Syntax_node3(x_12, x_18, x_54, x_48, x_48); +lean_inc(x_12); +x_56 = l_Lean_Syntax_node2(x_12, x_27, x_33, x_55); x_57 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__32; +lean_inc(x_12); +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_12); +lean_ctor_set(x_58, 1, x_57); +x_59 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__34; +x_60 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__35; lean_inc(x_9); lean_inc(x_8); -x_58 = l_Lean_addMacroScope(x_8, x_57, x_9); -x_59 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__35; +x_61 = l_Lean_addMacroScope(x_8, x_60, x_9); +x_62 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__38; lean_inc(x_12); -x_60 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_60, 0, x_12); -lean_ctor_set(x_60, 1, x_56); -lean_ctor_set(x_60, 2, x_58); -lean_ctor_set(x_60, 3, x_59); -lean_inc(x_12); -x_61 = l_Lean_Syntax_node3(x_12, x_23, x_53, x_55, x_60); -x_62 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__36; -lean_inc(x_12); -x_63 = lean_alloc_ctor(2, 2, 0); +x_63 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_63, 0, x_12); -lean_ctor_set(x_63, 1, x_62); +lean_ctor_set(x_63, 1, x_59); +lean_ctor_set(x_63, 2, x_61); +lean_ctor_set(x_63, 3, x_62); lean_inc(x_12); -x_64 = l_Lean_Syntax_node3(x_12, x_22, x_61, x_63, x_45); -x_65 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__17; +x_64 = l_Lean_Syntax_node3(x_12, x_26, x_56, x_58, x_63); +x_65 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__39; lean_inc(x_12); -x_66 = lean_alloc_ctor(1, 3, 0); +x_66 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_66, 0, x_12); -lean_ctor_set(x_66, 1, x_18); -lean_ctor_set(x_66, 2, x_65); -lean_inc_ref(x_66); +lean_ctor_set(x_66, 1, x_65); lean_inc(x_12); -x_67 = l_Lean_Syntax_node3(x_12, x_20, x_21, x_64, x_66); -x_68 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__37; -x_69 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__38; +x_67 = l_Lean_Syntax_node3(x_12, x_25, x_64, x_66, x_48); +x_68 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__17; lean_inc(x_12); -x_70 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_70, 0, x_12); -lean_ctor_set(x_70, 1, x_68); -x_71 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__40; -x_72 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__42; +x_69 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_69, 0, x_12); +lean_ctor_set(x_69, 1, x_18); +lean_ctor_set(x_69, 2, x_68); +lean_inc_ref(x_69); +lean_inc(x_12); +x_70 = l_Lean_Syntax_node3(x_12, x_23, x_24, x_67, x_69); +lean_inc(x_12); +x_71 = l_Lean_Syntax_node1(x_12, x_18, x_70); +lean_inc(x_12); +x_72 = l_Lean_Syntax_node1(x_12, x_17, x_71); +lean_inc(x_12); +x_73 = l_Lean_Syntax_node1(x_12, x_16, x_72); +lean_inc(x_12); +x_74 = l_Lean_Syntax_node2(x_12, x_19, x_21, x_73); +x_75 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__40; +x_76 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__41; +lean_inc(x_12); +x_77 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_77, 0, x_12); +lean_ctor_set(x_77, 1, x_75); +x_78 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__43; +x_79 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__45; lean_inc(x_9); lean_inc(x_8); -x_73 = l_Lean_addMacroScope(x_8, x_72, x_9); -x_74 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__44; +x_80 = l_Lean_addMacroScope(x_8, x_79, x_9); +x_81 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__47; lean_inc(x_12); -x_75 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_75, 0, x_12); -lean_ctor_set(x_75, 1, x_71); -lean_ctor_set(x_75, 2, x_73); -lean_ctor_set(x_75, 3, x_74); -x_76 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__46; -x_77 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__47; -lean_inc(x_12); -x_78 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_78, 0, x_12); -lean_ctor_set(x_78, 1, x_77); -lean_inc(x_12); -x_79 = l_Lean_Syntax_node2(x_12, x_76, x_78, x_44); -lean_inc(x_79); -lean_inc(x_12); -x_80 = l_Lean_Syntax_node2(x_12, x_18, x_79, x_79); -lean_inc(x_12); -x_81 = l_Lean_Syntax_node2(x_12, x_24, x_75, x_80); -lean_inc(x_12); -x_82 = l_Lean_Syntax_node2(x_12, x_69, x_70, x_81); +x_82 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_82, 0, x_12); +lean_ctor_set(x_82, 1, x_78); +lean_ctor_set(x_82, 2, x_80); +lean_ctor_set(x_82, 3, x_81); x_83 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__49; -x_84 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__51; -x_85 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__53; -x_86 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__56; -x_87 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__57; +x_84 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__50; lean_inc(x_12); -x_88 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_88, 0, x_12); -lean_ctor_set(x_88, 1, x_87); +x_85 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_85, 0, x_12); +lean_ctor_set(x_85, 1, x_84); lean_inc(x_12); -x_89 = l_Lean_Syntax_node1(x_12, x_86, x_88); +x_86 = l_Lean_Syntax_node2(x_12, x_83, x_85, x_47); +lean_inc(x_86); lean_inc(x_12); -x_90 = l_Lean_Syntax_node1(x_12, x_85, x_89); +x_87 = l_Lean_Syntax_node2(x_12, x_18, x_86, x_86); lean_inc(x_12); -x_91 = l_Lean_Syntax_node1(x_12, x_84, x_90); -x_92 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__59; -x_93 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__60; +x_88 = l_Lean_Syntax_node2(x_12, x_27, x_82, x_87); lean_inc(x_12); -x_94 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_94, 0, x_12); -lean_ctor_set(x_94, 1, x_93); -x_95 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__62; -x_96 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__63; +x_89 = l_Lean_Syntax_node2(x_12, x_76, x_77, x_88); +x_90 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__52; +x_91 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__54; +x_92 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__56; +x_93 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__59; +x_94 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__60; lean_inc(x_12); -x_97 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_97, 0, x_12); -lean_ctor_set(x_97, 1, x_96); -x_98 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__65; -x_99 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__66; +x_95 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_95, 0, x_12); +lean_ctor_set(x_95, 1, x_94); lean_inc(x_12); -x_100 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_100, 0, x_12); -lean_ctor_set(x_100, 1, x_99); -x_101 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__28; -lean_inc_ref(x_66); +x_96 = l_Lean_Syntax_node1(x_12, x_93, x_95); lean_inc(x_12); -x_102 = l_Lean_Syntax_node1(x_12, x_101, x_66); -lean_inc_ref_n(x_66, 3); -lean_inc(x_102); +x_97 = l_Lean_Syntax_node1(x_12, x_92, x_96); lean_inc(x_12); -x_103 = l_Lean_Syntax_node5(x_12, x_98, x_100, x_102, x_66, x_66, x_66); +x_98 = l_Lean_Syntax_node1(x_12, x_91, x_97); +x_99 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__62; +x_100 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__63; lean_inc(x_12); -x_104 = l_Lean_Syntax_node1(x_12, x_18, x_103); +x_101 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_101, 0, x_12); +lean_ctor_set(x_101, 1, x_100); +x_102 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__65; +x_103 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__66; lean_inc(x_12); -x_105 = l_Lean_Syntax_node1(x_12, x_17, x_104); +x_104 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_104, 0, x_12); +lean_ctor_set(x_104, 1, x_103); +x_105 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__68; +x_106 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__69; lean_inc(x_12); -x_106 = l_Lean_Syntax_node1(x_12, x_16, x_105); -lean_inc_ref(x_97); +x_107 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_107, 0, x_12); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__28; +lean_inc_ref(x_69); lean_inc(x_12); -x_107 = l_Lean_Syntax_node2(x_12, x_95, x_97, x_106); -x_108 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__25; -x_109 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__26; +x_109 = l_Lean_Syntax_node1(x_12, x_108, x_69); +lean_inc_ref_n(x_69, 3); +lean_inc(x_109); lean_inc(x_12); -x_110 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_110, 0, x_12); -lean_ctor_set(x_110, 1, x_108); -lean_inc_ref_n(x_66, 4); -lean_inc(x_102); +x_110 = l_Lean_Syntax_node5(x_12, x_105, x_107, x_109, x_69, x_69, x_69); lean_inc(x_12); -x_111 = l_Lean_Syntax_node6(x_12, x_109, x_110, x_102, x_66, x_66, x_66, x_66); +x_111 = l_Lean_Syntax_node1(x_12, x_18, x_110); lean_inc(x_12); -x_112 = l_Lean_Syntax_node1(x_12, x_18, x_111); +x_112 = l_Lean_Syntax_node1(x_12, x_17, x_111); lean_inc(x_12); -x_113 = l_Lean_Syntax_node1(x_12, x_17, x_112); +x_113 = l_Lean_Syntax_node1(x_12, x_16, x_112); +lean_inc_ref(x_104); lean_inc(x_12); -x_114 = l_Lean_Syntax_node1(x_12, x_16, x_113); -lean_inc_ref(x_97); +x_114 = l_Lean_Syntax_node2(x_12, x_102, x_104, x_113); +x_115 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__25; +x_116 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__26; lean_inc(x_12); -x_115 = l_Lean_Syntax_node2(x_12, x_95, x_97, x_114); -x_116 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__0; -x_117 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__1; +x_117 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_117, 0, x_12); +lean_ctor_set(x_117, 1, x_115); +lean_inc_ref_n(x_69, 4); +lean_inc(x_109); lean_inc(x_12); -x_118 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_118, 0, x_12); -lean_ctor_set(x_118, 1, x_116); -x_119 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__3; -x_120 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__67; +x_118 = l_Lean_Syntax_node6(x_12, x_116, x_117, x_109, x_69, x_69, x_69, x_69); lean_inc(x_12); -x_121 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_121, 0, x_12); -lean_ctor_set(x_121, 1, x_120); +x_119 = l_Lean_Syntax_node1(x_12, x_18, x_118); lean_inc(x_12); -x_122 = l_Lean_Syntax_node1(x_12, x_119, x_121); +x_120 = l_Lean_Syntax_node1(x_12, x_17, x_119); lean_inc(x_12); -x_123 = l_Lean_Syntax_node1(x_12, x_18, x_122); +x_121 = l_Lean_Syntax_node1(x_12, x_16, x_120); +lean_inc_ref(x_104); lean_inc(x_12); -x_124 = l_Lean_Syntax_node2(x_12, x_117, x_118, x_123); +x_122 = l_Lean_Syntax_node2(x_12, x_102, x_104, x_121); +x_123 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__0; +x_124 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__1; lean_inc(x_12); -x_125 = l_Lean_Syntax_node1(x_12, x_18, x_124); +x_125 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_125, 0, x_12); +lean_ctor_set(x_125, 1, x_123); +x_126 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__3; +x_127 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__70; lean_inc(x_12); -x_126 = l_Lean_Syntax_node1(x_12, x_17, x_125); +x_128 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_128, 0, x_12); +lean_ctor_set(x_128, 1, x_127); lean_inc(x_12); -x_127 = l_Lean_Syntax_node1(x_12, x_16, x_126); +x_129 = l_Lean_Syntax_node1(x_12, x_126, x_128); lean_inc(x_12); -x_128 = l_Lean_Syntax_node2(x_12, x_95, x_97, x_127); +x_130 = l_Lean_Syntax_node1(x_12, x_18, x_129); lean_inc(x_12); -x_129 = l_Lean_Syntax_node3(x_12, x_18, x_107, x_115, x_128); +x_131 = l_Lean_Syntax_node2(x_12, x_124, x_125, x_130); lean_inc(x_12); -x_130 = l_Lean_Syntax_node2(x_12, x_92, x_94, x_129); +x_132 = l_Lean_Syntax_node1(x_12, x_18, x_131); lean_inc(x_12); -x_131 = l_Lean_Syntax_node1(x_12, x_18, x_130); +x_133 = l_Lean_Syntax_node1(x_12, x_17, x_132); lean_inc(x_12); -x_132 = l_Lean_Syntax_node1(x_12, x_17, x_131); +x_134 = l_Lean_Syntax_node1(x_12, x_16, x_133); lean_inc(x_12); -x_133 = l_Lean_Syntax_node1(x_12, x_16, x_132); +x_135 = l_Lean_Syntax_node2(x_12, x_102, x_104, x_134); lean_inc(x_12); -x_134 = l_Lean_Syntax_node2(x_12, x_83, x_91, x_133); -x_135 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__12; -x_136 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__13; +x_136 = l_Lean_Syntax_node3(x_12, x_18, x_114, x_122, x_135); lean_inc(x_12); -x_137 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_137, 0, x_12); -lean_ctor_set(x_137, 1, x_135); -x_138 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__69; -x_139 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__70; -x_140 = l_Lean_addMacroScope(x_8, x_139, x_9); +x_137 = l_Lean_Syntax_node2(x_12, x_99, x_101, x_136); lean_inc(x_12); -x_141 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_141, 0, x_12); -lean_ctor_set(x_141, 1, x_138); -lean_ctor_set(x_141, 2, x_140); -lean_ctor_set(x_141, 3, x_28); -lean_inc_ref(x_141); +x_138 = l_Lean_Syntax_node1(x_12, x_18, x_137); lean_inc(x_12); -x_142 = l_Lean_Syntax_node1(x_12, x_18, x_141); +x_139 = l_Lean_Syntax_node1(x_12, x_17, x_138); lean_inc(x_12); -x_143 = l_Lean_Syntax_node2(x_12, x_136, x_137, x_142); -x_144 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__71; +x_140 = l_Lean_Syntax_node1(x_12, x_16, x_139); +lean_inc(x_12); +x_141 = l_Lean_Syntax_node2(x_12, x_90, x_98, x_140); +x_142 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__12; +x_143 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__13; +lean_inc(x_12); +x_144 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_144, 0, x_12); +lean_ctor_set(x_144, 1, x_142); x_145 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__72; +x_146 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__73; +x_147 = l_Lean_addMacroScope(x_8, x_146, x_9); lean_inc(x_12); -x_146 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_146, 0, x_12); -lean_ctor_set(x_146, 1, x_144); -x_147 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__21; -lean_inc_ref(x_66); -lean_inc(x_12); -x_148 = l_Lean_Syntax_node2(x_12, x_147, x_66, x_141); +x_148 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_148, 0, x_12); +lean_ctor_set(x_148, 1, x_145); +lean_ctor_set(x_148, 2, x_147); +lean_ctor_set(x_148, 3, x_31); +lean_inc_ref(x_148); lean_inc(x_12); x_149 = l_Lean_Syntax_node1(x_12, x_18, x_148); -lean_inc_ref_n(x_66, 2); lean_inc(x_12); -x_150 = l_Lean_Syntax_node4(x_12, x_145, x_146, x_149, x_66, x_66); -x_151 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__73; -x_152 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__74; +x_150 = l_Lean_Syntax_node2(x_12, x_143, x_144, x_149); +x_151 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__74; +x_152 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75; lean_inc(x_12); x_153 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_153, 0, x_12); lean_ctor_set(x_153, 1, x_151); -x_154 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__29; +x_154 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__21; +lean_inc_ref(x_69); lean_inc(x_12); -x_155 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_155, 0, x_12); -lean_ctor_set(x_155, 1, x_154); +x_155 = l_Lean_Syntax_node2(x_12, x_154, x_69, x_148); lean_inc(x_12); x_156 = l_Lean_Syntax_node1(x_12, x_18, x_155); -lean_inc_ref_n(x_66, 3); +lean_inc_ref_n(x_69, 2); lean_inc(x_12); -x_157 = l_Lean_Syntax_node6(x_12, x_152, x_153, x_102, x_66, x_156, x_66, x_66); -x_158 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75; -x_159 = lean_array_push(x_158, x_67); -lean_inc_ref(x_66); -x_160 = lean_array_push(x_159, x_66); -x_161 = lean_array_push(x_160, x_82); -lean_inc_ref(x_66); -x_162 = lean_array_push(x_161, x_66); -x_163 = lean_array_push(x_162, x_134); -lean_inc_ref(x_66); -x_164 = lean_array_push(x_163, x_66); -x_165 = lean_array_push(x_164, x_143); -lean_inc_ref(x_66); -x_166 = lean_array_push(x_165, x_66); -x_167 = lean_array_push(x_166, x_150); -x_168 = lean_array_push(x_167, x_66); -x_169 = lean_array_push(x_168, x_157); +x_157 = l_Lean_Syntax_node4(x_12, x_152, x_153, x_156, x_69, x_69); +x_158 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__76; +x_159 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__77; lean_inc(x_12); -x_170 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_170, 0, x_12); -lean_ctor_set(x_170, 1, x_18); -lean_ctor_set(x_170, 2, x_169); +x_160 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_160, 0, x_12); +lean_ctor_set(x_160, 1, x_158); +x_161 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__29; lean_inc(x_12); -x_171 = l_Lean_Syntax_node1(x_12, x_17, x_170); +x_162 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_162, 0, x_12); +lean_ctor_set(x_162, 1, x_161); lean_inc(x_12); -x_172 = l_Lean_Syntax_node1(x_12, x_16, x_171); -x_173 = l_Lean_Syntax_node3(x_12, x_13, x_15, x_172, x_50); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_3); -return x_174; +x_163 = l_Lean_Syntax_node1(x_12, x_18, x_162); +lean_inc_ref_n(x_69, 3); +lean_inc(x_12); +x_164 = l_Lean_Syntax_node6(x_12, x_159, x_160, x_109, x_69, x_163, x_69, x_69); +x_165 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__78; +x_166 = lean_array_push(x_165, x_74); +lean_inc_ref(x_69); +x_167 = lean_array_push(x_166, x_69); +x_168 = lean_array_push(x_167, x_89); +lean_inc_ref(x_69); +x_169 = lean_array_push(x_168, x_69); +x_170 = lean_array_push(x_169, x_141); +lean_inc_ref(x_69); +x_171 = lean_array_push(x_170, x_69); +x_172 = lean_array_push(x_171, x_150); +lean_inc_ref(x_69); +x_173 = lean_array_push(x_172, x_69); +x_174 = lean_array_push(x_173, x_157); +x_175 = lean_array_push(x_174, x_69); +x_176 = lean_array_push(x_175, x_164); +lean_inc(x_12); +x_177 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_177, 0, x_12); +lean_ctor_set(x_177, 1, x_18); +lean_ctor_set(x_177, 2, x_176); +lean_inc(x_12); +x_178 = l_Lean_Syntax_node1(x_12, x_17, x_177); +lean_inc(x_12); +x_179 = l_Lean_Syntax_node1(x_12, x_16, x_178); +x_180 = l_Lean_Syntax_node3(x_12, x_13, x_15, x_179, x_53); +x_181 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_3); +return x_181; } } } @@ -2373,7 +2421,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__21; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__24; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -2385,7 +2433,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__33; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__36; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -2501,7 +2549,7 @@ return x_7; } else { -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; 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; 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; lean_object* x_154; lean_object* x_155; +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; 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; 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; 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; x_8 = lean_ctor_get(x_2, 1); lean_inc(x_8); x_9 = lean_ctor_get(x_2, 2); @@ -2521,291 +2569,305 @@ lean_ctor_set(x_15, 1, x_14); x_16 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__7; x_17 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__9; x_18 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__11; -x_19 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__0; -x_20 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__1; +x_19 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__1; +x_20 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; lean_inc(x_12); x_21 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_21, 0, x_12); -lean_ctor_set(x_21, 1, x_19); -x_22 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__4; -x_23 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__6; -x_24 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__14; -x_25 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__16; -x_26 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__18; -x_27 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__20; -x_28 = lean_box(0); +lean_ctor_set(x_21, 1, x_20); +x_22 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__3; +x_23 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__4; +lean_inc(x_12); +x_24 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_24, 0, x_12); +lean_ctor_set(x_24, 1, x_22); +x_25 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__7; +x_26 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__9; +x_27 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__17; +x_28 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__19; +x_29 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__21; +x_30 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__23; +x_31 = lean_box(0); lean_inc(x_9); lean_inc(x_8); -x_29 = l_Lean_addMacroScope(x_8, x_28, x_9); -x_30 = lean_box(0); -x_31 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__0; +x_32 = l_Lean_addMacroScope(x_8, x_31, x_9); +x_33 = lean_box(0); +x_34 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__0; lean_inc(x_12); -x_32 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_32, 0, x_12); -lean_ctor_set(x_32, 1, x_27); -lean_ctor_set(x_32, 2, x_29); -lean_ctor_set(x_32, 3, x_31); +x_35 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_35, 0, x_12); +lean_ctor_set(x_35, 1, x_30); +lean_ctor_set(x_35, 2, x_32); +lean_ctor_set(x_35, 3, x_34); lean_inc(x_12); -x_33 = l_Lean_Syntax_node1(x_12, x_26, x_32); +x_36 = l_Lean_Syntax_node1(x_12, x_29, x_35); lean_inc_ref(x_15); lean_inc(x_12); -x_34 = l_Lean_Syntax_node2(x_12, x_25, x_15, x_33); -x_35 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__24; -x_36 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__26; -x_37 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27; -lean_inc(x_12); -x_38 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_38, 0, x_12); -lean_ctor_set(x_38, 1, x_37); -lean_inc_ref(x_38); -lean_inc(x_12); -x_39 = l_Lean_Syntax_node1(x_12, x_36, x_38); -x_40 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__28; +x_37 = l_Lean_Syntax_node2(x_12, x_28, x_15, x_36); +x_38 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27; +x_39 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__29; +x_40 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30; lean_inc(x_12); x_41 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_41, 0, x_12); lean_ctor_set(x_41, 1, x_40); -lean_inc_n(x_39, 2); +lean_inc_ref(x_41); lean_inc(x_12); -x_42 = l_Lean_Syntax_node3(x_12, x_35, x_39, x_41, x_39); -x_43 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__62; +x_42 = l_Lean_Syntax_node1(x_12, x_39, x_41); +x_43 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__31; lean_inc(x_12); x_44 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_44, 0, x_12); lean_ctor_set(x_44, 1, x_43); -lean_inc_ref(x_44); +lean_inc_n(x_42, 2); lean_inc(x_12); -x_45 = l_Lean_Syntax_node3(x_12, x_24, x_34, x_42, x_44); -x_46 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__29; +x_45 = l_Lean_Syntax_node3(x_12, x_38, x_42, x_44, x_42); +x_46 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__62; lean_inc(x_12); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_12); lean_ctor_set(x_47, 1, x_46); -x_48 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__31; +lean_inc_ref(x_47); +lean_inc(x_12); +x_48 = l_Lean_Syntax_node3(x_12, x_27, x_37, x_45, x_47); x_49 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__32; +lean_inc(x_12); +x_50 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_50, 0, x_12); +lean_ctor_set(x_50, 1, x_49); +x_51 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__34; +x_52 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__35; lean_inc(x_9); lean_inc(x_8); -x_50 = l_Lean_addMacroScope(x_8, x_49, x_9); -x_51 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__2; +x_53 = l_Lean_addMacroScope(x_8, x_52, x_9); +x_54 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__2; lean_inc(x_12); -x_52 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_52, 0, x_12); -lean_ctor_set(x_52, 1, x_48); -lean_ctor_set(x_52, 2, x_50); -lean_ctor_set(x_52, 3, x_51); -lean_inc(x_12); -x_53 = l_Lean_Syntax_node3(x_12, x_23, x_45, x_47, x_52); -x_54 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__36; -lean_inc(x_12); -x_55 = lean_alloc_ctor(2, 2, 0); +x_55 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_55, 0, x_12); -lean_ctor_set(x_55, 1, x_54); +lean_ctor_set(x_55, 1, x_51); +lean_ctor_set(x_55, 2, x_53); +lean_ctor_set(x_55, 3, x_54); lean_inc(x_12); -x_56 = l_Lean_Syntax_node3(x_12, x_22, x_53, x_55, x_39); -x_57 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__17; +x_56 = l_Lean_Syntax_node3(x_12, x_26, x_48, x_50, x_55); +x_57 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__39; lean_inc(x_12); -x_58 = lean_alloc_ctor(1, 3, 0); +x_58 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_58, 0, x_12); -lean_ctor_set(x_58, 1, x_18); -lean_ctor_set(x_58, 2, x_57); -lean_inc_ref(x_58); +lean_ctor_set(x_58, 1, x_57); lean_inc(x_12); -x_59 = l_Lean_Syntax_node3(x_12, x_20, x_21, x_56, x_58); -x_60 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__37; -x_61 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__38; +x_59 = l_Lean_Syntax_node3(x_12, x_25, x_56, x_58, x_42); +x_60 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__17; lean_inc(x_12); -x_62 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_62, 0, x_12); -lean_ctor_set(x_62, 1, x_60); -x_63 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__8; -x_64 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__4; -x_65 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__6; +x_61 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_61, 0, x_12); +lean_ctor_set(x_61, 1, x_18); +lean_ctor_set(x_61, 2, x_60); +lean_inc_ref(x_61); +lean_inc(x_12); +x_62 = l_Lean_Syntax_node3(x_12, x_23, x_24, x_59, x_61); +lean_inc(x_12); +x_63 = l_Lean_Syntax_node1(x_12, x_18, x_62); +lean_inc(x_12); +x_64 = l_Lean_Syntax_node1(x_12, x_17, x_63); +lean_inc(x_12); +x_65 = l_Lean_Syntax_node1(x_12, x_16, x_64); +lean_inc(x_12); +x_66 = l_Lean_Syntax_node2(x_12, x_19, x_21, x_65); +x_67 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__40; +x_68 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__41; +lean_inc(x_12); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_12); +lean_ctor_set(x_69, 1, x_67); +x_70 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__11; +x_71 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__4; +x_72 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__6; lean_inc(x_9); lean_inc(x_8); -x_66 = l_Lean_addMacroScope(x_8, x_65, x_9); -x_67 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__8; +x_73 = l_Lean_addMacroScope(x_8, x_72, x_9); +x_74 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__8; lean_inc(x_12); -x_68 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_68, 0, x_12); -lean_ctor_set(x_68, 1, x_64); -lean_ctor_set(x_68, 2, x_66); -lean_ctor_set(x_68, 3, x_67); -x_69 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__46; -x_70 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__47; -lean_inc(x_12); -x_71 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_71, 0, x_12); -lean_ctor_set(x_71, 1, x_70); -lean_inc(x_12); -x_72 = l_Lean_Syntax_node2(x_12, x_69, x_71, x_38); -lean_inc(x_72); -lean_inc(x_12); -x_73 = l_Lean_Syntax_node2(x_12, x_18, x_72, x_72); -lean_inc(x_12); -x_74 = l_Lean_Syntax_node2(x_12, x_63, x_68, x_73); -lean_inc(x_12); -x_75 = l_Lean_Syntax_node2(x_12, x_61, x_62, x_74); +x_75 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_75, 0, x_12); +lean_ctor_set(x_75, 1, x_71); +lean_ctor_set(x_75, 2, x_73); +lean_ctor_set(x_75, 3, x_74); x_76 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__49; -x_77 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__51; -x_78 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__53; -x_79 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__56; -x_80 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__57; +x_77 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__50; lean_inc(x_12); -x_81 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_81, 0, x_12); -lean_ctor_set(x_81, 1, x_80); +x_78 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_78, 0, x_12); +lean_ctor_set(x_78, 1, x_77); lean_inc(x_12); -x_82 = l_Lean_Syntax_node1(x_12, x_79, x_81); +x_79 = l_Lean_Syntax_node2(x_12, x_76, x_78, x_41); +lean_inc(x_79); lean_inc(x_12); -x_83 = l_Lean_Syntax_node1(x_12, x_78, x_82); +x_80 = l_Lean_Syntax_node2(x_12, x_18, x_79, x_79); lean_inc(x_12); -x_84 = l_Lean_Syntax_node1(x_12, x_77, x_83); -x_85 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__59; -x_86 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__60; +x_81 = l_Lean_Syntax_node2(x_12, x_70, x_75, x_80); lean_inc(x_12); -x_87 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_87, 0, x_12); -lean_ctor_set(x_87, 1, x_86); -x_88 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__62; -x_89 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__63; +x_82 = l_Lean_Syntax_node2(x_12, x_68, x_69, x_81); +x_83 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__52; +x_84 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__54; +x_85 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__56; +x_86 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__59; +x_87 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__60; lean_inc(x_12); -x_90 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_90, 0, x_12); -lean_ctor_set(x_90, 1, x_89); -x_91 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__65; -x_92 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__66; +x_88 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_88, 0, x_12); +lean_ctor_set(x_88, 1, x_87); lean_inc(x_12); -x_93 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_93, 0, x_12); -lean_ctor_set(x_93, 1, x_92); -x_94 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__28; -lean_inc_ref(x_58); +x_89 = l_Lean_Syntax_node1(x_12, x_86, x_88); lean_inc(x_12); -x_95 = l_Lean_Syntax_node1(x_12, x_94, x_58); -lean_inc_ref_n(x_58, 3); -lean_inc(x_95); +x_90 = l_Lean_Syntax_node1(x_12, x_85, x_89); lean_inc(x_12); -x_96 = l_Lean_Syntax_node5(x_12, x_91, x_93, x_95, x_58, x_58, x_58); +x_91 = l_Lean_Syntax_node1(x_12, x_84, x_90); +x_92 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__62; +x_93 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__63; lean_inc(x_12); -x_97 = l_Lean_Syntax_node1(x_12, x_18, x_96); +x_94 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_94, 0, x_12); +lean_ctor_set(x_94, 1, x_93); +x_95 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__65; +x_96 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__66; lean_inc(x_12); -x_98 = l_Lean_Syntax_node1(x_12, x_17, x_97); +x_97 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_97, 0, x_12); +lean_ctor_set(x_97, 1, x_96); +x_98 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__68; +x_99 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__69; lean_inc(x_12); -x_99 = l_Lean_Syntax_node1(x_12, x_16, x_98); -lean_inc_ref(x_90); +x_100 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_100, 0, x_12); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__28; +lean_inc_ref(x_61); lean_inc(x_12); -x_100 = l_Lean_Syntax_node2(x_12, x_88, x_90, x_99); -x_101 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__25; -x_102 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__26; +x_102 = l_Lean_Syntax_node1(x_12, x_101, x_61); +lean_inc_ref_n(x_61, 3); +lean_inc(x_102); lean_inc(x_12); -x_103 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_103, 0, x_12); -lean_ctor_set(x_103, 1, x_101); -lean_inc_ref_n(x_58, 4); +x_103 = l_Lean_Syntax_node5(x_12, x_98, x_100, x_102, x_61, x_61, x_61); lean_inc(x_12); -x_104 = l_Lean_Syntax_node6(x_12, x_102, x_103, x_95, x_58, x_58, x_58, x_58); +x_104 = l_Lean_Syntax_node1(x_12, x_18, x_103); lean_inc(x_12); -x_105 = l_Lean_Syntax_node1(x_12, x_18, x_104); +x_105 = l_Lean_Syntax_node1(x_12, x_17, x_104); lean_inc(x_12); -x_106 = l_Lean_Syntax_node1(x_12, x_17, x_105); +x_106 = l_Lean_Syntax_node1(x_12, x_16, x_105); +lean_inc_ref(x_97); lean_inc(x_12); -x_107 = l_Lean_Syntax_node1(x_12, x_16, x_106); -lean_inc_ref(x_90); +x_107 = l_Lean_Syntax_node2(x_12, x_95, x_97, x_106); +x_108 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__25; +x_109 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__26; lean_inc(x_12); -x_108 = l_Lean_Syntax_node2(x_12, x_88, x_90, x_107); -x_109 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__0; -x_110 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__1; +x_110 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_110, 0, x_12); +lean_ctor_set(x_110, 1, x_108); +lean_inc_ref_n(x_61, 4); lean_inc(x_12); -x_111 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_111, 0, x_12); -lean_ctor_set(x_111, 1, x_109); -x_112 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__3; -x_113 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__67; +x_111 = l_Lean_Syntax_node6(x_12, x_109, x_110, x_102, x_61, x_61, x_61, x_61); lean_inc(x_12); -x_114 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_114, 0, x_12); -lean_ctor_set(x_114, 1, x_113); +x_112 = l_Lean_Syntax_node1(x_12, x_18, x_111); lean_inc(x_12); -x_115 = l_Lean_Syntax_node1(x_12, x_112, x_114); +x_113 = l_Lean_Syntax_node1(x_12, x_17, x_112); lean_inc(x_12); -x_116 = l_Lean_Syntax_node1(x_12, x_18, x_115); +x_114 = l_Lean_Syntax_node1(x_12, x_16, x_113); +lean_inc_ref(x_97); lean_inc(x_12); -x_117 = l_Lean_Syntax_node2(x_12, x_110, x_111, x_116); +x_115 = l_Lean_Syntax_node2(x_12, x_95, x_97, x_114); +x_116 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__0; +x_117 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__1; lean_inc(x_12); -x_118 = l_Lean_Syntax_node1(x_12, x_18, x_117); +x_118 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_118, 0, x_12); +lean_ctor_set(x_118, 1, x_116); +x_119 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__1___closed__3; +x_120 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__70; lean_inc(x_12); -x_119 = l_Lean_Syntax_node1(x_12, x_17, x_118); +x_121 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_121, 0, x_12); +lean_ctor_set(x_121, 1, x_120); lean_inc(x_12); -x_120 = l_Lean_Syntax_node1(x_12, x_16, x_119); +x_122 = l_Lean_Syntax_node1(x_12, x_119, x_121); lean_inc(x_12); -x_121 = l_Lean_Syntax_node2(x_12, x_88, x_90, x_120); +x_123 = l_Lean_Syntax_node1(x_12, x_18, x_122); lean_inc(x_12); -x_122 = l_Lean_Syntax_node3(x_12, x_18, x_100, x_108, x_121); +x_124 = l_Lean_Syntax_node2(x_12, x_117, x_118, x_123); lean_inc(x_12); -x_123 = l_Lean_Syntax_node2(x_12, x_85, x_87, x_122); +x_125 = l_Lean_Syntax_node1(x_12, x_18, x_124); lean_inc(x_12); -x_124 = l_Lean_Syntax_node1(x_12, x_18, x_123); +x_126 = l_Lean_Syntax_node1(x_12, x_17, x_125); lean_inc(x_12); -x_125 = l_Lean_Syntax_node1(x_12, x_17, x_124); +x_127 = l_Lean_Syntax_node1(x_12, x_16, x_126); lean_inc(x_12); -x_126 = l_Lean_Syntax_node1(x_12, x_16, x_125); +x_128 = l_Lean_Syntax_node2(x_12, x_95, x_97, x_127); lean_inc(x_12); -x_127 = l_Lean_Syntax_node2(x_12, x_76, x_84, x_126); -x_128 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__12; -x_129 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__13; +x_129 = l_Lean_Syntax_node3(x_12, x_18, x_107, x_115, x_128); lean_inc(x_12); -x_130 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_130, 0, x_12); -lean_ctor_set(x_130, 1, x_128); -x_131 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__69; -x_132 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__70; -x_133 = l_Lean_addMacroScope(x_8, x_132, x_9); +x_130 = l_Lean_Syntax_node2(x_12, x_92, x_94, x_129); lean_inc(x_12); -x_134 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_134, 0, x_12); -lean_ctor_set(x_134, 1, x_131); -lean_ctor_set(x_134, 2, x_133); -lean_ctor_set(x_134, 3, x_30); +x_131 = l_Lean_Syntax_node1(x_12, x_18, x_130); lean_inc(x_12); -x_135 = l_Lean_Syntax_node1(x_12, x_18, x_134); -lean_inc(x_135); +x_132 = l_Lean_Syntax_node1(x_12, x_17, x_131); lean_inc(x_12); -x_136 = l_Lean_Syntax_node2(x_12, x_129, x_130, x_135); -x_137 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__9; -x_138 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__10; +x_133 = l_Lean_Syntax_node1(x_12, x_16, x_132); lean_inc(x_12); -x_139 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_139, 0, x_12); -lean_ctor_set(x_139, 1, x_137); +x_134 = l_Lean_Syntax_node2(x_12, x_83, x_91, x_133); +x_135 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__12; +x_136 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__13; lean_inc(x_12); -x_140 = l_Lean_Syntax_node2(x_12, x_138, x_139, x_135); -x_141 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__60; -x_142 = lean_array_push(x_141, x_59); -lean_inc_ref(x_58); -x_143 = lean_array_push(x_142, x_58); -x_144 = lean_array_push(x_143, x_75); -lean_inc_ref(x_58); -x_145 = lean_array_push(x_144, x_58); -x_146 = lean_array_push(x_145, x_127); -lean_inc_ref(x_58); -x_147 = lean_array_push(x_146, x_58); -x_148 = lean_array_push(x_147, x_136); -x_149 = lean_array_push(x_148, x_58); -x_150 = lean_array_push(x_149, x_140); +x_137 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_137, 0, x_12); +lean_ctor_set(x_137, 1, x_135); +x_138 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__72; +x_139 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__73; +x_140 = l_Lean_addMacroScope(x_8, x_139, x_9); lean_inc(x_12); -x_151 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_151, 0, x_12); -lean_ctor_set(x_151, 1, x_18); -lean_ctor_set(x_151, 2, x_150); +x_141 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_141, 0, x_12); +lean_ctor_set(x_141, 1, x_138); +lean_ctor_set(x_141, 2, x_140); +lean_ctor_set(x_141, 3, x_33); lean_inc(x_12); -x_152 = l_Lean_Syntax_node1(x_12, x_17, x_151); +x_142 = l_Lean_Syntax_node1(x_12, x_18, x_141); +lean_inc(x_142); lean_inc(x_12); -x_153 = l_Lean_Syntax_node1(x_12, x_16, x_152); -x_154 = l_Lean_Syntax_node3(x_12, x_13, x_15, x_153, x_44); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_3); -return x_155; +x_143 = l_Lean_Syntax_node2(x_12, x_136, x_137, x_142); +x_144 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__9; +x_145 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__10; +lean_inc(x_12); +x_146 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_146, 0, x_12); +lean_ctor_set(x_146, 1, x_144); +lean_inc(x_12); +x_147 = l_Lean_Syntax_node2(x_12, x_145, x_146, x_142); +x_148 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__60; +x_149 = lean_array_push(x_148, x_66); +lean_inc_ref(x_61); +x_150 = lean_array_push(x_149, x_61); +x_151 = lean_array_push(x_150, x_82); +lean_inc_ref(x_61); +x_152 = lean_array_push(x_151, x_61); +x_153 = lean_array_push(x_152, x_134); +lean_inc_ref(x_61); +x_154 = lean_array_push(x_153, x_61); +x_155 = lean_array_push(x_154, x_143); +x_156 = lean_array_push(x_155, x_61); +x_157 = lean_array_push(x_156, x_147); +lean_inc(x_12); +x_158 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_158, 0, x_12); +lean_ctor_set(x_158, 1, x_18); +lean_ctor_set(x_158, 2, x_157); +lean_inc(x_12); +x_159 = l_Lean_Syntax_node1(x_12, x_17, x_158); +lean_inc(x_12); +x_160 = l_Lean_Syntax_node1(x_12, x_16, x_159); +x_161 = l_Lean_Syntax_node3(x_12, x_13, x_15, x_160, x_47); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_3); +return x_162; } } } @@ -2813,7 +2875,7 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("DerivingHelpers.and_true_curry", 30, 30); +x_1 = lean_mk_string_unchecked("term_&&_", 8, 8); return x_1; } } @@ -2822,7 +2884,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__0; -x_2 = l_String_toSubstring_x27(x_1); +x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } @@ -2830,38 +2892,63 @@ static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacti _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("and_true_curry", 14, 14); +x_1 = lean_mk_string_unchecked("&&", 2, 2); return x_1; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__2; -x_2 = l_DerivingHelpers_tacticDeriving__ReflEq__tactic___closed__0; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("DerivingHelpers.and_true_curry", 30, 30); +return x_1; } } static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__3; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("and_true_curry", 14, 14); +return x_1; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__5; +x_2 = l_DerivingHelpers_tacticDeriving__ReflEq__tactic___closed__0; +x_3 = l_Lean_Name_mkStr2(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__3; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___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___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__5() { +static lean_object* _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__4; +x_2 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___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); @@ -2886,7 +2973,7 @@ return x_7; } else { -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; 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_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; 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; x_8 = lean_ctor_get(x_2, 1); lean_inc(x_8); x_9 = lean_ctor_get(x_2, 2); @@ -2897,46 +2984,169 @@ lean_dec_ref(x_2); x_11 = 0; x_12 = l_Lean_SourceInfo_fromRef(x_10, x_11); lean_dec(x_10); -x_13 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__37; -x_14 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__38; +x_13 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__4; +x_14 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__5; lean_inc(x_12); x_15 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_15, 0, x_12); -lean_ctor_set(x_15, 1, x_13); -x_16 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__8; -x_17 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__1; -x_18 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__3; -x_19 = l_Lean_addMacroScope(x_8, x_18, x_9); -x_20 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__5; +lean_ctor_set(x_15, 1, x_14); +x_16 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__7; +x_17 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__9; +x_18 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__11; +x_19 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__1; +x_20 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__2; lean_inc(x_12); -x_21 = lean_alloc_ctor(3, 4, 0); +x_21 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_21, 0, x_12); -lean_ctor_set(x_21, 1, x_17); -lean_ctor_set(x_21, 2, x_19); -lean_ctor_set(x_21, 3, x_20); -x_22 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__11; -x_23 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__46; -x_24 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__47; +lean_ctor_set(x_21, 1, x_20); +x_22 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__3; +x_23 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__4; lean_inc(x_12); -x_25 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_24); -x_26 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27; +x_24 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_24, 0, x_12); +lean_ctor_set(x_24, 1, x_22); +x_25 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__7; +x_26 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__9; +x_27 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__17; +x_28 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__19; +x_29 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__21; +x_30 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__23; +x_31 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +x_32 = l_Lean_addMacroScope(x_8, x_31, x_9); +x_33 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__0; lean_inc(x_12); -x_27 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_27, 0, x_12); -lean_ctor_set(x_27, 1, x_26); +x_34 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_34, 0, x_12); +lean_ctor_set(x_34, 1, x_30); +lean_ctor_set(x_34, 2, x_32); +lean_ctor_set(x_34, 3, x_33); lean_inc(x_12); -x_28 = l_Lean_Syntax_node2(x_12, x_23, x_25, x_27); +x_35 = l_Lean_Syntax_node1(x_12, x_29, x_34); +lean_inc_ref(x_15); lean_inc(x_12); -x_29 = l_Lean_Syntax_node1(x_12, x_22, x_28); +x_36 = l_Lean_Syntax_node2(x_12, x_28, x_15, x_35); +x_37 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__1; +x_38 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27; +x_39 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__29; +x_40 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30; lean_inc(x_12); -x_30 = l_Lean_Syntax_node2(x_12, x_16, x_21, x_29); -x_31 = l_Lean_Syntax_node2(x_12, x_14, x_15, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_3); -return x_32; +x_41 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_41, 0, x_12); +lean_ctor_set(x_41, 1, x_40); +lean_inc_ref(x_41); +lean_inc(x_12); +x_42 = l_Lean_Syntax_node1(x_12, x_39, x_41); +x_43 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__31; +lean_inc(x_12); +x_44 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_44, 0, x_12); +lean_ctor_set(x_44, 1, x_43); +lean_inc_n(x_42, 2); +lean_inc(x_12); +x_45 = l_Lean_Syntax_node3(x_12, x_38, x_42, x_44, x_42); +x_46 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__2; +lean_inc(x_12); +x_47 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_47, 0, x_12); +lean_ctor_set(x_47, 1, x_46); +lean_inc(x_42); +lean_inc(x_12); +x_48 = l_Lean_Syntax_node3(x_12, x_37, x_45, x_47, x_42); +x_49 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__62; +lean_inc(x_12); +x_50 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_50, 0, x_12); +lean_ctor_set(x_50, 1, x_49); +lean_inc_ref(x_50); +lean_inc(x_12); +x_51 = l_Lean_Syntax_node3(x_12, x_27, x_36, x_48, x_50); +x_52 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__32; +lean_inc(x_12); +x_53 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_53, 0, x_12); +lean_ctor_set(x_53, 1, x_52); +x_54 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__34; +x_55 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__35; +lean_inc(x_9); +lean_inc(x_8); +x_56 = l_Lean_addMacroScope(x_8, x_55, x_9); +x_57 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__2; +lean_inc(x_12); +x_58 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_58, 0, x_12); +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_12); +x_59 = l_Lean_Syntax_node3(x_12, x_26, x_51, x_53, x_58); +x_60 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__39; +lean_inc(x_12); +x_61 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_61, 0, x_12); +lean_ctor_set(x_61, 1, x_60); +lean_inc(x_12); +x_62 = l_Lean_Syntax_node3(x_12, x_25, x_59, x_61, x_42); +x_63 = l_DerivingHelpers___aux__Init__LawfulBEqTactics______macroRules__DerivingHelpers__tacticDeriving__ReflEq__tactic__1___closed__17; +lean_inc(x_12); +x_64 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_64, 0, x_12); +lean_ctor_set(x_64, 1, x_18); +lean_ctor_set(x_64, 2, x_63); +lean_inc_ref(x_64); +lean_inc(x_12); +x_65 = l_Lean_Syntax_node3(x_12, x_23, x_24, x_62, x_64); +lean_inc(x_12); +x_66 = l_Lean_Syntax_node1(x_12, x_18, x_65); +lean_inc(x_12); +x_67 = l_Lean_Syntax_node1(x_12, x_17, x_66); +lean_inc(x_12); +x_68 = l_Lean_Syntax_node1(x_12, x_16, x_67); +lean_inc(x_12); +x_69 = l_Lean_Syntax_node2(x_12, x_19, x_21, x_68); +x_70 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__40; +x_71 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__41; +lean_inc(x_12); +x_72 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_72, 0, x_12); +lean_ctor_set(x_72, 1, x_70); +x_73 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__11; +x_74 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__4; +x_75 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__6; +x_76 = l_Lean_addMacroScope(x_8, x_75, x_9); +x_77 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__8; +lean_inc(x_12); +x_78 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_78, 0, x_12); +lean_ctor_set(x_78, 1, x_74); +lean_ctor_set(x_78, 2, x_76); +lean_ctor_set(x_78, 3, x_77); +x_79 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__49; +x_80 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__50; +lean_inc(x_12); +x_81 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_81, 0, x_12); +lean_ctor_set(x_81, 1, x_80); +lean_inc(x_12); +x_82 = l_Lean_Syntax_node2(x_12, x_79, x_81, x_41); +lean_inc(x_12); +x_83 = l_Lean_Syntax_node1(x_12, x_18, x_82); +lean_inc(x_12); +x_84 = l_Lean_Syntax_node2(x_12, x_73, x_78, x_83); +lean_inc(x_12); +x_85 = l_Lean_Syntax_node2(x_12, x_71, x_72, x_84); +lean_inc(x_12); +x_86 = l_Lean_Syntax_node3(x_12, x_18, x_69, x_64, x_85); +lean_inc(x_12); +x_87 = l_Lean_Syntax_node1(x_12, x_17, x_86); +lean_inc(x_12); +x_88 = l_Lean_Syntax_node1(x_12, x_16, x_87); +x_89 = l_Lean_Syntax_node3(x_12, x_13, x_15, x_88, x_50); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_3); +return x_90; } } } @@ -3097,8 +3307,8 @@ lean_inc(x_10); x_15 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_15, 0, x_10); lean_ctor_set(x_15, 1, x_13); -x_16 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__26; -x_17 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__27; +x_16 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__29; +x_17 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__30; lean_inc(x_10); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_10); @@ -3359,8 +3569,8 @@ lean_inc(x_12); x_45 = l_Lean_Syntax_node1(x_12, x_18, x_44); lean_inc(x_12); x_46 = l_Lean_Syntax_node2(x_12, x_20, x_21, x_45); -x_47 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__71; -x_48 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__72; +x_47 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__74; +x_48 = l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75; lean_inc(x_12); x_49 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_49, 0, x_12); @@ -3824,6 +4034,12 @@ l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tacti lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__74); l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75(); lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__75); +l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__76 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__76(); +lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__76); +l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__77 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__77(); +lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__77); +l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__78 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__78(); +lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__2___closed__78); l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__0 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__0(); lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__0); l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__1 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__3___closed__1(); @@ -3858,6 +4074,12 @@ l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tacti lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__4); l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__5 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__5(); lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__5); +l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__6 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__6(); +lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__6); +l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__7 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__7(); +lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__7); +l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__8 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__8(); +lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__4___closed__8); l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__5___closed__0 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__5___closed__0(); lean_mark_persistent(l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__5___closed__0); l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__5___closed__1 = _init_l___aux__Init__LawfulBEqTactics______macroRules__tacticDeriving__LawfulEq__tactic__step__5___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Grind.c b/stage0/stdlib/Lean/Elab/Tactic/Grind.c index 28e054df85..f9f9d55ef6 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Grind.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Grind.c @@ -418,7 +418,7 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrobnerConfig___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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Elab_Tactic_elabGrindParams_spec__15_spec__15___closed__22; LEAN_EXPORT lean_object* l_Lean_logWarning___at_____private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_warnRedundantEMatchArg_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at___Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Elab_Tactic_mkGrindOnly_spec__6_spec__6_spec__6_spec__6___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__1; @@ -12132,7 +12132,7 @@ lean_inc(x_89); lean_inc_ref(x_88); lean_inc_ref(x_97); lean_inc(x_2); -x_102 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_3, x_97, x_37, x_88, x_89, x_90, x_91, x_92); +x_102 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_3, x_97, x_37, x_37, x_88, x_89, x_90, x_91, x_92); if (lean_obj_tag(x_102) == 0) { lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; @@ -12149,7 +12149,7 @@ lean_inc(x_89); lean_inc_ref(x_88); lean_inc_ref(x_97); lean_inc(x_2); -x_106 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_105, x_97, x_37, x_88, x_89, x_90, x_91, x_104); +x_106 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_105, x_97, x_37, x_37, x_88, x_89, x_90, x_91, x_104); if (lean_obj_tag(x_106) == 0) { lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; @@ -12333,7 +12333,7 @@ lean_inc(x_89); lean_inc_ref(x_88); lean_inc_ref(x_128); lean_inc(x_2); -x_134 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_133, x_128, x_37, x_88, x_89, x_90, x_91, x_92); +x_134 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_133, x_128, x_37, x_37, x_88, x_89, x_90, x_91, x_92); if (lean_obj_tag(x_134) == 0) { lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; @@ -12350,7 +12350,7 @@ lean_inc(x_89); lean_inc_ref(x_88); lean_inc_ref(x_128); lean_inc(x_2); -x_138 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_137, x_128, x_37, x_88, x_89, x_90, x_91, x_136); +x_138 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_137, x_128, x_37, x_37, x_88, x_89, x_90, x_91, 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; uint8_t x_143; @@ -12535,7 +12535,7 @@ lean_inc(x_89); lean_inc_ref(x_88); lean_inc_ref(x_159); lean_inc(x_2); -x_164 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_3, x_159, x_37, x_88, x_89, x_90, x_91, x_92); +x_164 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_3, x_159, x_37, x_37, x_88, x_89, x_90, x_91, x_92); if (lean_obj_tag(x_164) == 0) { lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing.c index 872be9ede5..bd2ec916e6 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Arith.CommRing -// Imports: Lean.Util.Trace Lean.Meta.Tactic.Grind.Arith.CommRing.Poly Lean.Meta.Tactic.Grind.Arith.CommRing.Types Lean.Meta.Tactic.Grind.Arith.CommRing.RingId Lean.Meta.Tactic.Grind.Arith.CommRing.Internalize Lean.Meta.Tactic.Grind.Arith.CommRing.ToExpr Lean.Meta.Tactic.Grind.Arith.CommRing.RingM Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM Lean.Meta.Tactic.Grind.Arith.CommRing.Functions Lean.Meta.Tactic.Grind.Arith.CommRing.Reify Lean.Meta.Tactic.Grind.Arith.CommRing.EqCnstr Lean.Meta.Tactic.Grind.Arith.CommRing.Proof Lean.Meta.Tactic.Grind.Arith.CommRing.DenoteExpr Lean.Meta.Tactic.Grind.Arith.CommRing.Inv Lean.Meta.Tactic.Grind.Arith.CommRing.PP Lean.Meta.Tactic.Grind.Arith.CommRing.VarRename +// Imports: Lean.Util.Trace Lean.Meta.Tactic.Grind.Arith.CommRing.Poly Lean.Meta.Tactic.Grind.Arith.CommRing.Types Lean.Meta.Tactic.Grind.Arith.CommRing.RingId Lean.Meta.Tactic.Grind.Arith.CommRing.Internalize Lean.Meta.Tactic.Grind.Arith.CommRing.ToExpr Lean.Meta.Tactic.Grind.Arith.CommRing.RingM Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommRingM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommSemiringM Lean.Meta.Tactic.Grind.Arith.CommRing.Functions Lean.Meta.Tactic.Grind.Arith.CommRing.Reify Lean.Meta.Tactic.Grind.Arith.CommRing.EqCnstr Lean.Meta.Tactic.Grind.Arith.CommRing.Proof Lean.Meta.Tactic.Grind.Arith.CommRing.DenoteExpr Lean.Meta.Tactic.Grind.Arith.CommRing.Inv Lean.Meta.Tactic.Grind.Arith.CommRing.PP Lean.Meta.Tactic.Grind.Arith.CommRing.VarRename Lean.Meta.Tactic.Grind.Arith.CommRing.MonadCanon Lean.Meta.Tactic.Grind.Arith.CommRing.MonadRing Lean.Meta.Tactic.Grind.Arith.CommRing.MonadSemiring #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -1855,6 +1855,8 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize(uint8_ lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_ToExpr(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommSemiringM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr(uint8_t builtin, lean_object*); @@ -1863,6 +1865,9 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr(uint8_t lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Inv(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_PP(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_VarRename(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadCanon(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadRing(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadSemiring(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1892,6 +1897,12 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommSemiringM(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -1916,6 +1927,15 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_VarRename(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadCanon(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadRing(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadSemiring(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_0__Lean_Meta_Grind_Arith_CommRing_initFn___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_3846929371____hygCtx___hyg_2_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_0__Lean_Meta_Grind_Arith_CommRing_initFn___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_3846929371____hygCtx___hyg_2_(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_0__Lean_Meta_Grind_Arith_CommRing_initFn___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_3846929371____hygCtx___hyg_2_); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_0__Lean_Meta_Grind_Arith_CommRing_initFn___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_3846929371____hygCtx___hyg_2_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_0__Lean_Meta_Grind_Arith_CommRing_initFn___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_3846929371____hygCtx___hyg_2_(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/EqCnstr.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/EqCnstr.c index 7468034b00..7a5c8b344d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/EqCnstr.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/EqCnstr.c @@ -20,6 +20,7 @@ uint8_t l_Int_decidableDvd(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SafePoly_0__Lean_Meta_Grind_Arith_CommRing_toPoly(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_Grind_Arith_CommRing_getInvFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__6___closed__1; lean_object* l_Lean_Meta_Grind_Arith_gcdExt(lean_object*, lean_object*); +lean_object* l_Lean_Grind_CommRing_Expr_toPoly(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__6___closed__0; @@ -41,7 +42,6 @@ static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHas static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__3; lean_object* l_Lean_Meta_Grind_Arith_CommRing_noZeroDivisors(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_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__8(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_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_reify_x3f(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_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyWithCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -53,15 +53,17 @@ size_t lean_usize_shift_right(size_t, size_t); lean_object* l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat(lean_object*, lean_object*, lean_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_Init_While_0__Lean_Loop_forIn_loop___at_____private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_checkRing_spec__0_spec__0___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* l_Lean_Grind_CommRing_Poly_lm(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__6___closed__3; uint8_t l_instDecidableEqOrdering(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyUsingNumEq0___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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions_0__Lean_Meta_Grind_Arith_CommRing_mkOne___at___Lean_Meta_Grind_Arith_CommRing_getOne___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__7_spec__7___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg(lean_object*, size_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___closed__0; LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_checkRing_spec__0(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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq___lam__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_getMultiplier(lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2___closed__0; @@ -79,6 +81,7 @@ lean_object* l_Lean_indentD(lean_object*); lean_object* l_Lean_Meta_Grind_isEqv___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs_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_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__8; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplify_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*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__5; uint64_t lean_uint64_of_nat(lean_object*); @@ -95,6 +98,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNext_x3f(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_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10_spec__10_spec__10_spec__10(lean_object*, lean_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_Grind_Arith_CommRing_addToBasisCore___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__7_spec__11___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyBasis_go___closed__0; static lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__19___redArg___closed__1; @@ -102,18 +106,18 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCns lean_object* l_Lean_Level_succ___override(lean_object*); lean_object* l_Nat_decLt___boxed(lean_object*, lean_object*); lean_object* l_Std_PRange_instSupportsUpperBoundOpenOfDecidableLT___redArg(lean_object*); -lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(lean_object*); lean_object* l_Lean_Meta_Grind_reportIssue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__8___closed__2; lean_object* l_Lean_Grind_CommRing_Poly_normEq0(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqZeroToEq___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkNumEq0Updated_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_object*, lean_object*); lean_object* l_Lean_Core_checkSystem(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_nonzeroChar_x3f___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__0___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_mul(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_spec__0_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_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommRing_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -124,7 +128,9 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_____private_Lean_Meta LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__8___lam__0(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__7_spec__11(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*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__0; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_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_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(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_Grind_CommRing_Mon_findSimp_x3f___closed__0; lean_object* lean_int_emod(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -152,7 +158,7 @@ LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___a lean_object* l_Lean_Grind_CommRing_Poly_mulConstC(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Mon_findSimp_x3f(lean_object*, 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_Grind_instInhabitedGoalM(lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqCommRing(lean_object*, 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_Grind_Arith_CommRing_setSemiringDiseqUnsat(lean_object*, lean_object*, lean_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_Grind_Arith_CommRing_getOne___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__7___lam__0(lean_object*, lean_object*); @@ -162,7 +168,7 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_addToBasisCore___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkRing___closed__2; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkNumEq0Updated_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* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_spec__0_spec__1_spec__1___closed__1; lean_object* l_Lean_Meta_Grind_getConfig___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkEqCnstr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -172,6 +178,7 @@ LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Meta_Grind LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkRing(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_Grind_Arith_CommRing_checkRing___lam__0(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameSemiring_x3f___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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring_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_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__0_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lean_Level_ofNat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toMonic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -198,6 +205,7 @@ lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith___closed__3; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions_0__Lean_Meta_Grind_Arith_CommRing_mkOne___at___Lean_Meta_Grind_Arith_CommRing_getOne___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___redArg(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_Grind_Arith_CommRing_EqCnstr_superposeWith_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_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_processNewEq___closed__0; size_t lean_usize_of_nat(lean_object*); @@ -206,6 +214,7 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_L lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkMaxSteps___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_DiseqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_DiseqCnstr_checkConstant_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqZeroToEq___closed__3; +static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__0; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__1_spec__1_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkCoeffDvd___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToBasisAfterSimp___closed__0; @@ -215,6 +224,8 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_L LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyUsingNumEq0(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_Grind_CommRing_Poly_divConst(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__10; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__6; uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__19___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*); @@ -222,10 +233,13 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns uint64_t lean_uint64_shift_right(uint64_t, uint64_t); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToQueue___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___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_nat_to_int(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs___closed__3; +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_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_nat_div(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___lam__1(lean_object*, uint8_t, lean_object*); uint8_t l_Lean_Grind_CommRing_Mon_grevlex(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__16_spec__16___closed__6; @@ -239,12 +253,11 @@ LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___L LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions_0__Lean_Meta_Grind_Arith_CommRing_mkOne___at___Lean_Meta_Grind_Arith_CommRing_getOne___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__7_spec__7(lean_object*, lean_object*, 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_Grind_Arith_CommRing_isField(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_Grind_Arith_CommRing_EqCnstr_checkConstant___lam__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyBasis___lam__0(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2_spec__2_spec__2___closed__0; lean_object* l_Lean_MessageData_ofFormat(lean_object*); +lean_object* l_Lean_Grind_CommRing_Expr_toPolyS__nc(lean_object*); static lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at_____private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplify_spec__1_spec__1___closed__3; -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplify(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_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10_spec__10_spec__10_spec__10___closed__6; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -283,28 +296,31 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_L LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__0_spec__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_spec__0_spec__1_spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_profileitM___at___Lean_Meta_Grind_Arith_CommRing_check_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_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2___closed__0; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_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_object*, lean_object*); lean_object* l_Lean_Grind_CommRing_Expr_toPoly__nc(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0_spec__0___redArg___closed__2; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0_spec__0___redArg___closed__3; extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0_spec__0___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs_spec__0_spec__0_spec__0___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_check___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_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__8___closed__1; lean_object* l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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*); uint64_t l_Lean_Expr_hash(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs___lam__0(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___lam__2___closed__1; lean_object* l_Lean_PersistentArray_push___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplify_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_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__6___lam__0(lean_object*, lean_object*); @@ -323,7 +339,6 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_addNewDiseq(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_List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_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*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq___closed__6; uint8_t l_Lean_Grind_CommRing_Mon_sharesVar(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__1___redArg(lean_object*, lean_object*, lean_object*); @@ -336,14 +351,12 @@ lean_object* l_Lean_mkNot(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___closed__3; static lean_object* l_Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10___closed__0; static double l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__19___redArg___closed__0; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__0; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_spec__0_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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions_0__Lean_Meta_Grind_Arith_CommRing_mkOne___at___Lean_Meta_Grind_Arith_CommRing_getOne___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__7_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_object* l_Lean_Grind_CommRing_Poly_simp_x3f(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10_spec__10(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_DTreeMap_Internal_Impl_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToQueue_spec__1___redArg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs___lam__0___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__7_spec__11_spec__11___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_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2_spec__2_spec__2_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -351,7 +364,6 @@ lean_object* l_Lean_Grind_CommRing_Poly_gcdCoeffs(lean_object*); lean_object* l_Lean_Meta_Grind_updateLastTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at_____private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplify_spec__1_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_object*); lean_object* l_Lean_Meta_Grind_isInconsistent___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__2; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__3___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10_spec__10_spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -381,6 +393,7 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_L LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Mon_denoteExpr_go___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10_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* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat(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_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_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_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_pre(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_Meta_Grind_Arith_CommRing_check_spec__0___redArg(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*); @@ -389,8 +402,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCns LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToQueue_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Grind_CommRing_Poly_spolM(lean_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_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10_spec__10_spec__10_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_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring(lean_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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_spec__0_spec__0___boxed(lean_object**); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat(lean_object*, lean_object*, lean_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_Grind_Arith_CommRing_DiseqCnstr_checkConstant(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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process(lean_object*, lean_object*, 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_get_x21___redArg(lean_object*, lean_object*, lean_object*); @@ -415,9 +429,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyWith(l lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkInvariants(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_Grind_Arith_CommRing_PolyDerivation_simplifyNumEq0___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_Grind_CommRing_Expr_toPolyC__nc_go(lean_object*, lean_object*); -static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__1; lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0___boxed(lean_object**); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__8; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); @@ -443,17 +455,14 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getOne___at_____privat lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_spec__0_spec__1_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_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0_spec__0___redArg___closed__5; -static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__0; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_findSimp_x3f(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_indentExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameSemiring_x3f(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_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_check___closed__0; -lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr(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_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6(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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyBasis_go___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*); @@ -465,18 +474,18 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_saveDiseq___lam__0(lea lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermRingId_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs___lam__0___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__16_spec__16___closed__0; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__6; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__1; LEAN_EXPORT lean_object* l_Lean_profileitM___at___Lean_Meta_Grind_Arith_CommRing_check_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_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at_____private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_checkRing_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_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(lean_object*, lean_object*); lean_object* l_List_reverse___redArg(lean_object*); uint8_t lean_int_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2___closed__4; lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__7_spec__7_spec__7(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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__10_spec__10_spec__10___lam__0(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2___closed__8; @@ -495,9 +504,11 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Denot extern lean_object* l_Lean_Nat_mkType; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2_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_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_EXPORT lean_object* l_panic___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant_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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_nextPowerOfTwo(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs_spec__0_spec__0_spec__1___boxed(lean_object**); lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkRing___closed__0; @@ -508,6 +519,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToBasis(lea LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_addNewEq(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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_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_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__1; size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith(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_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__9; @@ -529,7 +541,6 @@ lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__1___redArg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiring(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_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__2___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__1_spec__1_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_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*); @@ -538,22 +549,20 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCns LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); lean_object* l_Lean_Meta_Grind_shareCommon___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg___boxed(lean_object*, lean_object*); 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_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_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*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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*); uint8_t lean_int_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__16_spec__16___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs_spec__0_spec__0_spec__1_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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__8___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f(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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__9; static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0_spec__0___redArg___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__1_spec__1_spec__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__4; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__7_spec__7_spec__8_spec__8(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*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplify_spec__1___boxed(lean_object**); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___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_Meta_Grind_Arith_CommRing_PolyDerivation_p(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameRing_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_checkRing_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*); @@ -564,7 +573,6 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_L LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_addSorted(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkDiseqs_spec__0_spec__4_spec__4(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_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___closed__6; -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_int_neg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_mkEq___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplify_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_array_get(lean_object*, lean_object*, lean_object*); @@ -579,6 +587,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___a LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__16(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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqZeroToEq___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameSemiring_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2___closed__5; @@ -590,8 +600,10 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_L lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplify_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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Grind_CommRing_Mon_findSimp_x3f_spec__0___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_checkNumEq0Updated(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_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__1_spec__1_spec__1_spec__1___redArg(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_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0_spec__0___boxed(lean_object**); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__8_spec__8___closed__6; @@ -599,6 +611,7 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__2_spec__6___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0(lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(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_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process_spec__0(lean_object*, lean_object*, lean_object*); @@ -616,8 +629,11 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_L static lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at_____private_Init_While_0__Lean_Loop_forIn_loop___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplify_spec__1_spec__1___closed__1; lean_object* l_Lean_Meta_Grind_getConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqZeroToEq(lean_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_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(lean_object*, lean_object*); uint8_t l_Lean_Grind_CommRing_Mon_divides(lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_superposeWith_spec__0_spec__0___redArg___closed__7; +lean_object* l_Lean_Grind_CommRing_Expr_denoteAsRingExpr(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_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameRing_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -1047,6 +1063,149 @@ lean_dec_ref(x_1); return x_12; } } +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___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; +x_6 = l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(x_1, x_3, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec_ref(x_6); +x_9 = lean_ctor_get(x_7, 0); +x_10 = l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(x_2, x_3, x_4, x_8); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_dec_ref(x_7); +return x_10; +} +else +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_10, 0); +lean_dec(x_13); +x_14 = lean_ctor_get(x_11, 0); +lean_inc(x_14); +lean_dec_ref(x_11); +x_15 = lean_nat_dec_eq(x_9, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec_ref(x_7); +x_16 = lean_box(0); +lean_ctor_set(x_10, 0, x_16); +return x_10; +} +else +{ +lean_ctor_set(x_10, 0, x_7); +return x_10; +} +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec_ref(x_11); +x_19 = lean_nat_dec_eq(x_9, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec_ref(x_7); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +else +{ +lean_object* x_22; +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_7); +lean_ctor_set(x_22, 1, x_17); +return x_22; +} +} +} +} +else +{ +lean_dec_ref(x_7); +return x_10; +} +} +} +else +{ +return x_6; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_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, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___redArg(x_1, x_2, x_3, x_9, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___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_6; +x_6 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___redArg(x_1, x_2, x_3, x_4, x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___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_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkEqCnstr___lam__0(lean_object* x_1) { _start: { @@ -1464,244 +1623,7 @@ lean_dec_ref(x_7); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_array_get_size(x_1); -x_6 = lean_nat_dec_lt(x_3, x_5); -lean_dec(x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_3); -x_7 = lean_box(0); -return x_7; -} -else -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_fget_borrowed(x_1, x_3); -x_9 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_3, x_10); -lean_dec(x_3); -x_3 = x_11; -goto _start; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_array_fget_borrowed(x_2, x_3); -lean_dec(x_3); -lean_inc(x_13); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___redArg(x_2, x_3, x_5, x_6); -return x_7; -} -} -static size_t _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__0() { -_start: -{ -size_t x_1; size_t x_2; size_t x_3; -x_1 = 5; -x_2 = 1; -x_3 = lean_usize_shift_left(x_2, x_1); -return x_3; -} -} -static size_t _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__1() { -_start: -{ -size_t x_1; size_t x_2; size_t x_3; -x_1 = 1; -x_2 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__0; -x_3 = lean_usize_sub(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg(lean_object* x_1, size_t x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_box(2); -x_7 = 5; -x_8 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__1; -x_9 = lean_usize_land(x_2, x_8); -x_10 = lean_usize_to_nat(x_9); -x_11 = lean_array_get(x_6, x_5, x_10); -lean_dec(x_10); -lean_dec_ref(x_5); -switch (lean_obj_tag(x_11)) { -case 0: -{ -lean_object* x_12; lean_object* x_13; uint8_t 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); -x_14 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_12); -lean_dec(x_12); -if (x_14 == 0) -{ -lean_object* x_15; -lean_dec(x_13); -lean_free_object(x_1); -x_15 = lean_box(0); -return x_15; -} -else -{ -lean_ctor_set_tag(x_1, 1); -lean_ctor_set(x_1, 0, x_13); -return x_1; -} -} -case 1: -{ -lean_object* x_16; size_t x_17; -lean_free_object(x_1); -x_16 = lean_ctor_get(x_11, 0); -lean_inc(x_16); -lean_dec_ref(x_11); -x_17 = lean_usize_shift_right(x_2, x_7); -x_1 = x_16; -x_2 = x_17; -goto _start; -} -default: -{ -lean_object* x_19; -lean_free_object(x_1); -x_19 = lean_box(0); -return x_19; -} -} -} -else -{ -lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -lean_dec(x_1); -x_21 = lean_box(2); -x_22 = 5; -x_23 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__1; -x_24 = lean_usize_land(x_2, x_23); -x_25 = lean_usize_to_nat(x_24); -x_26 = lean_array_get(x_21, x_20, x_25); -lean_dec(x_25); -lean_dec_ref(x_20); -switch (lean_obj_tag(x_26)) { -case 0: -{ -lean_object* x_27; lean_object* x_28; uint8_t 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); -x_29 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_27); -lean_dec(x_27); -if (x_29 == 0) -{ -lean_object* x_30; -lean_dec(x_28); -x_30 = lean_box(0); -return x_30; -} -else -{ -lean_object* x_31; -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_28); -return x_31; -} -} -case 1: -{ -lean_object* x_32; size_t x_33; -x_32 = lean_ctor_get(x_26, 0); -lean_inc(x_32); -lean_dec_ref(x_26); -x_33 = lean_usize_shift_right(x_2, x_22); -x_1 = x_32; -x_2 = x_33; -goto _start; -} -default: -{ -lean_object* x_35; -x_35 = lean_box(0); -return x_35; -} -} -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_36); -x_37 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_37); -lean_dec_ref(x_1); -x_38 = lean_unsigned_to_nat(0u); -x_39 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___redArg(x_36, x_37, x_38, x_3); -lean_dec_ref(x_37); -lean_dec_ref(x_36); -return x_39; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg(x_2, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint64_t x_3; size_t x_4; lean_object* x_5; -x_3 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_2); -x_4 = lean_uint64_to_usize(x_3); -x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg(x_1, x_4, x_2); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_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_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_2, x_3); -return x_4; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__0() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__0() { _start: { lean_object* x_1; @@ -1709,477 +1631,179 @@ x_1 = lean_mk_string_unchecked("failed to convert to semiring expression", 40, 4 return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__0; +x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__0; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_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, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) +uint8_t x_8; +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 11); +if (x_8 == 0) { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); -x_16 = lean_ctor_get(x_14, 12); -lean_inc_ref(x_16); -x_17 = lean_ctor_get(x_14, 14); -lean_inc_ref(x_17); -lean_dec(x_14); -x_18 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_16, x_1); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_17, x_1); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; -lean_free_object(x_12); -x_20 = l_Lean_Meta_Grind_getConfig___redArg(x_5, x_15); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*8 + 11); -lean_dec(x_21); -if (x_22 == 0) -{ -uint8_t x_23; -lean_dec_ref(x_1); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_20, 0); -lean_dec(x_24); -lean_ctor_set(x_20, 0, x_18); -return x_20; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -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_20, 1); -lean_inc(x_27); -lean_dec_ref(x_20); -x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__1; -x_29 = l_Lean_indentExpr(x_1); -x_30 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_Meta_Grind_reportIssue(x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -lean_ctor_set(x_31, 0, x_18); -return x_31; -} -else -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_18); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -else -{ -uint8_t x_36; -x_36 = !lean_is_exclusive(x_31); -if (x_36 == 0) -{ -return x_31; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_31, 0); -x_38 = lean_ctor_get(x_31, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_31); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -} -else -{ -uint8_t x_40; -lean_dec_ref(x_1); -x_40 = !lean_is_exclusive(x_20); -if (x_40 == 0) -{ -return x_20; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_20, 0); -x_42 = lean_ctor_get(x_20, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_20); -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_ref(x_1); -x_44 = !lean_is_exclusive(x_19); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_19, 0); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_19, 0, x_46); -lean_ctor_set(x_12, 0, x_19); -return x_12; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_19, 0); -lean_inc(x_47); -lean_dec(x_19); -x_48 = lean_alloc_ctor(1, 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_12, 0, x_49); -return x_12; -} -} -} -else -{ -lean_dec_ref(x_17); -lean_dec_ref(x_1); -lean_ctor_set(x_12, 0, x_18); -return x_12; -} -} -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_12, 0); -x_51 = lean_ctor_get(x_12, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_12); -x_52 = lean_ctor_get(x_50, 12); -lean_inc_ref(x_52); -x_53 = lean_ctor_get(x_50, 14); -lean_inc_ref(x_53); -lean_dec(x_50); -x_54 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_52, x_1); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; -x_55 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_53, x_1); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; -x_56 = l_Lean_Meta_Grind_getConfig___redArg(x_5, x_51); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; uint8_t x_58; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get_uint8(x_57, sizeof(void*)*8 + 11); -lean_dec(x_57); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec_ref(x_1); -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_60 = x_56; -} else { - lean_dec_ref(x_56); - x_60 = lean_box(0); -} -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(0, 2, 0); -} else { - x_61 = x_60; -} -lean_ctor_set(x_61, 0, x_54); -lean_ctor_set(x_61, 1, x_59); -return x_61; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_62 = lean_ctor_get(x_56, 1); -lean_inc(x_62); -lean_dec_ref(x_56); -x_63 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__1; -x_64 = l_Lean_indentExpr(x_1); -x_65 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_Meta_Grind_reportIssue(x_65, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_62); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_68 = x_66; -} else { - lean_dec_ref(x_66); - x_68 = lean_box(0); -} -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(0, 2, 0); -} else { - x_69 = x_68; -} -lean_ctor_set(x_69, 0, x_54); -lean_ctor_set(x_69, 1, x_67); -return x_69; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_66, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_66, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_72 = x_66; -} else { - lean_dec_ref(x_66); - x_72 = lean_box(0); -} -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(1, 2, 0); -} else { - x_73 = x_72; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -return x_73; -} -} -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec_ref(x_1); -x_74 = lean_ctor_get(x_56, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_56, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_76 = x_56; -} else { - lean_dec_ref(x_56); - 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; lean_object* x_82; -lean_dec_ref(x_1); -x_78 = lean_ctor_get(x_55, 0); -lean_inc(x_78); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - x_79 = x_55; -} else { - lean_dec_ref(x_55); - x_79 = lean_box(0); -} -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_78); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(1, 1, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_51); -return x_82; -} -} -else -{ -lean_object* x_83; -lean_dec_ref(x_53); -lean_dec_ref(x_1); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_54); -lean_ctor_set(x_83, 1, x_51); -return x_83; -} -} -} -else -{ -uint8_t x_84; -lean_dec_ref(x_1); -x_84 = !lean_is_exclusive(x_12); -if (x_84 == 0) -{ -return x_12; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_12, 0); -x_86 = lean_ctor_get(x_12, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_12); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_6); +lean_dec(x_5); lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -return x_5; +x_9 = lean_box(0); +x_10 = lean_apply_2(x_1, lean_box(0), x_9); +x_11 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_10, x_3); +return x_11; } -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_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) { -_start: +else { -lean_object* x_7; -x_7 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec_ref(x_6); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg(x_1, x_4, x_3); -lean_dec_ref(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; lean_object* x_6; -x_5 = lean_unbox_usize(x_3); +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_dec(x_3); -x_6 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0(x_1, x_2, x_5, x_4); -lean_dec_ref(x_4); +lean_dec(x_1); +x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1; +x_13 = l_Lean_indentExpr(x_4); +x_14 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_reportIssue___boxed), 9, 1); +lean_closure_set(x_15, 0, x_14); +x_16 = lean_apply_2(x_5, lean_box(0), x_15); +x_17 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_16, x_6); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_7, 8); +lean_inc_ref(x_8); +x_9 = lean_ctor_get(x_7, 10); +lean_inc_ref(x_9); +lean_dec_ref(x_7); +lean_inc_ref(x_3); +lean_inc_ref(x_2); +lean_inc_ref(x_1); +x_10 = l_Lean_PersistentHashMap_find_x3f___redArg(x_1, x_2, x_8, x_3); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +lean_inc_ref(x_3); +x_11 = l_Lean_PersistentHashMap_find_x3f___redArg(x_1, x_2, x_9, x_3); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_inc(x_4); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___lam__0), 3, 2); +lean_closure_set(x_12, 0, x_4); +lean_closure_set(x_12, 1, x_10); +lean_inc(x_6); +lean_inc_ref(x_12); +lean_inc(x_5); +x_13 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___boxed), 7, 6); +lean_closure_set(x_13, 0, x_4); +lean_closure_set(x_13, 1, x_5); +lean_closure_set(x_13, 2, x_12); +lean_closure_set(x_13, 3, x_3); +lean_closure_set(x_13, 4, x_6); +lean_closure_set(x_13, 5, x_12); +x_14 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___lam__1___closed__0; +x_15 = lean_apply_2(x_6, lean_box(0), x_14); +x_16 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_15, x_13); +return x_16; +} +else +{ +uint8_t x_17; +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +x_17 = !lean_is_exclusive(x_11); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_11, 0, x_19); +x_20 = lean_apply_2(x_4, lean_box(0), x_11); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_11, 0); +lean_inc(x_21); +lean_dec(x_11); +x_22 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_apply_2(x_4, lean_box(0), x_23); +return x_24; +} +} +} +else +{ +lean_object* x_25; +lean_dec_ref(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_25 = lean_apply_2(x_4, lean_box(0), x_10); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +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_3, 0); +lean_inc(x_7); +lean_dec_ref(x_3); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec_ref(x_5); +x_9 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___closed__0; +x_10 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___closed__1; +lean_inc(x_6); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__0), 7, 6); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_10); +lean_closure_set(x_11, 2, x_4); +lean_closure_set(x_11, 3, x_8); +lean_closure_set(x_11, 4, x_6); +lean_closure_set(x_11, 5, x_2); +x_12 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(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; +x_6 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg(x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___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) { _start: { -lean_object* x_3; -x_3 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_1, x_2); -lean_dec_ref(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___boxed(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_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0(x_1, x_2, x_3); -lean_dec_ref(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___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_12; -x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); +lean_object* x_8; +x_8 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_12; +return x_8; } } LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Grind_CommRing_Mon_findSimp_x3f_spec__0___redArg(lean_object* 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) { @@ -11437,7 +11061,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_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__5; x_2 = lean_unsigned_to_nat(27u); -x_3 = lean_unsigned_to_nat(182u); +x_3 = lean_unsigned_to_nat(189u); x_4 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__4; x_5 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__3; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -13516,9 +13140,9 @@ goto block_154; block_147: { lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_nat_add(x_142, x_143); +x_144 = lean_nat_add(x_141, x_143); lean_dec(x_143); -lean_dec(x_142); +lean_dec(x_141); if (lean_is_scalar(x_138)) { x_145 = lean_alloc_ctor(0, 5, 0); } else { @@ -13537,7 +13161,7 @@ if (lean_is_scalar(x_128)) { lean_ctor_set(x_146, 0, x_140); lean_ctor_set(x_146, 1, x_130); lean_ctor_set(x_146, 2, x_131); -lean_ctor_set(x_146, 3, x_141); +lean_ctor_set(x_146, 3, x_142); lean_ctor_set(x_146, 4, x_145); return x_146; } @@ -13563,8 +13187,8 @@ if (lean_obj_tag(x_133) == 0) lean_object* x_152; x_152 = lean_ctor_get(x_133, 0); lean_inc(x_152); -x_141 = x_150; -x_142 = x_151; +x_141 = x_151; +x_142 = x_150; x_143 = x_152; goto block_147; } @@ -13572,8 +13196,8 @@ else { lean_object* x_153; x_153 = lean_unsigned_to_nat(0u); -x_141 = x_150; -x_142 = x_151; +x_141 = x_151; +x_142 = x_150; x_143 = x_153; goto block_147; } @@ -17826,8 +17450,8 @@ if (x_61 == 0) { lean_inc(x_14); lean_inc(x_13); -x_33 = x_60; -x_34 = x_58; +x_33 = x_58; +x_34 = x_60; goto block_38; } else @@ -17842,8 +17466,8 @@ else { lean_inc(x_14); lean_inc(x_13); -x_33 = x_60; -x_34 = x_58; +x_33 = x_58; +x_34 = x_60; goto block_38; } } @@ -17971,16 +17595,16 @@ x_36 = lean_int_dec_lt(x_22, x_35); lean_dec(x_22); if (x_36 == 0) { -x_15 = x_34; -x_16 = x_33; +x_15 = x_33; +x_16 = x_34; goto block_21; } else { lean_object* x_37; -x_37 = lean_int_neg(x_33); -lean_dec(x_33); -x_15 = x_34; +x_37 = lean_int_neg(x_34); +lean_dec(x_34); +x_15 = x_33; x_16 = x_37; goto block_21; } @@ -21360,6 +20984,243 @@ return x_50; } } } +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_3, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_3); +x_7 = lean_box(0); +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_fget_borrowed(x_1, x_3); +x_9 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_array_fget_borrowed(x_2, x_3); +lean_dec(x_3); +lean_inc(x_13); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___redArg(x_2, x_3, x_5, x_6); +return x_7; +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__0() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 5; +x_2 = 1; +x_3 = lean_usize_shift_left(x_2, x_1); +return x_3; +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__1() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__0; +x_3 = lean_usize_sub(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_box(2); +x_7 = 5; +x_8 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__1; +x_9 = lean_usize_land(x_2, x_8); +x_10 = lean_usize_to_nat(x_9); +x_11 = lean_array_get(x_6, x_5, x_10); +lean_dec(x_10); +lean_dec_ref(x_5); +switch (lean_obj_tag(x_11)) { +case 0: +{ +lean_object* x_12; lean_object* x_13; uint8_t 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); +x_14 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_12); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +lean_free_object(x_1); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_ctor_set_tag(x_1, 1); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +case 1: +{ +lean_object* x_16; size_t x_17; +lean_free_object(x_1); +x_16 = lean_ctor_get(x_11, 0); +lean_inc(x_16); +lean_dec_ref(x_11); +x_17 = lean_usize_shift_right(x_2, x_7); +x_1 = x_16; +x_2 = x_17; +goto _start; +} +default: +{ +lean_object* x_19; +lean_free_object(x_1); +x_19 = lean_box(0); +return x_19; +} +} +} +else +{ +lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_1, 0); +lean_inc(x_20); +lean_dec(x_1); +x_21 = lean_box(2); +x_22 = 5; +x_23 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__1; +x_24 = lean_usize_land(x_2, x_23); +x_25 = lean_usize_to_nat(x_24); +x_26 = lean_array_get(x_21, x_20, x_25); +lean_dec(x_25); +lean_dec_ref(x_20); +switch (lean_obj_tag(x_26)) { +case 0: +{ +lean_object* x_27; lean_object* x_28; uint8_t 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); +x_29 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_27); +lean_dec(x_27); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_28); +x_30 = lean_box(0); +return x_30; +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_28); +return x_31; +} +} +case 1: +{ +lean_object* x_32; size_t x_33; +x_32 = lean_ctor_get(x_26, 0); +lean_inc(x_32); +lean_dec_ref(x_26); +x_33 = lean_usize_shift_right(x_2, x_22); +x_1 = x_32; +x_2 = x_33; +goto _start; +} +default: +{ +lean_object* x_35; +x_35 = lean_box(0); +return x_35; +} +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_37); +lean_dec_ref(x_1); +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___redArg(x_36, x_37, x_38, x_3); +lean_dec_ref(x_37); +lean_dec_ref(x_36); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg(x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint64_t x_3; size_t x_4; lean_object* x_5; +x_3 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_2, x_3); +return x_4; +} +} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_object* x_10, lean_object* x_11) { _start: { @@ -21385,11 +21246,11 @@ lean_inc_ref(x_18); x_19 = lean_ctor_get(x_14, 16); lean_inc_ref(x_19); lean_dec_ref(x_14); -x_20 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_19, x_1); +x_20 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_19, x_1); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; -x_21 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_18, x_1); +x_21 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_18, x_1); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; @@ -21560,11 +21421,11 @@ lean_inc_ref(x_53); x_54 = lean_ctor_get(x_14, 16); lean_inc_ref(x_54); lean_dec_ref(x_14); -x_55 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_54, x_1); +x_55 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_54, x_1); if (lean_obj_tag(x_55) == 0) { lean_object* x_56; -x_56 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_53, x_1); +x_56 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_53, x_1); if (lean_obj_tag(x_56) == 0) { lean_object* x_57; @@ -21749,7 +21610,396 @@ return x_88; } } } -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +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_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_12, 1); +x_17 = lean_ctor_get(x_12, 0); +lean_dec(x_17); +x_18 = lean_ctor_get(x_14, 8); +lean_inc_ref(x_18); +x_19 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_19); +lean_dec_ref(x_14); +x_20 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_18, x_1); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; +x_21 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_19, x_1); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +lean_free_object(x_12); +x_22 = l_Lean_Meta_Grind_getConfig___redArg(x_5, x_16); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_23, sizeof(void*)*8 + 11); +lean_dec(x_23); +if (x_24 == 0) +{ +uint8_t x_25; +lean_dec_ref(x_1); +x_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_22, 0); +lean_dec(x_26); +lean_ctor_set(x_22, 0, x_20); +return x_22; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_dec(x_22); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +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_22, 1); +lean_inc(x_29); +lean_dec_ref(x_22); +x_30 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1; +x_31 = l_Lean_indentExpr(x_1); +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_Meta_Grind_reportIssue(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_29); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +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(x_33, 0, x_20); +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(0, 2, 0); +lean_ctor_set(x_37, 0, x_20); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +} +else +{ +uint8_t x_42; +lean_dec_ref(x_1); +x_42 = !lean_is_exclusive(x_22); +if (x_42 == 0) +{ +return x_22; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_22, 0); +x_44 = lean_ctor_get(x_22, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_22); +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_ref(x_1); +x_46 = !lean_is_exclusive(x_21); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_21, 0); +x_48 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_21, 0, x_48); +lean_ctor_set(x_12, 0, x_21); +return x_12; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_21, 0); +lean_inc(x_49); +lean_dec(x_21); +x_50 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_12, 0, x_51); +return x_12; +} +} +} +else +{ +lean_dec_ref(x_19); +lean_dec_ref(x_1); +lean_ctor_set(x_12, 0, x_20); +return x_12; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_12, 1); +lean_inc(x_52); +lean_dec(x_12); +x_53 = lean_ctor_get(x_14, 8); +lean_inc_ref(x_53); +x_54 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_54); +lean_dec_ref(x_14); +x_55 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_53, x_1); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; +x_56 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_54, x_1); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; +x_57 = l_Lean_Meta_Grind_getConfig___redArg(x_5, x_52); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get_uint8(x_58, sizeof(void*)*8 + 11); +lean_dec(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec_ref(x_1); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_61 = x_57; +} else { + lean_dec_ref(x_57); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_55); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_63 = lean_ctor_get(x_57, 1); +lean_inc(x_63); +lean_dec_ref(x_57); +x_64 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1; +x_65 = l_Lean_indentExpr(x_1); +x_66 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_67 = l_Lean_Meta_Grind_reportIssue(x_66, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_63); +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, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_69 = x_67; +} else { + lean_dec_ref(x_67); + x_69 = lean_box(0); +} +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_55); +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; +x_71 = lean_ctor_get(x_67, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_73 = x_67; +} else { + lean_dec_ref(x_67); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_72); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec_ref(x_1); +x_75 = lean_ctor_get(x_57, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_57, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_77 = x_57; +} else { + lean_dec_ref(x_57); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_77; +} +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec_ref(x_1); +x_79 = lean_ctor_get(x_56, 0); +lean_inc(x_79); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + x_80 = x_56; +} else { + lean_dec_ref(x_56); + x_80 = lean_box(0); +} +x_81 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_81, 0, x_79); +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 1, 0); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_81); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_52); +return x_83; +} +} +else +{ +lean_object* x_84; +lean_dec_ref(x_54); +lean_dec_ref(x_1); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_55); +lean_ctor_set(x_84, 1, x_52); +return x_84; +} +} +} +else +{ +uint8_t x_85; +lean_dec_ref(x_1); +x_85 = !lean_is_exclusive(x_12); +if (x_85 == 0) +{ +return x_12; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_12, 0); +x_87 = lean_ctor_get(x_12, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_12); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; @@ -21763,15 +22013,15 @@ lean_ctor_set(x_8, 1, x_3); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg(x_1, x_9, x_11); +x_12 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg(x_1, x_9, x_11); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___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) { _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; uint8_t x_15; @@ -22096,11 +22346,11 @@ return x_103; } } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2___redArg(x_1, x_2, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___redArg(x_1, x_2, x_8, x_9, x_10, x_11, x_12); return x_13; } } @@ -22187,7 +22437,7 @@ x_202 = lean_ctor_get(x_194, 0); lean_inc(x_202); lean_dec_ref(x_194); x_203 = l_Lean_Meta_Grind_Arith_CommRing_processNewEq___closed__0; -x_204 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg(x_203, x_9, x_201); +x_204 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg(x_203, x_9, x_201); x_205 = lean_ctor_get(x_204, 0); lean_inc(x_205); x_206 = lean_unbox(x_205); @@ -22239,7 +22489,7 @@ x_213 = lean_ctor_get(x_211, 1); lean_inc(x_213); lean_dec_ref(x_211); x_214 = l_Lean_MessageData_ofExpr(x_212); -x_215 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2___redArg(x_203, x_214, x_7, x_8, x_9, x_10, x_213); +x_215 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___redArg(x_203, x_214, x_7, x_8, x_9, x_10, x_213); x_216 = lean_ctor_get(x_215, 1); lean_inc(x_216); lean_dec_ref(x_215); @@ -22807,7 +23057,7 @@ block_189: { lean_object* x_79; lean_inc_ref(x_1); -x_79 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(x_1, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_78); +x_79 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__4(x_1, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_78); if (lean_obj_tag(x_79) == 0) { lean_object* x_80; @@ -22860,7 +23110,7 @@ x_88 = lean_ctor_get(x_80, 0); lean_inc(x_88); lean_dec_ref(x_80); lean_inc_ref(x_2); -x_89 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(x_2, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_87); +x_89 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__4(x_2, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_87); if (lean_obj_tag(x_89) == 0) { lean_object* x_90; @@ -22923,7 +23173,7 @@ lean_inc(x_71); lean_inc(x_70); lean_inc(x_69); lean_inc(x_88); -x_99 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr(x_88, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_97); +x_99 = l_Lean_Grind_CommRing_Expr_denoteAsRingExpr(x_88, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_97); if (lean_obj_tag(x_99) == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; @@ -22942,7 +23192,7 @@ lean_inc(x_71); lean_inc(x_70); lean_inc(x_69); lean_inc(x_98); -x_102 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr(x_98, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_101); +x_102 = l_Lean_Grind_CommRing_Expr_denoteAsRingExpr(x_98, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_101); if (lean_obj_tag(x_102) == 0) { lean_object* x_103; lean_object* x_104; lean_object* x_105; @@ -22951,7 +23201,7 @@ lean_inc(x_103); x_104 = lean_ctor_get(x_102, 1); lean_inc(x_104); lean_dec_ref(x_102); -x_105 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_104); +x_105 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_104); lean_dec(x_69); if (lean_obj_tag(x_105) == 0) { @@ -23553,6 +23803,68 @@ return x_188; } } } +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec_ref(x_6); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; lean_object* x_5; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg(x_1, x_4, x_3); +lean_dec_ref(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; lean_object* x_6; +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0(x_1, x_2, x_5, x_4); +lean_dec_ref(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___boxed(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_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0(x_1, x_2, x_3); +lean_dec_ref(x_3); +return x_4; +} +} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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: { @@ -23570,20 +23882,11 @@ lean_dec_ref(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg(x_1, x_2, x_3); -lean_dec_ref(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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) { _start: { lean_object* x_12; -x_12 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__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 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -23596,11 +23899,37 @@ lean_dec(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2___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_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg(x_1, x_2, x_3); +lean_dec_ref(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___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: { lean_object* x_8; -x_8 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); @@ -23608,11 +23937,11 @@ lean_dec_ref(x_3); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_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) { +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec_ref(x_10); lean_dec(x_9); @@ -24317,7 +24646,7 @@ lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; lean_object* x_6 = lean_ctor_get(x_1, 0); x_7 = 5; x_8 = 1; -x_9 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__1; +x_9 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__1; x_10 = lean_usize_land(x_2, x_9); x_11 = lean_usize_to_nat(x_10); x_12 = lean_array_get_size(x_6); @@ -25578,7 +25907,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_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__5; x_2 = lean_unsigned_to_nat(42u); -x_3 = lean_unsigned_to_nat(371u); +x_3 = lean_unsigned_to_nat(378u); x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq___closed__3; x_5 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__3; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -25828,9 +26157,9 @@ lean_object* x_97; x_97 = lean_ctor_get(x_94, 1); lean_inc(x_97); lean_dec_ref(x_94); -x_13 = x_88; -x_14 = x_65; -x_15 = x_64; +x_13 = x_64; +x_14 = x_88; +x_15 = x_65; x_16 = x_3; x_17 = x_4; x_18 = x_5; @@ -25855,9 +26184,9 @@ x_100 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_sim x_101 = lean_ctor_get(x_100, 1); lean_inc(x_101); lean_dec_ref(x_100); -x_13 = x_88; -x_14 = x_65; -x_15 = x_64; +x_13 = x_64; +x_14 = x_88; +x_15 = x_65; x_16 = x_3; x_17 = x_4; x_18 = x_5; @@ -26280,20 +26609,20 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec_ref(x_29); -x_32 = lean_ctor_get(x_15, 1); +x_32 = lean_ctor_get(x_13, 1); lean_inc_ref(x_32); -x_33 = lean_ctor_get(x_15, 2); +x_33 = lean_ctor_get(x_13, 2); lean_inc(x_33); -lean_dec_ref(x_15); +lean_dec_ref(x_13); x_34 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq___closed__2; x_35 = lean_box(0); x_36 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_36, 0, x_33); lean_ctor_set(x_36, 1, x_35); x_37 = l_Lean_mkConst(x_34, x_36); -x_38 = l_Lean_mkApp5(x_37, x_32, x_14, x_1, x_2, x_30); +x_38 = l_Lean_mkApp5(x_37, x_32, x_15, x_1, x_2, x_30); x_39 = 0; -x_40 = l_Lean_Meta_Grind_pushEqCore(x_13, x_27, x_38, x_39, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_31); +x_40 = l_Lean_Meta_Grind_pushEqCore(x_14, x_27, x_38, x_39, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_31); lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); @@ -26520,7 +26849,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_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__5; x_2 = lean_unsigned_to_nat(42u); -x_3 = lean_unsigned_to_nat(384u); +x_3 = lean_unsigned_to_nat(391u); x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqZeroToEq___closed__0; x_5 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__3; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -27289,13 +27618,13 @@ block_34: { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_30, 0, x_17); +lean_ctor_set(x_30, 0, x_19); x_31 = lean_box(0); x_32 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_32, 0, x_1); lean_ctor_set(x_32, 1, x_2); lean_ctor_set(x_32, 2, x_18); -lean_ctor_set(x_32, 3, x_19); +lean_ctor_set(x_32, 3, x_17); lean_ctor_set(x_32, 4, x_30); lean_ctor_set(x_32, 5, x_31); x_33 = l_Lean_Meta_Grind_Arith_CommRing_addNewDiseq(x_32, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_27, x_28, x_29); @@ -27304,7 +27633,7 @@ return x_33; block_47: { lean_object* x_45; -x_45 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq(x_1, x_2, x_36, x_35, x_37, x_44, x_40, x_42, x_43, x_41, x_39, x_38); +x_45 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq(x_1, x_2, x_38, x_37, x_36, x_40, x_43, x_39, x_42, x_44, x_41, x_35); if (lean_obj_tag(x_45) == 0) { lean_object* x_46; @@ -27321,33 +27650,33 @@ return x_45; } block_64: { -if (lean_obj_tag(x_58) == 0) +if (lean_obj_tag(x_51) == 0) { lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_58, 0); +x_59 = lean_ctor_get(x_51, 0); lean_inc(x_59); -lean_dec_ref(x_58); +lean_dec_ref(x_51); x_60 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2___closed__5; x_61 = lean_int_dec_eq(x_59, x_60); lean_dec(x_59); if (x_61 == 0) { x_35 = x_48; -x_36 = x_49; -x_37 = x_50; -x_38 = x_51; -x_39 = x_52; -x_40 = x_53; +x_36 = x_50; +x_37 = x_49; +x_38 = x_52; +x_39 = x_53; +x_40 = x_54; x_41 = x_55; -x_42 = x_54; +x_42 = x_57; x_43 = x_56; -x_44 = x_57; +x_44 = x_58; goto block_47; } else { lean_object* x_62; -x_62 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqZeroToEq(x_1, x_2, x_49, x_48, x_50, x_57, x_53, x_54, x_56, x_55, x_52, x_51); +x_62 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqZeroToEq(x_1, x_2, x_52, x_49, x_50, x_54, x_56, x_53, x_57, x_58, x_55, x_48); if (lean_obj_tag(x_62) == 0) { lean_object* x_63; @@ -27365,17 +27694,17 @@ return x_62; } else { -lean_dec_ref(x_58); +lean_dec_ref(x_51); x_35 = x_48; -x_36 = x_49; -x_37 = x_50; -x_38 = x_51; -x_39 = x_52; -x_40 = x_53; +x_36 = x_50; +x_37 = x_49; +x_38 = x_52; +x_39 = x_53; +x_40 = x_54; x_41 = x_55; -x_42 = x_54; +x_42 = x_57; x_43 = x_56; -x_44 = x_57; +x_44 = x_58; goto block_47; } } @@ -27518,9 +27847,9 @@ lean_object* x_102; x_102 = lean_ctor_get(x_99, 1); lean_inc(x_102); lean_dec_ref(x_99); -x_17 = x_97; +x_17 = x_94; x_18 = x_84; -x_19 = x_94; +x_19 = x_97; x_20 = x_65; x_21 = x_66; x_22 = x_67; @@ -27557,17 +27886,17 @@ lean_dec(x_84); x_107 = lean_ctor_get(x_104, 1); lean_inc(x_107); lean_dec_ref(x_104); -x_48 = x_66; -x_49 = x_65; +x_48 = x_107; +x_49 = x_66; x_50 = x_67; -x_51 = x_107; -x_52 = x_73; -x_53 = x_69; -x_54 = x_70; -x_55 = x_72; -x_56 = x_71; -x_57 = x_68; -x_58 = x_94; +x_51 = x_94; +x_52 = x_65; +x_53 = x_70; +x_54 = x_68; +x_55 = x_73; +x_56 = x_69; +x_57 = x_71; +x_58 = x_72; goto block_64; } else @@ -27576,9 +27905,9 @@ lean_object* x_108; x_108 = lean_ctor_get(x_104, 1); lean_inc(x_108); lean_dec_ref(x_104); -x_17 = x_97; +x_17 = x_94; x_18 = x_84; -x_19 = x_94; +x_19 = x_97; x_20 = x_65; x_21 = x_66; x_22 = x_67; @@ -27600,17 +27929,17 @@ lean_dec(x_84); x_109 = lean_ctor_get(x_104, 1); lean_inc(x_109); lean_dec_ref(x_104); -x_48 = x_66; -x_49 = x_65; +x_48 = x_109; +x_49 = x_66; x_50 = x_67; -x_51 = x_109; -x_52 = x_73; -x_53 = x_69; -x_54 = x_70; -x_55 = x_72; -x_56 = x_71; -x_57 = x_68; -x_58 = x_94; +x_51 = x_94; +x_52 = x_65; +x_53 = x_70; +x_54 = x_68; +x_55 = x_73; +x_56 = x_69; +x_57 = x_71; +x_58 = x_72; goto block_64; } } @@ -27820,7 +28149,7 @@ x_180 = lean_ctor_get(x_178, 1); lean_inc(x_180); lean_dec_ref(x_178); lean_inc_ref(x_1); -x_181 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_180); +x_181 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__4(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_180); if (lean_obj_tag(x_181) == 0) { lean_object* x_182; @@ -27873,7 +28202,7 @@ x_190 = lean_ctor_get(x_182, 0); lean_inc(x_190); lean_dec_ref(x_182); lean_inc_ref(x_2); -x_191 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_189); +x_191 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_189); if (lean_obj_tag(x_191) == 0) { lean_object* x_192; @@ -27931,9 +28260,9 @@ x_202 = lean_ctor_get(x_192, 0); lean_inc(x_202); lean_dec_ref(x_192); lean_inc(x_190); -x_203 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_190); +x_203 = l_Lean_Grind_CommRing_Expr_toPoly(x_190); lean_inc(x_202); -x_204 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_202); +x_204 = l_Lean_Grind_CommRing_Expr_toPoly(x_202); x_205 = l_Lean_Grind_CommRing_instBEqPoly_beq(x_203, x_204); lean_dec_ref(x_204); lean_dec_ref(x_203); @@ -27975,9 +28304,9 @@ x_209 = lean_ctor_get(x_192, 0); lean_inc(x_209); lean_dec_ref(x_192); lean_inc(x_190); -x_210 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_190); +x_210 = l_Lean_Grind_CommRing_Expr_toPoly(x_190); lean_inc(x_209); -x_211 = l_Lean_Grind_Ring_OfSemiring_Expr_toPoly(x_209); +x_211 = l_Lean_Grind_CommRing_Expr_toPoly(x_209); x_212 = l_Lean_Grind_CommRing_instBEqPoly_beq(x_210, x_211); lean_dec_ref(x_211); lean_dec_ref(x_210); @@ -28090,7 +28419,7 @@ x_224 = lean_ctor_get(x_178, 1); lean_inc(x_224); lean_dec_ref(x_178); x_225 = l_Lean_Meta_Grind_Arith_CommRing_processNewEq___closed__0; -x_226 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__1___redArg(x_225, x_10, x_224); +x_226 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__5___redArg(x_225, x_10, x_224); x_227 = lean_ctor_get(x_226, 0); lean_inc(x_227); x_228 = lean_unbox(x_227); @@ -28143,7 +28472,7 @@ lean_inc(x_235); lean_dec_ref(x_233); x_236 = l_Lean_mkNot(x_234); x_237 = l_Lean_MessageData_ofExpr(x_236); -x_238 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__2___redArg(x_225, x_237, x_8, x_9, x_10, x_11, x_235); +x_238 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__6___redArg(x_225, x_237, x_8, x_9, x_10, x_11, x_235); x_239 = lean_ctor_get(x_238, 1); lean_inc(x_239); lean_dec_ref(x_238); @@ -28248,7 +28577,7 @@ block_177: { lean_object* x_23; lean_inc_ref(x_1); -x_23 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(x_1, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); +x_23 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__4(x_1, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; @@ -28301,7 +28630,7 @@ x_32 = lean_ctor_get(x_24, 0); lean_inc(x_32); lean_dec_ref(x_24); lean_inc_ref(x_2); -x_33 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f(x_2, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_31); +x_33 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__4(x_2, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_31); if (lean_obj_tag(x_33) == 0) { lean_object* x_34; @@ -28364,7 +28693,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_32); -x_43 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr(x_32, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_41); +x_43 = l_Lean_Grind_CommRing_Expr_denoteAsRingExpr(x_32, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_41); if (lean_obj_tag(x_43) == 0) { lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -28383,7 +28712,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_42); -x_46 = l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr(x_42, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_45); +x_46 = l_Lean_Grind_CommRing_Expr_denoteAsRingExpr(x_42, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_45); if (lean_obj_tag(x_46) == 0) { lean_object* x_47; lean_object* x_48; lean_object* x_49; @@ -28392,7 +28721,7 @@ lean_inc(x_47); x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); lean_dec_ref(x_46); -x_49 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_48); +x_49 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_48); lean_dec(x_13); if (lean_obj_tag(x_49) == 0) { @@ -29307,11 +29636,11 @@ lean_inc_ref(x_16); x_17 = lean_ctor_get(x_14, 16); lean_inc_ref(x_17); lean_dec(x_14); -x_18 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_17, x_1); +x_18 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_17, x_1); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; -x_19 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_16, x_1); +x_19 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_16, x_1); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; @@ -29484,11 +29813,11 @@ lean_inc_ref(x_52); x_53 = lean_ctor_get(x_50, 16); lean_inc_ref(x_53); lean_dec(x_50); -x_54 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_53, x_1); +x_54 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_53, x_1); if (lean_obj_tag(x_54) == 0) { lean_object* x_55; -x_55 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0___redArg(x_52, x_1); +x_55 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_52, x_1); if (lean_obj_tag(x_55) == 0) { lean_object* x_56; @@ -30106,6 +30435,676 @@ lean_dec(x_2); return x_12; } } +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring_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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = lean_ctor_get(x_14, 8); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_17); +lean_dec(x_14); +x_18 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_16, x_1); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_17, x_1); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +lean_free_object(x_12); +x_20 = l_Lean_Meta_Grind_getConfig___redArg(x_5, x_15); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*8 + 11); +lean_dec(x_21); +if (x_22 == 0) +{ +uint8_t x_23; +lean_dec_ref(x_1); +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_20, 0); +lean_dec(x_24); +lean_ctor_set(x_20, 0, x_18); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +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_20, 1); +lean_inc(x_27); +lean_dec_ref(x_20); +x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1; +x_29 = l_Lean_indentExpr(x_1); +x_30 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_Meta_Grind_reportIssue(x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set(x_31, 0, x_18); +return x_31; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_18); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +else +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_31); +if (x_36 == 0) +{ +return x_31; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_31, 0); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_31); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} +else +{ +uint8_t x_40; +lean_dec_ref(x_1); +x_40 = !lean_is_exclusive(x_20); +if (x_40 == 0) +{ +return x_20; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_20, 0); +x_42 = lean_ctor_get(x_20, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_20); +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_ref(x_1); +x_44 = !lean_is_exclusive(x_19); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_19, 0); +x_46 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_19, 0, x_46); +lean_ctor_set(x_12, 0, x_19); +return x_12; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_19, 0); +lean_inc(x_47); +lean_dec(x_19); +x_48 = lean_alloc_ctor(3, 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_12, 0, x_49); +return x_12; +} +} +} +else +{ +lean_dec_ref(x_17); +lean_dec_ref(x_1); +lean_ctor_set(x_12, 0, x_18); +return x_12; +} +} +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_12, 0); +x_51 = lean_ctor_get(x_12, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_12); +x_52 = lean_ctor_get(x_50, 8); +lean_inc_ref(x_52); +x_53 = lean_ctor_get(x_50, 10); +lean_inc_ref(x_53); +lean_dec(x_50); +x_54 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_52, x_1); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; +x_55 = l_Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0___redArg(x_53, x_1); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; +x_56 = l_Lean_Meta_Grind_getConfig___redArg(x_5, x_51); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get_uint8(x_57, sizeof(void*)*8 + 11); +lean_dec(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec_ref(x_1); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_60 = x_56; +} else { + lean_dec_ref(x_56); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_60; +} +lean_ctor_set(x_61, 0, x_54); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +lean_dec_ref(x_56); +x_63 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1; +x_64 = l_Lean_indentExpr(x_1); +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +x_66 = l_Lean_Meta_Grind_reportIssue(x_65, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_62); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_68 = x_66; +} else { + lean_dec_ref(x_66); + x_68 = lean_box(0); +} +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_68; +} +lean_ctor_set(x_69, 0, x_54); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_66, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_66, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_72 = x_66; +} else { + lean_dec_ref(x_66); + x_72 = lean_box(0); +} +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 2, 0); +} else { + x_73 = x_72; +} +lean_ctor_set(x_73, 0, x_70); +lean_ctor_set(x_73, 1, x_71); +return x_73; +} +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec_ref(x_1); +x_74 = lean_ctor_get(x_56, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_56, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_76 = x_56; +} else { + lean_dec_ref(x_56); + 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; lean_object* x_82; +lean_dec_ref(x_1); +x_78 = lean_ctor_get(x_55, 0); +lean_inc(x_78); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + x_79 = x_55; +} else { + lean_dec_ref(x_55); + x_79 = lean_box(0); +} +x_80 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_80, 0, x_78); +if (lean_is_scalar(x_79)) { + x_81 = lean_alloc_ctor(1, 1, 0); +} else { + x_81 = x_79; +} +lean_ctor_set(x_81, 0, x_80); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_51); +return x_82; +} +} +else +{ +lean_object* x_83; +lean_dec_ref(x_53); +lean_dec_ref(x_1); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_54); +lean_ctor_set(x_83, 1, x_51); +return x_83; +} +} +} +else +{ +uint8_t x_84; +lean_dec_ref(x_1); +x_84 = !lean_is_exclusive(x_12); +if (x_84 == 0) +{ +return x_12; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_12, 0); +x_86 = lean_ctor_get(x_12, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_12); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring(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_inc_ref(x_1); +x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring_spec__0(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +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(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_13, 0, x_17); +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_dec(x_13); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_dec_ref(x_13); +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec_ref(x_14); +lean_inc_ref(x_2); +x_23 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring_spec__0(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set(x_23, 0, x_27); +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_23); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_32 = lean_ctor_get(x_23, 1); +x_33 = lean_ctor_get(x_23, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_24, 0); +lean_inc(x_34); +lean_dec_ref(x_24); +lean_inc(x_22); +x_35 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_22); +lean_inc(x_34); +x_36 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_34); +x_37 = l_Lean_Grind_CommRing_instBEqPoly_beq(x_35, x_36); +lean_dec_ref(x_36); +lean_dec_ref(x_35); +if (x_37 == 0) +{ +lean_object* x_38; +lean_dec(x_34); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_38 = lean_box(0); +lean_ctor_set(x_23, 0, x_38); +return x_23; +} +else +{ +lean_object* x_39; +lean_free_object(x_23); +x_39 = l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat(x_1, x_2, x_22, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +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_23, 1); +lean_inc(x_40); +lean_dec(x_23); +x_41 = lean_ctor_get(x_24, 0); +lean_inc(x_41); +lean_dec_ref(x_24); +lean_inc(x_22); +x_42 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_22); +lean_inc(x_41); +x_43 = l_Lean_Grind_CommRing_Expr_toPolyS__nc(x_41); +x_44 = l_Lean_Grind_CommRing_instBEqPoly_beq(x_42, x_43); +lean_dec_ref(x_43); +lean_dec_ref(x_42); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_41); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_40); +return x_46; +} +else +{ +lean_object* x_47; +x_47 = l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat(x_1, x_2, x_22, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_40); +return x_47; +} +} +} +} +else +{ +uint8_t x_48; +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_48 = !lean_is_exclusive(x_23); +if (x_48 == 0) +{ +return x_23; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_23, 0); +x_50 = lean_ctor_get(x_23, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_23); +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_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(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_52 = !lean_is_exclusive(x_13); +if (x_52 == 0) +{ +return x_13; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_13, 0); +x_54 = lean_ctor_get(x_13, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_13); +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; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring_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_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_processNewDiseq(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: { @@ -30142,7 +31141,19 @@ x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); if (lean_obj_tag(x_19) == 0) { -uint8_t x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec_ref(x_18); +x_21 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_inSameNonCommSemiring_x3f___redArg(x_1, x_2, x_3, x_9, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -30153,45 +31164,45 @@ lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 0); -lean_dec(x_21); -x_22 = lean_box(0); -lean_ctor_set(x_18, 0, x_22); -return x_18; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_dec(x_18); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -return x_25; -} +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 0); +lean_dec(x_24); +x_25 = lean_box(0); +lean_ctor_set(x_21, 0, x_25); +return x_21; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_18, 1); +x_26 = lean_ctor_get(x_21, 1); lean_inc(x_26); -lean_dec_ref(x_18); -x_27 = lean_ctor_get(x_19, 0); -lean_inc(x_27); -lean_dec_ref(x_19); -x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommRing(x_1, x_2, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); +lean_dec(x_21); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); return x_28; } } else { -uint8_t x_29; +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_dec_ref(x_21); +x_30 = lean_ctor_get(x_22, 0); +lean_inc(x_30); +lean_dec_ref(x_22); +x_31 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommSemiring(x_1, x_2, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_29); +return x_31; +} +} +else +{ +uint8_t x_32; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -30202,42 +31213,88 @@ lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_29 = !lean_is_exclusive(x_18); -if (x_29 == 0) +x_32 = !lean_is_exclusive(x_21); +if (x_32 == 0) +{ +return x_21; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_21, 0); +x_34 = lean_ctor_get(x_21, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_21); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_18, 1); +lean_inc(x_36); +lean_dec_ref(x_18); +x_37 = lean_ctor_get(x_19, 0); +lean_inc(x_37); +lean_dec_ref(x_19); +x_38 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqNonCommRing(x_1, x_2, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_39 = !lean_is_exclusive(x_18); +if (x_39 == 0) { return x_18; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_18, 0); -x_31 = lean_ctor_get(x_18, 1); -lean_inc(x_31); -lean_inc(x_30); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_18, 0); +x_41 = lean_ctor_get(x_18, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_18); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_15, 1); -lean_inc(x_33); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_15, 1); +lean_inc(x_43); lean_dec_ref(x_15); -x_34 = lean_ctor_get(x_16, 0); -lean_inc(x_34); +x_44 = lean_ctor_get(x_16, 0); +lean_inc(x_44); lean_dec_ref(x_16); -x_35 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqCommSemiring(x_1, x_2, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_33); -return x_35; +x_45 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqCommSemiring(x_1, x_2, x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +return x_45; } } else { -uint8_t x_36; +uint8_t x_46; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -30248,46 +31305,46 @@ lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_36 = !lean_is_exclusive(x_15); -if (x_36 == 0) +x_46 = !lean_is_exclusive(x_15); +if (x_46 == 0) { return x_15; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_15, 0); -x_38 = lean_ctor_get(x_15, 1); -lean_inc(x_38); -lean_inc(x_37); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_15, 0); +x_48 = lean_ctor_get(x_15, 1); +lean_inc(x_48); +lean_inc(x_47); lean_dec(x_15); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; +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_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_12, 1); -lean_inc(x_40); +lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_12, 1); +lean_inc(x_50); lean_dec_ref(x_12); -x_41 = lean_ctor_get(x_13, 0); -lean_inc(x_41); +x_51 = lean_ctor_get(x_13, 0); +lean_inc(x_51); lean_dec_ref(x_13); -x_42 = 0; -x_43 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42); -x_44 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqCommRing(x_1, x_2, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); -return x_44; +x_52 = 0; +x_53 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_52); +x_54 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_processNewDiseqCommRing(x_1, x_2, x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_50); +return x_54; } } else { -uint8_t x_45; +uint8_t x_55; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -30298,23 +31355,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_45 = !lean_is_exclusive(x_12); -if (x_45 == 0) +x_55 = !lean_is_exclusive(x_12); +if (x_55 == 0) { return x_12; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_12, 0); -x_47 = lean_ctor_get(x_12, 1); -lean_inc(x_47); -lean_inc(x_46); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_12, 0); +x_57 = lean_ctor_get(x_12, 1); +lean_inc(x_57); +lean_inc(x_56); lean_dec(x_12); -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_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; } } } @@ -34242,14 +35299,14 @@ lean_dec(x_94); if (x_95 == 0) { lean_object* x_96; -lean_dec_ref(x_81); +lean_dec_ref(x_79); lean_dec(x_77); x_96 = lean_ctor_get(x_93, 1); lean_inc(x_96); lean_dec_ref(x_93); x_14 = x_78; -x_15 = x_79; -x_16 = x_80; +x_15 = x_80; +x_16 = x_81; x_17 = x_82; x_18 = x_83; x_19 = x_84; @@ -34283,9 +35340,9 @@ lean_inc(x_90); lean_inc_ref(x_89); lean_inc(x_88); lean_inc_ref(x_87); -lean_inc_ref(x_78); +lean_inc_ref(x_81); lean_inc_ref(x_2); -x_102 = l_Lean_Meta_mkEq(x_2, x_78, x_87, x_88, x_89, x_90, x_101); +x_102 = l_Lean_Meta_mkEq(x_2, x_81, x_87, x_88, x_89, x_90, x_101); if (lean_obj_tag(x_102) == 0) { lean_object* x_103; lean_object* x_104; lean_object* x_105; @@ -34303,7 +35360,7 @@ lean_inc_ref(x_85); lean_inc(x_84); lean_inc(x_83); lean_inc_ref(x_82); -x_105 = l_Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2(x_81, x_82, x_83, x_84, x_85, x_86, x_87, x_88, x_89, x_90, x_104); +x_105 = l_Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2(x_79, x_82, x_83, x_84, x_85, x_86, x_87, x_88, x_89, x_90, x_104); 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; uint8_t x_111; @@ -34325,23 +35382,23 @@ lean_object* x_112; lean_object* x_113; x_112 = lean_nat_abs(x_77); lean_dec(x_77); x_113 = l_Nat_reprFast(x_112); -x_37 = x_78; -x_38 = x_86; -x_39 = x_79; +x_37 = x_85; +x_38 = x_78; +x_39 = x_92; x_40 = x_83; -x_41 = x_93; -x_42 = x_89; -x_43 = x_87; -x_44 = x_92; -x_45 = x_107; -x_46 = x_84; -x_47 = x_109; -x_48 = x_85; -x_49 = x_80; -x_50 = x_106; -x_51 = x_82; -x_52 = x_88; -x_53 = x_90; +x_41 = x_84; +x_42 = x_81; +x_43 = x_82; +x_44 = x_109; +x_45 = x_87; +x_46 = x_88; +x_47 = x_89; +x_48 = x_90; +x_49 = x_106; +x_50 = x_80; +x_51 = x_86; +x_52 = x_93; +x_53 = x_107; x_54 = x_113; goto block_63; } @@ -34359,23 +35416,23 @@ lean_dec(x_116); x_119 = l_Nat_reprFast(x_118); x_120 = lean_string_append(x_117, x_119); lean_dec_ref(x_119); -x_37 = x_78; -x_38 = x_86; -x_39 = x_79; +x_37 = x_85; +x_38 = x_78; +x_39 = x_92; x_40 = x_83; -x_41 = x_93; -x_42 = x_89; -x_43 = x_87; -x_44 = x_92; -x_45 = x_107; -x_46 = x_84; -x_47 = x_109; -x_48 = x_85; -x_49 = x_80; -x_50 = x_106; -x_51 = x_82; -x_52 = x_88; -x_53 = x_90; +x_41 = x_84; +x_42 = x_81; +x_43 = x_82; +x_44 = x_109; +x_45 = x_87; +x_46 = x_88; +x_47 = x_89; +x_48 = x_90; +x_49 = x_106; +x_50 = x_80; +x_51 = x_86; +x_52 = x_93; +x_53 = x_107; x_54 = x_120; goto block_63; } @@ -34394,8 +35451,8 @@ lean_dec_ref(x_85); lean_dec(x_84); lean_dec(x_83); lean_dec_ref(x_82); +lean_dec_ref(x_81); lean_dec_ref(x_80); -lean_dec_ref(x_79); lean_dec_ref(x_78); lean_dec(x_77); lean_dec_ref(x_3); @@ -34520,9 +35577,9 @@ lean_inc(x_90); lean_inc_ref(x_89); lean_inc(x_88); lean_inc_ref(x_87); -lean_inc_ref(x_78); +lean_inc_ref(x_81); lean_inc_ref(x_2); -x_136 = l_Lean_Meta_mkEq(x_2, x_78, x_87, x_88, x_89, x_90, x_135); +x_136 = l_Lean_Meta_mkEq(x_2, x_81, x_87, x_88, x_89, x_90, x_135); if (lean_obj_tag(x_136) == 0) { lean_object* x_137; lean_object* x_138; lean_object* x_139; @@ -34540,7 +35597,7 @@ lean_inc_ref(x_85); lean_inc(x_84); lean_inc(x_83); lean_inc_ref(x_82); -x_139 = l_Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2(x_81, x_82, x_83, x_84, x_85, x_86, x_87, x_88, x_89, x_90, x_138); +x_139 = l_Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2(x_79, x_82, x_83, x_84, x_85, x_86, x_87, x_88, x_89, x_90, x_138); if (lean_obj_tag(x_139) == 0) { lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; @@ -34562,23 +35619,23 @@ lean_object* x_147; lean_object* x_148; x_147 = lean_nat_abs(x_77); lean_dec(x_77); x_148 = l_Nat_reprFast(x_147); -x_37 = x_78; -x_38 = x_86; -x_39 = x_79; +x_37 = x_85; +x_38 = x_78; +x_39 = x_92; x_40 = x_83; -x_41 = x_144; -x_42 = x_89; -x_43 = x_87; -x_44 = x_92; -x_45 = x_141; -x_46 = x_84; -x_47 = x_143; -x_48 = x_85; -x_49 = x_80; -x_50 = x_140; -x_51 = x_82; -x_52 = x_88; -x_53 = x_90; +x_41 = x_84; +x_42 = x_81; +x_43 = x_82; +x_44 = x_143; +x_45 = x_87; +x_46 = x_88; +x_47 = x_89; +x_48 = x_90; +x_49 = x_140; +x_50 = x_80; +x_51 = x_86; +x_52 = x_144; +x_53 = x_141; x_54 = x_148; goto block_63; } @@ -34596,23 +35653,23 @@ lean_dec(x_151); x_154 = l_Nat_reprFast(x_153); x_155 = lean_string_append(x_152, x_154); lean_dec_ref(x_154); -x_37 = x_78; -x_38 = x_86; -x_39 = x_79; +x_37 = x_85; +x_38 = x_78; +x_39 = x_92; x_40 = x_83; -x_41 = x_144; -x_42 = x_89; -x_43 = x_87; -x_44 = x_92; -x_45 = x_141; -x_46 = x_84; -x_47 = x_143; -x_48 = x_85; -x_49 = x_80; -x_50 = x_140; -x_51 = x_82; -x_52 = x_88; -x_53 = x_90; +x_41 = x_84; +x_42 = x_81; +x_43 = x_82; +x_44 = x_143; +x_45 = x_87; +x_46 = x_88; +x_47 = x_89; +x_48 = x_90; +x_49 = x_140; +x_50 = x_80; +x_51 = x_86; +x_52 = x_144; +x_53 = x_141; x_54 = x_155; goto block_63; } @@ -34630,8 +35687,8 @@ lean_dec_ref(x_85); lean_dec(x_84); lean_dec(x_83); lean_dec_ref(x_82); +lean_dec_ref(x_81); lean_dec_ref(x_80); -lean_dec_ref(x_79); lean_dec_ref(x_78); lean_dec(x_77); lean_dec_ref(x_3); @@ -34773,21 +35830,21 @@ x_186 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_186, 0, x_185); x_187 = l_Lean_MessageData_ofFormat(x_186); x_188 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_188, 0, x_180); +lean_ctor_set(x_188, 0, x_179); lean_ctor_set(x_188, 1, x_187); x_189 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_process___closed__7; x_190 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_190, 0, x_188); lean_ctor_set(x_190, 1, x_189); -x_191 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__19___redArg(x_183, x_190, x_177, x_182, x_184, x_181, x_179); -lean_dec(x_181); -lean_dec_ref(x_184); +x_191 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__19___redArg(x_180, x_190, x_184, x_182, x_183, x_177, x_178); +lean_dec(x_177); +lean_dec_ref(x_183); lean_dec(x_182); -lean_dec_ref(x_177); +lean_dec_ref(x_184); x_192 = lean_ctor_get(x_191, 1); lean_inc(x_192); lean_dec_ref(x_191); -x_169 = x_178; +x_169 = x_181; x_170 = x_192; goto block_176; } @@ -34994,14 +36051,14 @@ if (x_251 == 0) lean_object* x_252; lean_object* x_253; x_252 = lean_nat_abs(x_77); x_253 = l_Nat_reprFast(x_252); -x_177 = x_199; -x_178 = x_223; -x_179 = x_245; -x_180 = x_249; -x_181 = x_202; +x_177 = x_202; +x_178 = x_245; +x_179 = x_249; +x_180 = x_233; +x_181 = x_223; x_182 = x_200; -x_183 = x_233; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_253; goto block_193; } @@ -35017,14 +36074,14 @@ lean_dec(x_255); x_258 = l_Nat_reprFast(x_257); x_259 = lean_string_append(x_256, x_258); lean_dec_ref(x_258); -x_177 = x_199; -x_178 = x_223; -x_179 = x_245; -x_180 = x_249; -x_181 = x_202; +x_177 = x_202; +x_178 = x_245; +x_179 = x_249; +x_180 = x_233; +x_181 = x_223; x_182 = x_200; -x_183 = x_233; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_259; goto block_193; } @@ -35145,14 +36202,14 @@ if (x_280 == 0) lean_object* x_281; lean_object* x_282; x_281 = lean_nat_abs(x_77); x_282 = l_Nat_reprFast(x_281); -x_177 = x_199; -x_178 = x_223; -x_179 = x_273; -x_180 = x_278; -x_181 = x_202; +x_177 = x_202; +x_178 = x_273; +x_179 = x_278; +x_180 = x_233; +x_181 = x_223; x_182 = x_200; -x_183 = x_233; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_282; goto block_193; } @@ -35168,14 +36225,14 @@ lean_dec(x_284); x_287 = l_Nat_reprFast(x_286); x_288 = lean_string_append(x_285, x_287); lean_dec_ref(x_287); -x_177 = x_199; -x_178 = x_223; -x_179 = x_273; -x_180 = x_278; -x_181 = x_202; +x_177 = x_202; +x_178 = x_273; +x_179 = x_278; +x_180 = x_233; +x_181 = x_223; x_182 = x_200; -x_183 = x_233; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_288; goto block_193; } @@ -35260,10 +36317,10 @@ lean_dec(x_76); x_297 = lean_ctor_get(x_229, 1); lean_inc(x_297); lean_dec_ref(x_229); -x_78 = x_213; -x_79 = x_223; -x_80 = x_214; -x_81 = x_220; +x_78 = x_214; +x_79 = x_220; +x_80 = x_223; +x_81 = x_213; x_82 = x_194; x_83 = x_195; x_84 = x_196; @@ -35321,10 +36378,10 @@ return x_301; else { lean_dec(x_76); -x_78 = x_213; -x_79 = x_223; -x_80 = x_214; -x_81 = x_220; +x_78 = x_214; +x_79 = x_220; +x_80 = x_223; +x_81 = x_213; x_82 = x_194; x_83 = x_195; x_84 = x_196; @@ -35668,14 +36725,14 @@ if (x_357 == 0) lean_object* x_358; lean_object* x_359; x_358 = lean_nat_abs(x_77); x_359 = l_Nat_reprFast(x_358); -x_177 = x_199; -x_178 = x_329; -x_179 = x_350; -x_180 = x_355; -x_181 = x_202; +x_177 = x_202; +x_178 = x_350; +x_179 = x_355; +x_180 = x_339; +x_181 = x_329; x_182 = x_200; -x_183 = x_339; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_359; goto block_193; } @@ -35691,14 +36748,14 @@ lean_dec(x_361); x_364 = l_Nat_reprFast(x_363); x_365 = lean_string_append(x_362, x_364); lean_dec_ref(x_364); -x_177 = x_199; -x_178 = x_329; -x_179 = x_350; -x_180 = x_355; -x_181 = x_202; +x_177 = x_202; +x_178 = x_350; +x_179 = x_355; +x_180 = x_339; +x_181 = x_329; x_182 = x_200; -x_183 = x_339; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_365; goto block_193; } @@ -35784,10 +36841,10 @@ lean_dec(x_76); x_374 = lean_ctor_get(x_335, 1); lean_inc(x_374); lean_dec_ref(x_335); -x_78 = x_318; -x_79 = x_329; -x_80 = x_319; -x_81 = x_326; +x_78 = x_319; +x_79 = x_326; +x_80 = x_329; +x_81 = x_318; x_82 = x_194; x_83 = x_195; x_84 = x_196; @@ -35847,10 +36904,10 @@ return x_378; else { lean_dec(x_76); -x_78 = x_318; -x_79 = x_329; -x_80 = x_319; -x_81 = x_326; +x_78 = x_319; +x_79 = x_326; +x_80 = x_329; +x_81 = x_318; x_82 = x_194; x_83 = x_195; x_84 = x_196; @@ -36212,14 +37269,14 @@ if (x_436 == 0) lean_object* x_437; lean_object* x_438; x_437 = lean_nat_abs(x_77); x_438 = l_Nat_reprFast(x_437); -x_177 = x_199; -x_178 = x_408; -x_179 = x_429; -x_180 = x_434; -x_181 = x_202; +x_177 = x_202; +x_178 = x_429; +x_179 = x_434; +x_180 = x_418; +x_181 = x_408; x_182 = x_200; -x_183 = x_418; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_438; goto block_193; } @@ -36235,14 +37292,14 @@ lean_dec(x_440); x_443 = l_Nat_reprFast(x_442); x_444 = lean_string_append(x_441, x_443); lean_dec_ref(x_443); -x_177 = x_199; -x_178 = x_408; -x_179 = x_429; -x_180 = x_434; -x_181 = x_202; +x_177 = x_202; +x_178 = x_429; +x_179 = x_434; +x_180 = x_418; +x_181 = x_408; x_182 = x_200; -x_183 = x_418; -x_184 = x_201; +x_183 = x_201; +x_184 = x_199; x_185 = x_444; goto block_193; } @@ -36328,10 +37385,10 @@ lean_dec(x_76); x_453 = lean_ctor_get(x_414, 1); lean_inc(x_453); lean_dec_ref(x_414); -x_78 = x_395; -x_79 = x_408; -x_80 = x_396; -x_81 = x_404; +x_78 = x_396; +x_79 = x_404; +x_80 = x_408; +x_81 = x_395; x_82 = x_194; x_83 = x_195; x_84 = x_196; @@ -36391,10 +37448,10 @@ return x_457; else { lean_dec(x_76); -x_78 = x_395; -x_79 = x_408; -x_80 = x_396; -x_81 = x_404; +x_78 = x_396; +x_79 = x_404; +x_80 = x_408; +x_81 = x_395; x_82 = x_194; x_83 = x_195; x_84 = x_196; @@ -36647,7 +37704,7 @@ return x_520; block_36: { lean_object* x_27; -x_27 = l_Lean_Meta_Grind_Arith_CommRing_propagateEq(x_2, x_14, x_3, x_16, x_15, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); +x_27 = l_Lean_Meta_Grind_Arith_CommRing_propagateEq(x_2, x_16, x_3, x_14, x_15, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); if (lean_obj_tag(x_27) == 0) { uint8_t x_28; @@ -36703,31 +37760,31 @@ x_55 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_55, 0, x_54); x_56 = l_Lean_MessageData_ofFormat(x_55); x_57 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_57, 0, x_41); +lean_ctor_set(x_57, 0, x_52); lean_ctor_set(x_57, 1, x_56); x_58 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_47); -x_59 = l_Lean_MessageData_ofExpr(x_50); +lean_ctor_set(x_58, 1, x_44); +x_59 = l_Lean_MessageData_ofExpr(x_49); x_60 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_60, 0, x_58); lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__19___redArg(x_44, x_60, x_43, x_52, x_42, x_53, x_45); +x_61 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__19___redArg(x_39, x_60, x_45, x_46, x_47, x_48, x_53); x_62 = lean_ctor_get(x_61, 1); lean_inc(x_62); lean_dec_ref(x_61); -x_14 = x_37; -x_15 = x_39; -x_16 = x_49; -x_17 = x_51; +x_14 = x_38; +x_15 = x_50; +x_16 = x_42; +x_17 = x_43; x_18 = x_40; -x_19 = x_46; -x_20 = x_48; -x_21 = x_38; -x_22 = x_43; -x_23 = x_52; -x_24 = x_42; -x_25 = x_53; +x_19 = x_41; +x_20 = x_37; +x_21 = x_51; +x_22 = x_45; +x_23 = x_46; +x_24 = x_47; +x_25 = x_48; x_26 = x_62; goto block_36; } @@ -37082,7 +38139,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_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__5; x_2 = lean_unsigned_to_nat(34u); -x_3 = lean_unsigned_to_nat(485u); +x_3 = lean_unsigned_to_nat(500u); x_4 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_PersistentArray_forInAux___at___Lean_PersistentArray_forIn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_propagateEqs_spec__0_spec__0_spec__1_spec__1___closed__0; x_5 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_checkConstant___closed__3; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -48387,12 +49444,10 @@ l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Ari lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___closed__0); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___redArg___closed__1); -l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__0(); -l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f_spec__0_spec__0___redArg___closed__1(); -l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__0(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__0); -l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___closed__1); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__0); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toSemiringExpr_x3f___redArg___lam__2___closed__1); l_Lean_Grind_CommRing_Mon_findSimp_x3f___closed__0 = _init_l_Lean_Grind_CommRing_Mon_findSimp_x3f___closed__0(); lean_mark_persistent(l_Lean_Grind_CommRing_Mon_findSimp_x3f___closed__0); l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2_spec__2_spec__2___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_PolyDerivation_simplifyWith_spec__2_spec__2_spec__2_spec__2_spec__2___closed__0(); @@ -48564,6 +49619,8 @@ l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyBasis___closed__1 = _init_l_Lea lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_simplifyBasis___closed__1); l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToBasisAfterSimp___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToBasisAfterSimp___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_addToBasisAfterSimp___closed__0); +l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__0(); +l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_toRingExpr_x3f___at___Lean_Meta_Grind_Arith_CommRing_processNewEq_spec__0_spec__0_spec__0___redArg___closed__1(); l_Lean_Meta_Grind_Arith_CommRing_processNewEq___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_processNewEq___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_processNewEq___closed__0); l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_EqCnstr_0__Lean_Meta_Grind_Arith_CommRing_diseqToEq_spec__0___closed__0(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Internalize.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Internalize.c index f17947348b..e992780d05 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Internalize.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Internalize.c @@ -34,13 +34,15 @@ size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNatValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_getCharInst(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_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__6_spec__6___closed__1; uint8_t lean_usize_dec_le(size_t, size_t); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__9___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isForbiddenParent___closed__0; +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___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 double l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__5_spec__5_spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__6_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -53,6 +55,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__2; size_t lean_usize_mul(size_t, size_t); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0___closed__2; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv___closed__9; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__8_spec__8_spec__8___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; @@ -91,7 +94,8 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_L LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__26; lean_object* l_Lean_Expr_appArg_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_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_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isInvInst_spec__0___closed__4; @@ -122,6 +126,7 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_L lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(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_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__8_spec__8___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__5_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__16; @@ -144,9 +149,11 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___L LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__9; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__9(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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv___closed__8; double lean_float_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_hasChar(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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__7; @@ -154,7 +161,7 @@ LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentH static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0_spec__0_spec__2___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__21; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv___closed__7; lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv___closed__3; @@ -177,10 +184,12 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__5; lean_object* l_Lean_PersistentArray_push___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isInvInst(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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__29; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11(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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isForbiddenParent___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_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_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__9_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__3(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__11___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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0___closed__1; @@ -202,6 +211,7 @@ uint8_t l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__0_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__11; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isInvInst___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_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__0_spec__0___redArg___closed__2; LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -239,6 +249,7 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv___closed__12; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +lean_object* l_Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f(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_indentExpr(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__28; lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); @@ -259,6 +270,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lea LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7(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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f(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_Lean_PersistentHashMap_contains___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv___closed__10; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getInvFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isInvInst_spec__0___closed__5; lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -290,7 +302,9 @@ lean_object* l_Lean_Name_mkStr1(lean_object*); lean_object* l_Lean_Meta_Grind_shareCommon___redArg(lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14; uint8_t lean_int_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(lean_object*, lean_object*, lean_object*); @@ -313,6 +327,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internaliz static lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__8(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_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_processInv_spec__9___closed__4; +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12(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_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f___closed__22; LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isForbiddenParent___closed__4; @@ -11890,6 +11905,361 @@ x_13 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__1 return x_13; } } +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_2, 2); +x_5 = lean_ctor_get(x_2, 13); +x_6 = l_Lean_checkTraceOption(x_5, x_4, x_1); +x_7 = lean_box(x_6); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(x_1, x_9, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_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) { +_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; uint8_t x_15; +x_8 = lean_ctor_get(x_5, 5); +x_9 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_toInt_x3f_spec__0_spec__0_spec__0_spec__0_spec__0_spec__0(x_2, x_3, x_4, x_5, x_6, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec_ref(x_9); +x_12 = lean_st_ref_take(x_6, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 4); +lean_inc_ref(x_14); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_12, 1); +x_17 = lean_ctor_get(x_12, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_13, 4); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_14); +if (x_20 == 0) +{ +lean_object* x_21; double 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; uint8_t x_30; +x_21 = lean_ctor_get(x_14, 0); +x_22 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__0; +x_23 = 0; +x_24 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__1; +x_25 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_25, 0, x_1); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set_float(x_25, sizeof(void*)*2, x_22); +lean_ctor_set_float(x_25, sizeof(void*)*2 + 8, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*2 + 16, x_23); +x_26 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__2; +x_27 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_10); +lean_ctor_set(x_27, 2, x_26); +lean_inc(x_8); +lean_ctor_set(x_12, 1, x_27); +lean_ctor_set(x_12, 0, x_8); +x_28 = l_Lean_PersistentArray_push___redArg(x_21, x_12); +lean_ctor_set(x_14, 0, x_28); +x_29 = lean_st_ref_set(x_6, x_13, x_16); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +x_32 = lean_box(0); +lean_ctor_set(x_29, 0, x_32); +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +else +{ +uint64_t x_36; lean_object* x_37; double x_38; uint8_t 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; +x_36 = lean_ctor_get_uint64(x_14, sizeof(void*)*1); +x_37 = lean_ctor_get(x_14, 0); +lean_inc(x_37); +lean_dec(x_14); +x_38 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__0; +x_39 = 0; +x_40 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__1; +x_41 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_41, 0, x_1); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set_float(x_41, sizeof(void*)*2, x_38); +lean_ctor_set_float(x_41, sizeof(void*)*2 + 8, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*2 + 16, x_39); +x_42 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__2; +x_43 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_10); +lean_ctor_set(x_43, 2, x_42); +lean_inc(x_8); +lean_ctor_set(x_12, 1, x_43); +lean_ctor_set(x_12, 0, x_8); +x_44 = l_Lean_PersistentArray_push___redArg(x_37, x_12); +x_45 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set_uint64(x_45, sizeof(void*)*1, x_36); +lean_ctor_set(x_13, 4, x_45); +x_46 = lean_st_ref_set(x_6, x_13, x_16); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +x_49 = lean_box(0); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +} +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; uint64_t x_59; lean_object* x_60; lean_object* x_61; double x_62; uint8_t 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; +x_51 = lean_ctor_get(x_13, 0); +x_52 = lean_ctor_get(x_13, 1); +x_53 = lean_ctor_get(x_13, 2); +x_54 = lean_ctor_get(x_13, 3); +x_55 = lean_ctor_get(x_13, 5); +x_56 = lean_ctor_get(x_13, 6); +x_57 = lean_ctor_get(x_13, 7); +x_58 = lean_ctor_get(x_13, 8); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_13); +x_59 = lean_ctor_get_uint64(x_14, sizeof(void*)*1); +x_60 = lean_ctor_get(x_14, 0); +lean_inc_ref(x_60); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + x_61 = x_14; +} else { + lean_dec_ref(x_14); + x_61 = lean_box(0); +} +x_62 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__0; +x_63 = 0; +x_64 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__1; +x_65 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_65, 0, x_1); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set_float(x_65, sizeof(void*)*2, x_62); +lean_ctor_set_float(x_65, sizeof(void*)*2 + 8, x_62); +lean_ctor_set_uint8(x_65, sizeof(void*)*2 + 16, x_63); +x_66 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__2; +x_67 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_10); +lean_ctor_set(x_67, 2, x_66); +lean_inc(x_8); +lean_ctor_set(x_12, 1, x_67); +lean_ctor_set(x_12, 0, x_8); +x_68 = l_Lean_PersistentArray_push___redArg(x_60, x_12); +if (lean_is_scalar(x_61)) { + x_69 = lean_alloc_ctor(0, 1, 8); +} else { + x_69 = x_61; +} +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set_uint64(x_69, sizeof(void*)*1, x_59); +x_70 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_70, 0, x_51); +lean_ctor_set(x_70, 1, x_52); +lean_ctor_set(x_70, 2, x_53); +lean_ctor_set(x_70, 3, x_54); +lean_ctor_set(x_70, 4, x_69); +lean_ctor_set(x_70, 5, x_55); +lean_ctor_set(x_70, 6, x_56); +lean_ctor_set(x_70, 7, x_57); +lean_ctor_set(x_70, 8, x_58); +x_71 = lean_st_ref_set(x_6, x_70, x_16); +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_71); + x_73 = lean_box(0); +} +x_74 = lean_box(0); +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_73; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; +} +} +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; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint64_t x_86; lean_object* x_87; lean_object* x_88; double x_89; uint8_t 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; +x_76 = lean_ctor_get(x_12, 1); +lean_inc(x_76); +lean_dec(x_12); +x_77 = lean_ctor_get(x_13, 0); +lean_inc_ref(x_77); +x_78 = lean_ctor_get(x_13, 1); +lean_inc(x_78); +x_79 = lean_ctor_get(x_13, 2); +lean_inc_ref(x_79); +x_80 = lean_ctor_get(x_13, 3); +lean_inc_ref(x_80); +x_81 = lean_ctor_get(x_13, 5); +lean_inc_ref(x_81); +x_82 = lean_ctor_get(x_13, 6); +lean_inc_ref(x_82); +x_83 = lean_ctor_get(x_13, 7); +lean_inc_ref(x_83); +x_84 = lean_ctor_get(x_13, 8); +lean_inc_ref(x_84); +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); + lean_ctor_release(x_13, 7); + lean_ctor_release(x_13, 8); + x_85 = x_13; +} else { + lean_dec_ref(x_13); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get_uint64(x_14, sizeof(void*)*1); +x_87 = lean_ctor_get(x_14, 0); +lean_inc_ref(x_87); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + x_88 = x_14; +} else { + lean_dec_ref(x_14); + x_88 = lean_box(0); +} +x_89 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__0; +x_90 = 0; +x_91 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__1; +x_92 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_92, 0, x_1); +lean_ctor_set(x_92, 1, x_91); +lean_ctor_set_float(x_92, sizeof(void*)*2, x_89); +lean_ctor_set_float(x_92, sizeof(void*)*2 + 8, x_89); +lean_ctor_set_uint8(x_92, sizeof(void*)*2 + 16, x_90); +x_93 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg___closed__2; +x_94 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_10); +lean_ctor_set(x_94, 2, x_93); +lean_inc(x_8); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_8); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Lean_PersistentArray_push___redArg(x_87, x_95); +if (lean_is_scalar(x_88)) { + x_97 = lean_alloc_ctor(0, 1, 8); +} else { + x_97 = x_88; +} +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set_uint64(x_97, sizeof(void*)*1, x_86); +if (lean_is_scalar(x_85)) { + x_98 = lean_alloc_ctor(0, 9, 0); +} else { + x_98 = x_85; +} +lean_ctor_set(x_98, 0, x_77); +lean_ctor_set(x_98, 1, x_78); +lean_ctor_set(x_98, 2, x_79); +lean_ctor_set(x_98, 3, x_80); +lean_ctor_set(x_98, 4, x_97); +lean_ctor_set(x_98, 5, x_81); +lean_ctor_set(x_98, 6, x_82); +lean_ctor_set(x_98, 7, x_83); +lean_ctor_set(x_98, 8, x_84); +x_99 = lean_st_ref_set(x_6, x_98, x_76); +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_101 = x_99; +} else { + lean_dec_ref(x_99); + x_101 = lean_box(0); +} +x_102 = lean_box(0); +if (lean_is_scalar(x_101)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_101; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_100); +return x_103; +} +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_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, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_1, x_2, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -11898,6 +12268,62 @@ x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 8); +x_6 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_5, x_1, x_2); +lean_ctor_set(x_3, 8, x_6); +return x_3; +} +else +{ +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; +x_7 = lean_ctor_get(x_3, 0); +x_8 = lean_ctor_get(x_3, 1); +x_9 = lean_ctor_get(x_3, 2); +x_10 = lean_ctor_get(x_3, 3); +x_11 = lean_ctor_get(x_3, 4); +x_12 = lean_ctor_get(x_3, 5); +x_13 = lean_ctor_get(x_3, 6); +x_14 = lean_ctor_get(x_3, 7); +x_15 = lean_ctor_get(x_3, 8); +x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_3); +x_18 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_15, x_1, x_2); +x_19 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_19, 0, x_7); +lean_ctor_set(x_19, 1, x_8); +lean_ctor_set(x_19, 2, x_9); +lean_ctor_set(x_19, 3, x_10); +lean_ctor_set(x_19, 4, x_11); +lean_ctor_set(x_19, 5, x_12); +lean_ctor_set(x_19, 6, x_13); +lean_ctor_set(x_19, 7, x_14); +lean_ctor_set(x_19, 8, x_18); +lean_ctor_set(x_19, 9, x_16); +lean_ctor_set(x_19, 10, x_17); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; x_5 = lean_ctor_get(x_3, 16); x_6 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_5, x_1, x_2); lean_ctor_set(x_3, 16, x_6); @@ -11964,10 +12390,10 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; 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_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; uint8_t x_19; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_ctor_get(x_4, 1); x_7 = lean_ctor_get(x_4, 2); @@ -11978,10 +12404,13 @@ x_11 = lean_ctor_get(x_4, 6); x_12 = lean_ctor_get(x_4, 7); x_13 = lean_ctor_get(x_4, 8); x_14 = lean_ctor_get(x_4, 9); -x_15 = lean_array_get_size(x_8); -x_16 = lean_nat_dec_lt(x_1, x_15); -lean_dec(x_15); -if (x_16 == 0) +x_15 = lean_ctor_get(x_4, 10); +x_16 = lean_ctor_get(x_4, 11); +x_17 = lean_ctor_get(x_4, 12); +x_18 = lean_array_get_size(x_8); +x_19 = lean_nat_dec_lt(x_1, x_18); +lean_dec(x_18); +if (x_19 == 0) { lean_dec_ref(x_3); lean_dec_ref(x_2); @@ -11989,8 +12418,11 @@ return x_4; } else { -uint8_t x_17; -lean_inc(x_14); +uint8_t x_20; +lean_inc(x_17); +lean_inc_ref(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); @@ -12000,62 +12432,73 @@ lean_inc_ref(x_8); lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); -x_17 = !lean_is_exclusive(x_4); -if (x_17 == 0) +x_20 = !lean_is_exclusive(x_4); +if (x_20 == 0) { -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; uint8_t x_29; -x_18 = lean_ctor_get(x_4, 9); -lean_dec(x_18); -x_19 = lean_ctor_get(x_4, 8); -lean_dec(x_19); -x_20 = lean_ctor_get(x_4, 7); -lean_dec(x_20); -x_21 = lean_ctor_get(x_4, 6); +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; uint8_t x_35; +x_21 = lean_ctor_get(x_4, 12); lean_dec(x_21); -x_22 = lean_ctor_get(x_4, 5); +x_22 = lean_ctor_get(x_4, 11); lean_dec(x_22); -x_23 = lean_ctor_get(x_4, 4); +x_23 = lean_ctor_get(x_4, 10); lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 3); +x_24 = lean_ctor_get(x_4, 9); lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 2); +x_25 = lean_ctor_get(x_4, 8); lean_dec(x_25); -x_26 = lean_ctor_get(x_4, 1); +x_26 = lean_ctor_get(x_4, 7); lean_dec(x_26); -x_27 = lean_ctor_get(x_4, 0); +x_27 = lean_ctor_get(x_4, 6); lean_dec(x_27); -x_28 = lean_array_fget(x_8, x_1); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_28 = lean_ctor_get(x_4, 5); +lean_dec(x_28); +x_29 = lean_ctor_get(x_4, 4); +lean_dec(x_29); +x_30 = lean_ctor_get(x_4, 3); +lean_dec(x_30); +x_31 = lean_ctor_get(x_4, 2); +lean_dec(x_31); +x_32 = lean_ctor_get(x_4, 1); +lean_dec(x_32); +x_33 = lean_ctor_get(x_4, 0); +lean_dec(x_33); +x_34 = lean_array_fget(x_8, x_1); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 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_28, 12); -x_31 = lean_box(0); -x_32 = lean_array_fset(x_8, x_1, x_31); -x_33 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_30, x_2, x_3); -lean_ctor_set(x_28, 12, x_33); -x_34 = lean_array_fset(x_32, x_1, x_28); -lean_ctor_set(x_4, 3, x_34); +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_34, 0); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_36, 8); +x_39 = lean_box(0); +x_40 = lean_array_fset(x_8, x_1, x_39); +x_41 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_38, x_2, x_3); +lean_ctor_set(x_36, 8, x_41); +x_42 = lean_array_fset(x_40, x_1, x_34); +lean_ctor_set(x_4, 3, x_42); return x_4; } 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; 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; -x_35 = lean_ctor_get(x_28, 0); -x_36 = lean_ctor_get(x_28, 1); -x_37 = lean_ctor_get(x_28, 2); -x_38 = lean_ctor_get(x_28, 3); -x_39 = lean_ctor_get(x_28, 4); -x_40 = lean_ctor_get(x_28, 5); -x_41 = lean_ctor_get(x_28, 6); -x_42 = lean_ctor_get(x_28, 7); -x_43 = lean_ctor_get(x_28, 8); -x_44 = lean_ctor_get(x_28, 9); -x_45 = lean_ctor_get(x_28, 10); -x_46 = lean_ctor_get(x_28, 11); -x_47 = lean_ctor_get(x_28, 12); -x_48 = lean_ctor_get(x_28, 13); -x_49 = lean_ctor_get(x_28, 14); +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; +x_43 = lean_ctor_get(x_36, 0); +x_44 = lean_ctor_get(x_36, 1); +x_45 = lean_ctor_get(x_36, 2); +x_46 = lean_ctor_get(x_36, 3); +x_47 = lean_ctor_get(x_36, 4); +x_48 = lean_ctor_get(x_36, 5); +x_49 = lean_ctor_get(x_36, 6); +x_50 = lean_ctor_get(x_36, 7); +x_51 = lean_ctor_get(x_36, 8); +x_52 = lean_ctor_get(x_36, 9); +x_53 = lean_ctor_get(x_36, 10); +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_inc(x_47); @@ -12063,136 +12506,226 @@ 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_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_28); -x_50 = lean_box(0); -x_51 = lean_array_fset(x_8, x_1, x_50); -x_52 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_47, x_2, x_3); -x_53 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_53, 0, x_35); -lean_ctor_set(x_53, 1, x_36); -lean_ctor_set(x_53, 2, x_37); -lean_ctor_set(x_53, 3, x_38); -lean_ctor_set(x_53, 4, x_39); -lean_ctor_set(x_53, 5, x_40); -lean_ctor_set(x_53, 6, x_41); -lean_ctor_set(x_53, 7, x_42); -lean_ctor_set(x_53, 8, x_43); -lean_ctor_set(x_53, 9, x_44); -lean_ctor_set(x_53, 10, x_45); -lean_ctor_set(x_53, 11, x_46); -lean_ctor_set(x_53, 12, x_52); -lean_ctor_set(x_53, 13, x_48); -lean_ctor_set(x_53, 14, x_49); -x_54 = lean_array_fset(x_51, x_1, x_53); -lean_ctor_set(x_4, 3, x_54); +lean_dec(x_36); +x_54 = lean_box(0); +x_55 = lean_array_fset(x_8, x_1, x_54); +x_56 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_51, x_2, x_3); +x_57 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_57, 0, x_43); +lean_ctor_set(x_57, 1, x_44); +lean_ctor_set(x_57, 2, x_45); +lean_ctor_set(x_57, 3, x_46); +lean_ctor_set(x_57, 4, x_47); +lean_ctor_set(x_57, 5, x_48); +lean_ctor_set(x_57, 6, x_49); +lean_ctor_set(x_57, 7, x_50); +lean_ctor_set(x_57, 8, x_56); +lean_ctor_set(x_57, 9, x_52); +lean_ctor_set(x_57, 10, x_53); +lean_ctor_set(x_34, 0, x_57); +x_58 = lean_array_fset(x_55, x_1, x_34); +lean_ctor_set(x_4, 3, x_58); return x_4; } } else { -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_dec(x_4); -x_55 = lean_array_fget(x_8, x_1); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_55, 2); -lean_inc_ref(x_58); -x_59 = lean_ctor_get(x_55, 3); -lean_inc(x_59); -x_60 = lean_ctor_get(x_55, 4); -lean_inc_ref(x_60); -x_61 = lean_ctor_get(x_55, 5); -lean_inc_ref(x_61); -x_62 = lean_ctor_get(x_55, 6); -lean_inc(x_62); -x_63 = lean_ctor_get(x_55, 7); +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; +x_59 = lean_ctor_get(x_34, 0); +x_60 = lean_ctor_get(x_34, 1); +x_61 = lean_ctor_get(x_34, 2); +x_62 = lean_ctor_get(x_34, 3); +x_63 = lean_ctor_get(x_34, 4); lean_inc(x_63); -x_64 = lean_ctor_get(x_55, 8); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_34); +x_64 = lean_ctor_get(x_59, 0); lean_inc(x_64); -x_65 = lean_ctor_get(x_55, 9); -lean_inc(x_65); -x_66 = lean_ctor_get(x_55, 10); +x_65 = lean_ctor_get(x_59, 1); +lean_inc_ref(x_65); +x_66 = lean_ctor_get(x_59, 2); lean_inc(x_66); -x_67 = lean_ctor_get(x_55, 11); -lean_inc(x_67); -x_68 = lean_ctor_get(x_55, 12); -lean_inc_ref(x_68); -x_69 = lean_ctor_get(x_55, 13); -lean_inc_ref(x_69); -x_70 = lean_ctor_get(x_55, 14); -lean_inc_ref(x_70); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - lean_ctor_release(x_55, 2); - lean_ctor_release(x_55, 3); - lean_ctor_release(x_55, 4); - lean_ctor_release(x_55, 5); - lean_ctor_release(x_55, 6); - lean_ctor_release(x_55, 7); - lean_ctor_release(x_55, 8); - lean_ctor_release(x_55, 9); - lean_ctor_release(x_55, 10); - lean_ctor_release(x_55, 11); - lean_ctor_release(x_55, 12); - lean_ctor_release(x_55, 13); - lean_ctor_release(x_55, 14); - x_71 = x_55; +x_67 = lean_ctor_get(x_59, 3); +lean_inc_ref(x_67); +x_68 = lean_ctor_get(x_59, 4); +lean_inc(x_68); +x_69 = lean_ctor_get(x_59, 5); +lean_inc(x_69); +x_70 = lean_ctor_get(x_59, 6); +lean_inc(x_70); +x_71 = lean_ctor_get(x_59, 7); +lean_inc(x_71); +x_72 = lean_ctor_get(x_59, 8); +lean_inc_ref(x_72); +x_73 = lean_ctor_get(x_59, 9); +lean_inc_ref(x_73); +x_74 = lean_ctor_get(x_59, 10); +lean_inc_ref(x_74); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + lean_ctor_release(x_59, 2); + lean_ctor_release(x_59, 3); + lean_ctor_release(x_59, 4); + lean_ctor_release(x_59, 5); + lean_ctor_release(x_59, 6); + lean_ctor_release(x_59, 7); + lean_ctor_release(x_59, 8); + lean_ctor_release(x_59, 9); + lean_ctor_release(x_59, 10); + x_75 = x_59; } else { - lean_dec_ref(x_55); - x_71 = lean_box(0); + lean_dec_ref(x_59); + x_75 = lean_box(0); } -x_72 = lean_box(0); -x_73 = lean_array_fset(x_8, x_1, x_72); -x_74 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_68, x_2, x_3); -if (lean_is_scalar(x_71)) { - x_75 = lean_alloc_ctor(0, 15, 0); +x_76 = lean_box(0); +x_77 = lean_array_fset(x_8, x_1, x_76); +x_78 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_72, x_2, x_3); +if (lean_is_scalar(x_75)) { + x_79 = lean_alloc_ctor(0, 11, 0); } else { - x_75 = x_71; + x_79 = x_75; } -lean_ctor_set(x_75, 0, x_56); -lean_ctor_set(x_75, 1, x_57); -lean_ctor_set(x_75, 2, x_58); -lean_ctor_set(x_75, 3, x_59); -lean_ctor_set(x_75, 4, x_60); -lean_ctor_set(x_75, 5, x_61); -lean_ctor_set(x_75, 6, x_62); -lean_ctor_set(x_75, 7, x_63); -lean_ctor_set(x_75, 8, x_64); -lean_ctor_set(x_75, 9, x_65); -lean_ctor_set(x_75, 10, x_66); -lean_ctor_set(x_75, 11, x_67); -lean_ctor_set(x_75, 12, x_74); -lean_ctor_set(x_75, 13, x_69); -lean_ctor_set(x_75, 14, x_70); -x_76 = lean_array_fset(x_73, x_1, x_75); -x_77 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_77, 0, x_5); -lean_ctor_set(x_77, 1, x_6); -lean_ctor_set(x_77, 2, x_7); -lean_ctor_set(x_77, 3, x_76); -lean_ctor_set(x_77, 4, x_9); -lean_ctor_set(x_77, 5, x_10); -lean_ctor_set(x_77, 6, x_11); -lean_ctor_set(x_77, 7, x_12); -lean_ctor_set(x_77, 8, x_13); -lean_ctor_set(x_77, 9, x_14); -return x_77; +lean_ctor_set(x_79, 0, x_64); +lean_ctor_set(x_79, 1, x_65); +lean_ctor_set(x_79, 2, x_66); +lean_ctor_set(x_79, 3, x_67); +lean_ctor_set(x_79, 4, x_68); +lean_ctor_set(x_79, 5, x_69); +lean_ctor_set(x_79, 6, x_70); +lean_ctor_set(x_79, 7, x_71); +lean_ctor_set(x_79, 8, x_78); +lean_ctor_set(x_79, 9, x_73); +lean_ctor_set(x_79, 10, x_74); +x_80 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_60); +lean_ctor_set(x_80, 2, x_61); +lean_ctor_set(x_80, 3, x_62); +lean_ctor_set(x_80, 4, x_63); +x_81 = lean_array_fset(x_77, x_1, x_80); +lean_ctor_set(x_4, 3, x_81); +return x_4; +} +} +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_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_dec(x_4); +x_82 = lean_array_fget(x_8, x_1); +x_83 = lean_ctor_get(x_82, 0); +lean_inc_ref(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_82, 2); +lean_inc_ref(x_85); +x_86 = lean_ctor_get(x_82, 3); +lean_inc(x_86); +x_87 = lean_ctor_get(x_82, 4); +lean_inc(x_87); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + lean_ctor_release(x_82, 2); + lean_ctor_release(x_82, 3); + lean_ctor_release(x_82, 4); + x_88 = x_82; +} else { + lean_dec_ref(x_82); + x_88 = lean_box(0); +} +x_89 = lean_ctor_get(x_83, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_83, 1); +lean_inc_ref(x_90); +x_91 = lean_ctor_get(x_83, 2); +lean_inc(x_91); +x_92 = lean_ctor_get(x_83, 3); +lean_inc_ref(x_92); +x_93 = lean_ctor_get(x_83, 4); +lean_inc(x_93); +x_94 = lean_ctor_get(x_83, 5); +lean_inc(x_94); +x_95 = lean_ctor_get(x_83, 6); +lean_inc(x_95); +x_96 = lean_ctor_get(x_83, 7); +lean_inc(x_96); +x_97 = lean_ctor_get(x_83, 8); +lean_inc_ref(x_97); +x_98 = lean_ctor_get(x_83, 9); +lean_inc_ref(x_98); +x_99 = lean_ctor_get(x_83, 10); +lean_inc_ref(x_99); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + lean_ctor_release(x_83, 2); + lean_ctor_release(x_83, 3); + lean_ctor_release(x_83, 4); + lean_ctor_release(x_83, 5); + lean_ctor_release(x_83, 6); + lean_ctor_release(x_83, 7); + lean_ctor_release(x_83, 8); + lean_ctor_release(x_83, 9); + lean_ctor_release(x_83, 10); + x_100 = x_83; +} else { + lean_dec_ref(x_83); + x_100 = lean_box(0); +} +x_101 = lean_box(0); +x_102 = lean_array_fset(x_8, x_1, x_101); +x_103 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__0___redArg(x_97, x_2, x_3); +if (lean_is_scalar(x_100)) { + x_104 = lean_alloc_ctor(0, 11, 0); +} else { + x_104 = x_100; +} +lean_ctor_set(x_104, 0, x_89); +lean_ctor_set(x_104, 1, x_90); +lean_ctor_set(x_104, 2, x_91); +lean_ctor_set(x_104, 3, x_92); +lean_ctor_set(x_104, 4, x_93); +lean_ctor_set(x_104, 5, x_94); +lean_ctor_set(x_104, 6, x_95); +lean_ctor_set(x_104, 7, x_96); +lean_ctor_set(x_104, 8, x_103); +lean_ctor_set(x_104, 9, x_98); +lean_ctor_set(x_104, 10, x_99); +if (lean_is_scalar(x_88)) { + x_105 = lean_alloc_ctor(0, 5, 0); +} else { + x_105 = x_88; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_84); +lean_ctor_set(x_105, 2, x_85); +lean_ctor_set(x_105, 3, x_86); +lean_ctor_set(x_105, 4, x_87); +x_106 = lean_array_fset(x_102, x_1, x_105); +x_107 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_107, 0, x_5); +lean_ctor_set(x_107, 1, x_6); +lean_ctor_set(x_107, 2, x_7); +lean_ctor_set(x_107, 3, x_106); +lean_ctor_set(x_107, 4, x_9); +lean_ctor_set(x_107, 5, x_10); +lean_ctor_set(x_107, 6, x_11); +lean_ctor_set(x_107, 7, x_12); +lean_ctor_set(x_107, 8, x_13); +lean_ctor_set(x_107, 9, x_14); +lean_ctor_set(x_107, 10, x_15); +lean_ctor_set(x_107, 11, x_16); +lean_ctor_set(x_107, 12, x_17); +return x_107; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -12478,7 +13011,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("(non-comm) ring [ncRingId}]: ", 29, 29); +x_1 = lean_mk_string_unchecked("(non-comm) semiring [", 21, 21); return x_1; } } @@ -12495,7 +13028,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("semiring [", 10, 10); +x_1 = lean_mk_string_unchecked("]: ", 3, 3); return x_1; } } @@ -12512,7 +13045,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("]: ", 3, 3); +x_1 = lean_mk_string_unchecked("(non-comm) ring [", 17, 17); return x_1; } } @@ -12529,7 +13062,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[", 1, 1); +x_1 = lean_mk_string_unchecked("semiring [", 10, 10); return x_1; } } @@ -12542,6 +13075,23 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__13; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize(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: { @@ -12712,6 +13262,7 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); +lean_inc(x_33); x_41 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); if (lean_obj_tag(x_41) == 0) { @@ -12720,7 +13271,23 @@ x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); if (lean_obj_tag(x_42) == 0) { -uint8_t x_43; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec_ref(x_41); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_44 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg(x_33, x_3, x_7, x_8, x_9, x_10, x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -12730,39 +13297,38 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_43 = !lean_is_exclusive(x_41); -if (x_43 == 0) +x_46 = !lean_is_exclusive(x_44); +if (x_46 == 0) { -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_41, 0); -lean_dec(x_44); -x_45 = lean_box(0); -lean_ctor_set(x_41, 0, x_45); -return x_41; +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_44, 0); +lean_dec(x_47); +x_48 = lean_box(0); +lean_ctor_set(x_44, 0, x_48); +return x_44; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_41, 1); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_44, 1); lean_inc(x_49); -lean_dec_ref(x_41); -x_50 = lean_ctor_get(x_42, 0); -lean_inc(x_50); -lean_dec_ref(x_42); -x_51 = lean_unsigned_to_nat(0u); +lean_dec(x_44); +x_50 = lean_box(0); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_44, 1); +lean_inc(x_52); +lean_dec_ref(x_44); +x_53 = lean_ctor_get(x_45, 0); +lean_inc(x_53); +lean_dec_ref(x_45); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -12771,18 +13337,18 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_50); -lean_inc_ref(x_1); -x_52 = l_Lean_Meta_Grind_Arith_CommRing_ncreify_x3f(x_1, x_14, x_51, x_50, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_49); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; -x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -if (lean_obj_tag(x_53) == 0) +lean_inc_ref(x_1); +x_54 = l_Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f(x_1, x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_52); +if (lean_obj_tag(x_54) == 0) { -uint8_t x_54; -lean_dec(x_50); +lean_object* x_55; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +if (lean_obj_tag(x_55) == 0) +{ +uint8_t x_56; +lean_dec(x_53); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -12792,134 +13358,165 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_54 = !lean_is_exclusive(x_52); -if (x_54 == 0) +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_52, 0); -lean_dec(x_55); -x_56 = lean_box(0); -lean_ctor_set(x_52, 0, x_56); -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_dec(x_52); +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_54, 0); +lean_dec(x_57); x_58 = lean_box(0); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_ctor_set(x_54, 0, x_58); +return x_54; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_54, 1); +lean_inc(x_59); +lean_dec(x_54); +x_60 = lean_box(0); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +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; 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; uint8_t x_84; -x_60 = lean_ctor_get(x_52, 1); -lean_inc(x_60); -lean_dec_ref(x_52); -x_61 = lean_ctor_get(x_53, 0); -lean_inc(x_61); -lean_dec_ref(x_53); -x_62 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_63 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__5___redArg(x_62, x_9, x_60); -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_object* x_62; uint8_t x_63; +x_62 = lean_ctor_get(x_54, 1); +lean_inc(x_62); +lean_dec_ref(x_54); +x_63 = !lean_is_exclusive(x_55); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_64 = lean_ctor_get(x_55, 0); +x_65 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_66 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__5___redArg(x_65, x_9, x_62); +x_67 = !lean_is_exclusive(x_66); +if (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; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_88; +x_68 = lean_ctor_get(x_66, 0); +x_69 = lean_ctor_get(x_66, 1); lean_inc_ref(x_1); -x_66 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); -lean_closure_set(x_66, 0, x_1); -lean_closure_set(x_66, 1, x_61); -x_84 = lean_unbox(x_64); -lean_dec(x_64); -if (x_84 == 0) +x_70 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); +lean_closure_set(x_70, 0, x_1); +lean_closure_set(x_70, 1, x_64); +x_88 = lean_unbox(x_68); +lean_dec(x_68); +if (x_88 == 0) { -x_67 = x_50; -x_68 = x_3; -x_69 = x_4; -x_70 = x_5; -x_71 = x_6; -x_72 = x_7; -x_73 = x_8; -x_74 = x_9; -x_75 = x_10; -x_76 = x_65; -goto block_83; +lean_free_object(x_66); +lean_free_object(x_55); +x_71 = x_53; +x_72 = x_3; +x_73 = x_4; +x_74 = x_5; +x_75 = x_6; +x_76 = x_7; +x_77 = x_8; +x_78 = x_9; +x_79 = x_10; +x_80 = x_69; +goto block_87; } else { -lean_object* x_85; -x_85 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_65); -if (lean_obj_tag(x_85) == 0) +lean_object* x_89; +x_89 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_69); +if (lean_obj_tag(x_89) == 0) { -uint8_t x_86; -x_86 = !lean_is_exclusive(x_85); -if (x_86 == 0) +uint8_t x_90; +x_90 = !lean_is_exclusive(x_89); +if (x_90 == 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; -x_87 = lean_ctor_get(x_85, 1); -x_88 = lean_ctor_get(x_85, 0); -lean_dec(x_88); -x_89 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +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_91 = lean_ctor_get(x_89, 1); +x_92 = lean_ctor_get(x_89, 0); +lean_dec(x_92); +x_93 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +lean_inc(x_53); +x_94 = l_Nat_reprFast(x_53); +lean_ctor_set_tag(x_55, 3); +lean_ctor_set(x_55, 0, x_94); +x_95 = l_Lean_MessageData_ofFormat(x_55); +lean_ctor_set_tag(x_89, 7); +lean_ctor_set(x_89, 1, x_95); +lean_ctor_set(x_89, 0, x_93); +x_96 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_66, 7); +lean_ctor_set(x_66, 1, x_96); +lean_ctor_set(x_66, 0, x_89); lean_inc_ref(x_1); -x_90 = l_Lean_MessageData_ofExpr(x_1); -lean_ctor_set_tag(x_85, 7); -lean_ctor_set(x_85, 1, x_90); -lean_ctor_set(x_85, 0, x_89); -x_91 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_62, x_85, x_7, x_8, x_9, x_10, x_87); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -lean_dec_ref(x_91); -x_67 = x_50; -x_68 = x_3; -x_69 = x_4; -x_70 = x_5; -x_71 = x_6; -x_72 = x_7; -x_73 = x_8; -x_74 = x_9; -x_75 = x_10; -x_76 = x_92; -goto block_83; +x_97 = l_Lean_MessageData_ofExpr(x_1); +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_66); +lean_ctor_set(x_98, 1, x_97); +x_99 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_65, x_98, x_7, x_8, x_9, x_10, x_91); +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec_ref(x_99); +x_71 = x_53; +x_72 = x_3; +x_73 = x_4; +x_74 = x_5; +x_75 = x_6; +x_76 = x_7; +x_77 = x_8; +x_78 = x_9; +x_79 = x_10; +x_80 = x_100; +goto block_87; } 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; -x_93 = lean_ctor_get(x_85, 1); -lean_inc(x_93); -lean_dec(x_85); -x_94 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +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_101 = lean_ctor_get(x_89, 1); +lean_inc(x_101); +lean_dec(x_89); +x_102 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +lean_inc(x_53); +x_103 = l_Nat_reprFast(x_53); +lean_ctor_set_tag(x_55, 3); +lean_ctor_set(x_55, 0, x_103); +x_104 = l_Lean_MessageData_ofFormat(x_55); +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_66, 7); +lean_ctor_set(x_66, 1, x_106); +lean_ctor_set(x_66, 0, x_105); lean_inc_ref(x_1); -x_95 = l_Lean_MessageData_ofExpr(x_1); -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_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_62, x_96, x_7, x_8, x_9, x_10, x_93); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec_ref(x_97); -x_67 = x_50; -x_68 = x_3; -x_69 = x_4; -x_70 = x_5; -x_71 = x_6; -x_72 = x_7; -x_73 = x_8; -x_74 = x_9; -x_75 = x_10; -x_76 = x_98; -goto block_83; +x_107 = l_Lean_MessageData_ofExpr(x_1); +x_108 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_108, 0, x_66); +lean_ctor_set(x_108, 1, x_107); +x_109 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_65, x_108, x_7, x_8, x_9, x_10, x_101); +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +lean_dec_ref(x_109); +x_71 = x_53; +x_72 = x_3; +x_73 = x_4; +x_74 = x_5; +x_75 = x_6; +x_76 = x_7; +x_77 = x_8; +x_78 = x_9; +x_79 = x_10; +x_80 = x_110; +goto block_87; } } else { -lean_dec_ref(x_66); -lean_dec(x_50); +lean_dec_ref(x_70); +lean_free_object(x_66); +lean_free_object(x_55); +lean_dec(x_53); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -12929,64 +13526,149 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -return x_85; +return x_89; } } -block_83: +block_87: { -lean_object* x_77; -lean_inc(x_67); +lean_object* x_81; +lean_inc(x_71); lean_inc_ref(x_1); -x_77 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_67, x_68, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_76); -if (lean_obj_tag(x_77) == 0) +x_81 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_71, x_72, x_73, x_74, x_75, x_76, x_77, x_78, x_79, x_80); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec_ref(x_77); -x_79 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_68); -x_80 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_79, x_1, x_68, x_69, x_70, x_71, x_72, x_73, x_74, x_75, x_78); -if (lean_obj_tag(x_80) == 0) +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +lean_dec_ref(x_81); +x_83 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_72); +x_84 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_83, x_1, x_72, x_73, x_74, x_75, x_76, x_77, x_78, x_79, x_82); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec_ref(x_80); -x_82 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_66, x_67, x_68, x_81); -lean_dec(x_68); -return x_82; +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec_ref(x_84); +x_86 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_70, x_71, x_72, x_85); +lean_dec(x_72); +return x_86; } else { -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); -return x_80; +lean_dec(x_72); +lean_dec(x_71); +lean_dec_ref(x_70); +return x_84; } } else { +lean_dec(x_79); +lean_dec_ref(x_78); +lean_dec(x_77); +lean_dec_ref(x_76); lean_dec(x_75); lean_dec_ref(x_74); lean_dec(x_73); -lean_dec_ref(x_72); +lean_dec(x_72); lean_dec(x_71); lean_dec_ref(x_70); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); lean_dec_ref(x_1); -return x_77; -} +return x_81; } } } else { -uint8_t x_99; -lean_dec(x_50); +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; uint8_t x_131; +x_111 = lean_ctor_get(x_66, 0); +x_112 = lean_ctor_get(x_66, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_66); +lean_inc_ref(x_1); +x_113 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); +lean_closure_set(x_113, 0, x_1); +lean_closure_set(x_113, 1, x_64); +x_131 = lean_unbox(x_111); +lean_dec(x_111); +if (x_131 == 0) +{ +lean_free_object(x_55); +x_114 = x_53; +x_115 = x_3; +x_116 = x_4; +x_117 = x_5; +x_118 = x_6; +x_119 = x_7; +x_120 = x_8; +x_121 = x_9; +x_122 = x_10; +x_123 = x_112; +goto block_130; +} +else +{ +lean_object* x_132; +x_132 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_112); +if (lean_obj_tag(x_132) == 0) +{ +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_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_134 = x_132; +} else { + lean_dec_ref(x_132); + x_134 = lean_box(0); +} +x_135 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +lean_inc(x_53); +x_136 = l_Nat_reprFast(x_53); +lean_ctor_set_tag(x_55, 3); +lean_ctor_set(x_55, 0, x_136); +x_137 = l_Lean_MessageData_ofFormat(x_55); +if (lean_is_scalar(x_134)) { + x_138 = lean_alloc_ctor(7, 2, 0); +} else { + x_138 = x_134; + lean_ctor_set_tag(x_138, 7); +} +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_137); +x_139 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +x_140 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +lean_inc_ref(x_1); +x_141 = l_Lean_MessageData_ofExpr(x_1); +x_142 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +x_143 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_65, x_142, x_7, x_8, x_9, x_10, x_133); +x_144 = lean_ctor_get(x_143, 1); +lean_inc(x_144); +lean_dec_ref(x_143); +x_114 = x_53; +x_115 = x_3; +x_116 = x_4; +x_117 = x_5; +x_118 = x_6; +x_119 = x_7; +x_120 = x_8; +x_121 = x_9; +x_122 = x_10; +x_123 = x_144; +goto block_130; +} +else +{ +lean_dec_ref(x_113); +lean_free_object(x_55); +lean_dec(x_53); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -12996,30 +13678,167 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_99 = !lean_is_exclusive(x_52); -if (x_99 == 0) +return x_132; +} +} +block_130: { -return x_52; +lean_object* x_124; +lean_inc(x_114); +lean_inc_ref(x_1); +x_124 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_114, x_115, x_116, x_117, x_118, x_119, x_120, x_121, x_122, x_123); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +lean_dec_ref(x_124); +x_126 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_115); +x_127 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_126, x_1, x_115, x_116, x_117, x_118, x_119, x_120, x_121, x_122, x_125); +if (lean_obj_tag(x_127) == 0) +{ +lean_object* x_128; lean_object* x_129; +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +lean_dec_ref(x_127); +x_129 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_113, x_114, x_115, x_128); +lean_dec(x_115); +return x_129; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_52, 0); -x_101 = lean_ctor_get(x_52, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_52); -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_115); +lean_dec(x_114); +lean_dec_ref(x_113); +return x_127; +} +} +else +{ +lean_dec(x_122); +lean_dec_ref(x_121); +lean_dec(x_120); +lean_dec_ref(x_119); +lean_dec(x_118); +lean_dec_ref(x_117); +lean_dec(x_116); +lean_dec(x_115); +lean_dec(x_114); +lean_dec_ref(x_113); +lean_dec_ref(x_1); +return x_124; } } } } else { -uint8_t x_103; +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; uint8_t x_169; +x_145 = lean_ctor_get(x_55, 0); +lean_inc(x_145); +lean_dec(x_55); +x_146 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_147 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__5___redArg(x_146, x_9, x_62); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_150 = x_147; +} else { + lean_dec_ref(x_147); + x_150 = lean_box(0); +} +lean_inc_ref(x_1); +x_151 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); +lean_closure_set(x_151, 0, x_1); +lean_closure_set(x_151, 1, x_145); +x_169 = lean_unbox(x_148); +lean_dec(x_148); +if (x_169 == 0) +{ +lean_dec(x_150); +x_152 = x_53; +x_153 = x_3; +x_154 = x_4; +x_155 = x_5; +x_156 = x_6; +x_157 = x_7; +x_158 = x_8; +x_159 = x_9; +x_160 = x_10; +x_161 = x_149; +goto block_168; +} +else +{ +lean_object* x_170; +x_170 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_149); +if (lean_obj_tag(x_170) == 0) +{ +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; +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_172 = x_170; +} else { + lean_dec_ref(x_170); + x_172 = lean_box(0); +} +x_173 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +lean_inc(x_53); +x_174 = l_Nat_reprFast(x_53); +x_175 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_175, 0, x_174); +x_176 = l_Lean_MessageData_ofFormat(x_175); +if (lean_is_scalar(x_172)) { + x_177 = lean_alloc_ctor(7, 2, 0); +} else { + x_177 = x_172; + lean_ctor_set_tag(x_177, 7); +} +lean_ctor_set(x_177, 0, x_173); +lean_ctor_set(x_177, 1, x_176); +x_178 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_150)) { + x_179 = lean_alloc_ctor(7, 2, 0); +} else { + x_179 = x_150; + lean_ctor_set_tag(x_179, 7); +} +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +lean_inc_ref(x_1); +x_180 = l_Lean_MessageData_ofExpr(x_1); +x_181 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_180); +x_182 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_146, x_181, x_7, x_8, x_9, x_10, x_171); +x_183 = lean_ctor_get(x_182, 1); +lean_inc(x_183); +lean_dec_ref(x_182); +x_152 = x_53; +x_153 = x_3; +x_154 = x_4; +x_155 = x_5; +x_156 = x_6; +x_157 = x_7; +x_158 = x_8; +x_159 = x_9; +x_160 = x_10; +x_161 = x_183; +goto block_168; +} +else +{ +lean_dec_ref(x_151); +lean_dec(x_150); +lean_dec(x_53); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -13029,35 +13848,788 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_103 = !lean_is_exclusive(x_41); -if (x_103 == 0) +return x_170; +} +} +block_168: +{ +lean_object* x_162; +lean_inc(x_152); +lean_inc_ref(x_1); +x_162 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_152, x_153, x_154, x_155, x_156, x_157, x_158, x_159, x_160, x_161); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec_ref(x_162); +x_164 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_153); +x_165 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_164, x_1, x_153, x_154, x_155, x_156, x_157, x_158, x_159, x_160, x_163); +if (lean_obj_tag(x_165) == 0) +{ +lean_object* x_166; lean_object* x_167; +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec_ref(x_165); +x_167 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_151, x_152, x_153, x_166); +lean_dec(x_153); +return x_167; +} +else +{ +lean_dec(x_153); +lean_dec(x_152); +lean_dec_ref(x_151); +return x_165; +} +} +else +{ +lean_dec(x_160); +lean_dec_ref(x_159); +lean_dec(x_158); +lean_dec_ref(x_157); +lean_dec(x_156); +lean_dec_ref(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_152); +lean_dec_ref(x_151); +lean_dec_ref(x_1); +return x_162; +} +} +} +} +} +else +{ +uint8_t x_184; +lean_dec(x_53); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_184 = !lean_is_exclusive(x_54); +if (x_184 == 0) +{ +return x_54; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_54, 0); +x_186 = lean_ctor_get(x_54, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_54); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; +} +} +} +} +else +{ +uint8_t x_188; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_188 = !lean_is_exclusive(x_44); +if (x_188 == 0) +{ +return x_44; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_44, 0); +x_190 = lean_ctor_get(x_44, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_44); +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; +} +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_dec(x_33); +x_192 = lean_ctor_get(x_41, 1); +lean_inc(x_192); +lean_dec_ref(x_41); +x_193 = lean_ctor_get(x_42, 0); +lean_inc(x_193); +lean_dec_ref(x_42); +x_194 = lean_unsigned_to_nat(0u); +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_4); +lean_inc(x_3); +lean_inc(x_193); +lean_inc_ref(x_1); +x_195 = l_Lean_Meta_Grind_Arith_CommRing_ncreify_x3f(x_1, x_14, x_194, x_193, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_192); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +if (lean_obj_tag(x_196) == 0) +{ +uint8_t x_197; +lean_dec(x_193); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_197 = !lean_is_exclusive(x_195); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; +x_198 = lean_ctor_get(x_195, 0); +lean_dec(x_198); +x_199 = lean_box(0); +lean_ctor_set(x_195, 0, x_199); +return x_195; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_200 = lean_ctor_get(x_195, 1); +lean_inc(x_200); +lean_dec(x_195); +x_201 = lean_box(0); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +else +{ +lean_object* x_203; uint8_t x_204; +x_203 = lean_ctor_get(x_195, 1); +lean_inc(x_203); +lean_dec_ref(x_195); +x_204 = !lean_is_exclusive(x_196); +if (x_204 == 0) +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; +x_205 = lean_ctor_get(x_196, 0); +x_206 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_207 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_206, x_9, x_203); +x_208 = !lean_is_exclusive(x_207); +if (x_208 == 0) +{ +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; uint8_t x_229; +x_209 = lean_ctor_get(x_207, 0); +x_210 = lean_ctor_get(x_207, 1); +lean_inc_ref(x_1); +x_211 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1), 3, 2); +lean_closure_set(x_211, 0, x_1); +lean_closure_set(x_211, 1, x_205); +x_229 = lean_unbox(x_209); +lean_dec(x_209); +if (x_229 == 0) +{ +lean_free_object(x_207); +lean_free_object(x_196); +x_212 = x_193; +x_213 = x_3; +x_214 = x_4; +x_215 = x_5; +x_216 = x_6; +x_217 = x_7; +x_218 = x_8; +x_219 = x_9; +x_220 = x_10; +x_221 = x_210; +goto block_228; +} +else +{ +lean_object* x_230; +x_230 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_210); +if (lean_obj_tag(x_230) == 0) +{ +uint8_t x_231; +x_231 = !lean_is_exclusive(x_230); +if (x_231 == 0) +{ +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; +x_232 = lean_ctor_get(x_230, 1); +x_233 = lean_ctor_get(x_230, 0); +lean_dec(x_233); +x_234 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; +lean_inc(x_193); +x_235 = l_Nat_reprFast(x_193); +lean_ctor_set_tag(x_196, 3); +lean_ctor_set(x_196, 0, x_235); +x_236 = l_Lean_MessageData_ofFormat(x_196); +lean_ctor_set_tag(x_230, 7); +lean_ctor_set(x_230, 1, x_236); +lean_ctor_set(x_230, 0, x_234); +x_237 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_207, 7); +lean_ctor_set(x_207, 1, x_237); +lean_ctor_set(x_207, 0, x_230); +lean_inc_ref(x_1); +x_238 = l_Lean_MessageData_ofExpr(x_1); +x_239 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_239, 0, x_207); +lean_ctor_set(x_239, 1, x_238); +x_240 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_206, x_239, x_7, x_8, x_9, x_10, x_232); +x_241 = lean_ctor_get(x_240, 1); +lean_inc(x_241); +lean_dec_ref(x_240); +x_212 = x_193; +x_213 = x_3; +x_214 = x_4; +x_215 = x_5; +x_216 = x_6; +x_217 = x_7; +x_218 = x_8; +x_219 = x_9; +x_220 = x_10; +x_221 = x_241; +goto block_228; +} +else +{ +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; +x_242 = lean_ctor_get(x_230, 1); +lean_inc(x_242); +lean_dec(x_230); +x_243 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; +lean_inc(x_193); +x_244 = l_Nat_reprFast(x_193); +lean_ctor_set_tag(x_196, 3); +lean_ctor_set(x_196, 0, x_244); +x_245 = l_Lean_MessageData_ofFormat(x_196); +x_246 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_246, 0, x_243); +lean_ctor_set(x_246, 1, x_245); +x_247 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_207, 7); +lean_ctor_set(x_207, 1, x_247); +lean_ctor_set(x_207, 0, x_246); +lean_inc_ref(x_1); +x_248 = l_Lean_MessageData_ofExpr(x_1); +x_249 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_249, 0, x_207); +lean_ctor_set(x_249, 1, x_248); +x_250 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_206, x_249, x_7, x_8, x_9, x_10, x_242); +x_251 = lean_ctor_get(x_250, 1); +lean_inc(x_251); +lean_dec_ref(x_250); +x_212 = x_193; +x_213 = x_3; +x_214 = x_4; +x_215 = x_5; +x_216 = x_6; +x_217 = x_7; +x_218 = x_8; +x_219 = x_9; +x_220 = x_10; +x_221 = x_251; +goto block_228; +} +} +else +{ +lean_dec_ref(x_211); +lean_free_object(x_207); +lean_free_object(x_196); +lean_dec(x_193); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_230; +} +} +block_228: +{ +lean_object* x_222; +lean_inc(x_212); +lean_inc_ref(x_1); +x_222 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_212, x_213, x_214, x_215, x_216, x_217, x_218, x_219, x_220, x_221); +if (lean_obj_tag(x_222) == 0) +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_222, 1); +lean_inc(x_223); +lean_dec_ref(x_222); +x_224 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_213); +x_225 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_224, x_1, x_213, x_214, x_215, x_216, x_217, x_218, x_219, x_220, x_223); +if (lean_obj_tag(x_225) == 0) +{ +lean_object* x_226; lean_object* x_227; +x_226 = lean_ctor_get(x_225, 1); +lean_inc(x_226); +lean_dec_ref(x_225); +x_227 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_211, x_212, x_213, x_226); +lean_dec(x_213); +return x_227; +} +else +{ +lean_dec(x_213); +lean_dec(x_212); +lean_dec_ref(x_211); +return x_225; +} +} +else +{ +lean_dec(x_220); +lean_dec_ref(x_219); +lean_dec(x_218); +lean_dec_ref(x_217); +lean_dec(x_216); +lean_dec_ref(x_215); +lean_dec(x_214); +lean_dec(x_213); +lean_dec(x_212); +lean_dec_ref(x_211); +lean_dec_ref(x_1); +return x_222; +} +} +} +else +{ +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; uint8_t x_272; +x_252 = lean_ctor_get(x_207, 0); +x_253 = lean_ctor_get(x_207, 1); +lean_inc(x_253); +lean_inc(x_252); +lean_dec(x_207); +lean_inc_ref(x_1); +x_254 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1), 3, 2); +lean_closure_set(x_254, 0, x_1); +lean_closure_set(x_254, 1, x_205); +x_272 = lean_unbox(x_252); +lean_dec(x_252); +if (x_272 == 0) +{ +lean_free_object(x_196); +x_255 = x_193; +x_256 = x_3; +x_257 = x_4; +x_258 = x_5; +x_259 = x_6; +x_260 = x_7; +x_261 = x_8; +x_262 = x_9; +x_263 = x_10; +x_264 = x_253; +goto block_271; +} +else +{ +lean_object* x_273; +x_273 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_253); +if (lean_obj_tag(x_273) == 0) +{ +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; +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 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; +lean_inc(x_193); +x_277 = l_Nat_reprFast(x_193); +lean_ctor_set_tag(x_196, 3); +lean_ctor_set(x_196, 0, x_277); +x_278 = l_Lean_MessageData_ofFormat(x_196); +if (lean_is_scalar(x_275)) { + x_279 = lean_alloc_ctor(7, 2, 0); +} else { + x_279 = x_275; + lean_ctor_set_tag(x_279, 7); +} +lean_ctor_set(x_279, 0, x_276); +lean_ctor_set(x_279, 1, x_278); +x_280 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +x_281 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_281, 0, x_279); +lean_ctor_set(x_281, 1, x_280); +lean_inc_ref(x_1); +x_282 = l_Lean_MessageData_ofExpr(x_1); +x_283 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_283, 0, x_281); +lean_ctor_set(x_283, 1, x_282); +x_284 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_206, x_283, x_7, x_8, x_9, x_10, x_274); +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +lean_dec_ref(x_284); +x_255 = x_193; +x_256 = x_3; +x_257 = x_4; +x_258 = x_5; +x_259 = x_6; +x_260 = x_7; +x_261 = x_8; +x_262 = x_9; +x_263 = x_10; +x_264 = x_285; +goto block_271; +} +else +{ +lean_dec_ref(x_254); +lean_free_object(x_196); +lean_dec(x_193); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_273; +} +} +block_271: +{ +lean_object* x_265; +lean_inc(x_255); +lean_inc_ref(x_1); +x_265 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_255, x_256, x_257, x_258, x_259, x_260, x_261, x_262, x_263, x_264); +if (lean_obj_tag(x_265) == 0) +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_265, 1); +lean_inc(x_266); +lean_dec_ref(x_265); +x_267 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_256); +x_268 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_267, x_1, x_256, x_257, x_258, x_259, x_260, x_261, x_262, x_263, x_266); +if (lean_obj_tag(x_268) == 0) +{ +lean_object* x_269; lean_object* x_270; +x_269 = lean_ctor_get(x_268, 1); +lean_inc(x_269); +lean_dec_ref(x_268); +x_270 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_254, x_255, x_256, x_269); +lean_dec(x_256); +return x_270; +} +else +{ +lean_dec(x_256); +lean_dec(x_255); +lean_dec_ref(x_254); +return x_268; +} +} +else +{ +lean_dec(x_263); +lean_dec_ref(x_262); +lean_dec(x_261); +lean_dec_ref(x_260); +lean_dec(x_259); +lean_dec_ref(x_258); +lean_dec(x_257); +lean_dec(x_256); +lean_dec(x_255); +lean_dec_ref(x_254); +lean_dec_ref(x_1); +return x_265; +} +} +} +} +else +{ +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; uint8_t x_310; +x_286 = lean_ctor_get(x_196, 0); +lean_inc(x_286); +lean_dec(x_196); +x_287 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_288 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_287, x_9, x_203); +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_288, 1); +lean_inc(x_290); +if (lean_is_exclusive(x_288)) { + lean_ctor_release(x_288, 0); + lean_ctor_release(x_288, 1); + x_291 = x_288; +} else { + lean_dec_ref(x_288); + x_291 = lean_box(0); +} +lean_inc_ref(x_1); +x_292 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1), 3, 2); +lean_closure_set(x_292, 0, x_1); +lean_closure_set(x_292, 1, x_286); +x_310 = lean_unbox(x_289); +lean_dec(x_289); +if (x_310 == 0) +{ +lean_dec(x_291); +x_293 = x_193; +x_294 = x_3; +x_295 = x_4; +x_296 = x_5; +x_297 = x_6; +x_298 = x_7; +x_299 = x_8; +x_300 = x_9; +x_301 = x_10; +x_302 = x_290; +goto block_309; +} +else +{ +lean_object* x_311; +x_311 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_290); +if (lean_obj_tag(x_311) == 0) +{ +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; +x_312 = lean_ctor_get(x_311, 1); +lean_inc(x_312); +if (lean_is_exclusive(x_311)) { + lean_ctor_release(x_311, 0); + lean_ctor_release(x_311, 1); + x_313 = x_311; +} else { + lean_dec_ref(x_311); + x_313 = lean_box(0); +} +x_314 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; +lean_inc(x_193); +x_315 = l_Nat_reprFast(x_193); +x_316 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_316, 0, x_315); +x_317 = l_Lean_MessageData_ofFormat(x_316); +if (lean_is_scalar(x_313)) { + x_318 = lean_alloc_ctor(7, 2, 0); +} else { + x_318 = x_313; + lean_ctor_set_tag(x_318, 7); +} +lean_ctor_set(x_318, 0, x_314); +lean_ctor_set(x_318, 1, x_317); +x_319 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_291)) { + x_320 = lean_alloc_ctor(7, 2, 0); +} else { + x_320 = x_291; + lean_ctor_set_tag(x_320, 7); +} +lean_ctor_set(x_320, 0, x_318); +lean_ctor_set(x_320, 1, x_319); +lean_inc_ref(x_1); +x_321 = l_Lean_MessageData_ofExpr(x_1); +x_322 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_322, 0, x_320); +lean_ctor_set(x_322, 1, x_321); +x_323 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_287, x_322, x_7, x_8, x_9, x_10, x_312); +x_324 = lean_ctor_get(x_323, 1); +lean_inc(x_324); +lean_dec_ref(x_323); +x_293 = x_193; +x_294 = x_3; +x_295 = x_4; +x_296 = x_5; +x_297 = x_6; +x_298 = x_7; +x_299 = x_8; +x_300 = x_9; +x_301 = x_10; +x_302 = x_324; +goto block_309; +} +else +{ +lean_dec_ref(x_292); +lean_dec(x_291); +lean_dec(x_193); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_311; +} +} +block_309: +{ +lean_object* x_303; +lean_inc(x_293); +lean_inc_ref(x_1); +x_303 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_293, x_294, x_295, x_296, x_297, x_298, x_299, x_300, x_301, x_302); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_303, 1); +lean_inc(x_304); +lean_dec_ref(x_303); +x_305 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_294); +x_306 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_305, x_1, x_294, x_295, x_296, x_297, x_298, x_299, x_300, x_301, x_304); +if (lean_obj_tag(x_306) == 0) +{ +lean_object* x_307; lean_object* x_308; +x_307 = lean_ctor_get(x_306, 1); +lean_inc(x_307); +lean_dec_ref(x_306); +x_308 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_292, x_293, x_294, x_307); +lean_dec(x_294); +return x_308; +} +else +{ +lean_dec(x_294); +lean_dec(x_293); +lean_dec_ref(x_292); +return x_306; +} +} +else +{ +lean_dec(x_301); +lean_dec_ref(x_300); +lean_dec(x_299); +lean_dec_ref(x_298); +lean_dec(x_297); +lean_dec_ref(x_296); +lean_dec(x_295); +lean_dec(x_294); +lean_dec(x_293); +lean_dec_ref(x_292); +lean_dec_ref(x_1); +return x_303; +} +} +} +} +} +else +{ +uint8_t x_325; +lean_dec(x_193); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_325 = !lean_is_exclusive(x_195); +if (x_325 == 0) +{ +return x_195; +} +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_326 = lean_ctor_get(x_195, 0); +x_327 = lean_ctor_get(x_195, 1); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_195); +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_326); +lean_ctor_set(x_328, 1, x_327); +return x_328; +} +} +} +} +else +{ +uint8_t x_329; +lean_dec(x_33); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_329 = !lean_is_exclusive(x_41); +if (x_329 == 0) { return x_41; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_41, 0); -x_105 = lean_ctor_get(x_41, 1); -lean_inc(x_105); -lean_inc(x_104); +lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_330 = lean_ctor_get(x_41, 0); +x_331 = lean_ctor_get(x_41, 1); +lean_inc(x_331); +lean_inc(x_330); lean_dec(x_41); -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; +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_330); +lean_ctor_set(x_332, 1, x_331); +return x_332; } } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_dec(x_33); -x_107 = lean_ctor_get(x_38, 1); -lean_inc(x_107); +x_333 = lean_ctor_get(x_38, 1); +lean_inc(x_333); lean_dec_ref(x_38); -x_108 = lean_ctor_get(x_39, 0); -lean_inc(x_108); +x_334 = lean_ctor_get(x_39, 0); +lean_inc(x_334); lean_dec_ref(x_39); lean_inc(x_10); lean_inc_ref(x_9); @@ -13067,1351 +14639,188 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_108); +lean_inc(x_334); lean_inc_ref(x_1); -x_109 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f(x_1, x_108, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_107); -if (lean_obj_tag(x_109) == 0) +x_335 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f(x_1, x_334, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_333); +if (lean_obj_tag(x_335) == 0) { -lean_object* x_110; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -if (lean_obj_tag(x_110) == 0) +lean_object* x_336; +x_336 = lean_ctor_get(x_335, 0); +lean_inc(x_336); +if (lean_obj_tag(x_336) == 0) { -uint8_t x_111; -lean_dec(x_108); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_111 = !lean_is_exclusive(x_109); -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; -x_112 = lean_ctor_get(x_109, 0); -lean_dec(x_112); -x_113 = lean_box(0); -lean_ctor_set(x_109, 0, x_113); -return x_109; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_109, 1); -lean_inc(x_114); -lean_dec(x_109); -x_115 = lean_box(0); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_114); -return x_116; -} -} -else -{ -lean_object* x_117; uint8_t x_118; -x_117 = lean_ctor_get(x_109, 1); -lean_inc(x_117); -lean_dec_ref(x_109); -x_118 = !lean_is_exclusive(x_110); -if (x_118 == 0) -{ -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_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; -x_119 = lean_ctor_get(x_110, 0); -x_138 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_139 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_138, x_9, x_117); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_unbox(x_140); -lean_dec(x_140); -if (x_141 == 0) -{ -lean_object* x_142; -lean_free_object(x_110); -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); -lean_dec_ref(x_139); -x_120 = x_108; -x_121 = x_3; -x_122 = x_4; -x_123 = x_5; -x_124 = x_6; -x_125 = x_7; -x_126 = x_8; -x_127 = x_9; -x_128 = x_10; -x_129 = x_142; -goto block_137; -} -else -{ -uint8_t x_143; -x_143 = !lean_is_exclusive(x_139); -if (x_143 == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_139, 1); -x_145 = lean_ctor_get(x_139, 0); -lean_dec(x_145); -x_146 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_144); -if (lean_obj_tag(x_146) == 0) -{ -uint8_t x_147; -x_147 = !lean_is_exclusive(x_146); -if (x_147 == 0) -{ -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; -x_148 = lean_ctor_get(x_146, 1); -x_149 = lean_ctor_get(x_146, 0); -lean_dec(x_149); -x_150 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; -lean_inc(x_108); -x_151 = l_Nat_reprFast(x_108); -lean_ctor_set_tag(x_110, 3); -lean_ctor_set(x_110, 0, x_151); -x_152 = l_Lean_MessageData_ofFormat(x_110); -lean_ctor_set_tag(x_146, 7); -lean_ctor_set(x_146, 1, x_152); -lean_ctor_set(x_146, 0, x_150); -x_153 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -lean_ctor_set_tag(x_139, 7); -lean_ctor_set(x_139, 1, x_153); -lean_ctor_set(x_139, 0, x_146); -lean_inc_ref(x_1); -x_154 = l_Lean_MessageData_ofExpr(x_1); -x_155 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_155, 0, x_139); -lean_ctor_set(x_155, 1, x_154); -x_156 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_138, x_155, x_7, x_8, x_9, x_10, x_148); -x_157 = lean_ctor_get(x_156, 1); -lean_inc(x_157); -lean_dec_ref(x_156); -x_120 = x_108; -x_121 = x_3; -x_122 = x_4; -x_123 = x_5; -x_124 = x_6; -x_125 = x_7; -x_126 = x_8; -x_127 = x_9; -x_128 = x_10; -x_129 = x_157; -goto block_137; -} -else -{ -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; -x_158 = lean_ctor_get(x_146, 1); -lean_inc(x_158); -lean_dec(x_146); -x_159 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; -lean_inc(x_108); -x_160 = l_Nat_reprFast(x_108); -lean_ctor_set_tag(x_110, 3); -lean_ctor_set(x_110, 0, x_160); -x_161 = l_Lean_MessageData_ofFormat(x_110); -x_162 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_162, 0, x_159); -lean_ctor_set(x_162, 1, x_161); -x_163 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -lean_ctor_set_tag(x_139, 7); -lean_ctor_set(x_139, 1, x_163); -lean_ctor_set(x_139, 0, x_162); -lean_inc_ref(x_1); -x_164 = l_Lean_MessageData_ofExpr(x_1); -x_165 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_165, 0, x_139); -lean_ctor_set(x_165, 1, x_164); -x_166 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_138, x_165, x_7, x_8, x_9, x_10, x_158); -x_167 = lean_ctor_get(x_166, 1); -lean_inc(x_167); -lean_dec_ref(x_166); -x_120 = x_108; -x_121 = x_3; -x_122 = x_4; -x_123 = x_5; -x_124 = x_6; -x_125 = x_7; -x_126 = x_8; -x_127 = x_9; -x_128 = x_10; -x_129 = x_167; -goto block_137; -} -} -else -{ -lean_free_object(x_139); -lean_free_object(x_110); -lean_dec(x_119); -lean_dec(x_108); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_146; -} -} -else -{ -lean_object* x_168; lean_object* x_169; -x_168 = lean_ctor_get(x_139, 1); -lean_inc(x_168); -lean_dec(x_139); -x_169 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_168); -if (lean_obj_tag(x_169) == 0) -{ -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; -x_170 = lean_ctor_get(x_169, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - x_171 = x_169; -} else { - lean_dec_ref(x_169); - x_171 = lean_box(0); -} -x_172 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; -lean_inc(x_108); -x_173 = l_Nat_reprFast(x_108); -lean_ctor_set_tag(x_110, 3); -lean_ctor_set(x_110, 0, x_173); -x_174 = l_Lean_MessageData_ofFormat(x_110); -if (lean_is_scalar(x_171)) { - x_175 = lean_alloc_ctor(7, 2, 0); -} else { - x_175 = x_171; - lean_ctor_set_tag(x_175, 7); -} -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_174); -x_176 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -x_177 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_177, 0, x_175); -lean_ctor_set(x_177, 1, x_176); -lean_inc_ref(x_1); -x_178 = l_Lean_MessageData_ofExpr(x_1); -x_179 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_178); -x_180 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_138, x_179, x_7, x_8, x_9, x_10, x_170); -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -lean_dec_ref(x_180); -x_120 = x_108; -x_121 = x_3; -x_122 = x_4; -x_123 = x_5; -x_124 = x_6; -x_125 = x_7; -x_126 = x_8; -x_127 = x_9; -x_128 = x_10; -x_129 = x_181; -goto block_137; -} -else -{ -lean_free_object(x_110); -lean_dec(x_119); -lean_dec(x_108); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_169; -} -} -} -block_137: -{ -lean_object* x_130; -lean_inc(x_120); -lean_inc_ref(x_1); -x_130 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_120, x_121, x_122, x_123, x_124, x_125, x_126, x_127, x_128, x_129); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -lean_dec_ref(x_130); -x_132 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_121); -lean_inc_ref(x_1); -x_133 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_132, x_1, x_121, x_122, x_123, x_124, x_125, x_126, x_127, x_128, x_131); -if (lean_obj_tag(x_133) == 0) -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -lean_dec_ref(x_133); -x_135 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1___boxed), 4, 3); -lean_closure_set(x_135, 0, x_120); -lean_closure_set(x_135, 1, x_1); -lean_closure_set(x_135, 2, x_119); -x_136 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_132, x_135, x_121, x_134); -lean_dec(x_121); -return x_136; -} -else -{ -lean_dec(x_121); -lean_dec(x_120); -lean_dec(x_119); -lean_dec_ref(x_1); -return x_133; -} -} -else -{ -lean_dec(x_128); -lean_dec_ref(x_127); -lean_dec(x_126); -lean_dec_ref(x_125); -lean_dec(x_124); -lean_dec_ref(x_123); -lean_dec(x_122); -lean_dec(x_121); -lean_dec(x_120); -lean_dec(x_119); -lean_dec_ref(x_1); -return x_130; -} -} -} -else -{ -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_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; -x_182 = lean_ctor_get(x_110, 0); -lean_inc(x_182); -lean_dec(x_110); -x_201 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_202 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_201, x_9, x_117); -x_203 = lean_ctor_get(x_202, 0); -lean_inc(x_203); -x_204 = lean_unbox(x_203); -lean_dec(x_203); -if (x_204 == 0) -{ -lean_object* x_205; -x_205 = lean_ctor_get(x_202, 1); -lean_inc(x_205); -lean_dec_ref(x_202); -x_183 = x_108; -x_184 = x_3; -x_185 = x_4; -x_186 = x_5; -x_187 = x_6; -x_188 = x_7; -x_189 = x_8; -x_190 = x_9; -x_191 = x_10; -x_192 = x_205; -goto block_200; -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_202, 1); -lean_inc(x_206); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_207 = x_202; -} else { - lean_dec_ref(x_202); - x_207 = lean_box(0); -} -x_208 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_206); -if (lean_obj_tag(x_208) == 0) -{ -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_209 = lean_ctor_get(x_208, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_210 = x_208; -} else { - lean_dec_ref(x_208); - x_210 = lean_box(0); -} -x_211 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; -lean_inc(x_108); -x_212 = l_Nat_reprFast(x_108); -x_213 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_213, 0, x_212); -x_214 = l_Lean_MessageData_ofFormat(x_213); -if (lean_is_scalar(x_210)) { - x_215 = lean_alloc_ctor(7, 2, 0); -} else { - x_215 = x_210; - lean_ctor_set_tag(x_215, 7); -} -lean_ctor_set(x_215, 0, x_211); -lean_ctor_set(x_215, 1, x_214); -x_216 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -if (lean_is_scalar(x_207)) { - x_217 = lean_alloc_ctor(7, 2, 0); -} else { - x_217 = x_207; - lean_ctor_set_tag(x_217, 7); -} -lean_ctor_set(x_217, 0, x_215); -lean_ctor_set(x_217, 1, x_216); -lean_inc_ref(x_1); -x_218 = l_Lean_MessageData_ofExpr(x_1); -x_219 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_219, 0, x_217); -lean_ctor_set(x_219, 1, x_218); -x_220 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_201, x_219, x_7, x_8, x_9, x_10, x_209); -x_221 = lean_ctor_get(x_220, 1); -lean_inc(x_221); -lean_dec_ref(x_220); -x_183 = x_108; -x_184 = x_3; -x_185 = x_4; -x_186 = x_5; -x_187 = x_6; -x_188 = x_7; -x_189 = x_8; -x_190 = x_9; -x_191 = x_10; -x_192 = x_221; -goto block_200; -} -else -{ -lean_dec(x_207); -lean_dec(x_182); -lean_dec(x_108); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_208; -} -} -block_200: -{ -lean_object* x_193; -lean_inc(x_183); -lean_inc_ref(x_1); -x_193 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_183, x_184, x_185, x_186, x_187, x_188, x_189, x_190, x_191, x_192); -if (lean_obj_tag(x_193) == 0) -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_194 = lean_ctor_get(x_193, 1); -lean_inc(x_194); -lean_dec_ref(x_193); -x_195 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_184); -lean_inc_ref(x_1); -x_196 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_195, x_1, x_184, x_185, x_186, x_187, x_188, x_189, x_190, x_191, x_194); -if (lean_obj_tag(x_196) == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -lean_dec_ref(x_196); -x_198 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1___boxed), 4, 3); -lean_closure_set(x_198, 0, x_183); -lean_closure_set(x_198, 1, x_1); -lean_closure_set(x_198, 2, x_182); -x_199 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_195, x_198, x_184, x_197); -lean_dec(x_184); -return x_199; -} -else -{ -lean_dec(x_184); -lean_dec(x_183); -lean_dec(x_182); -lean_dec_ref(x_1); -return x_196; -} -} -else -{ -lean_dec(x_191); -lean_dec_ref(x_190); -lean_dec(x_189); -lean_dec_ref(x_188); -lean_dec(x_187); -lean_dec_ref(x_186); -lean_dec(x_185); -lean_dec(x_184); -lean_dec(x_183); -lean_dec(x_182); -lean_dec_ref(x_1); -return x_193; -} -} -} -} -} -else -{ -uint8_t x_222; -lean_dec(x_108); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_222 = !lean_is_exclusive(x_109); -if (x_222 == 0) -{ -return x_109; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_109, 0); -x_224 = lean_ctor_get(x_109, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_109); -x_225 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_225, 0, x_223); -lean_ctor_set(x_225, 1, x_224); -return x_225; -} -} -} -} -else -{ -uint8_t x_226; -lean_dec(x_33); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_226 = !lean_is_exclusive(x_38); -if (x_226 == 0) -{ -return x_38; -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_38, 0); -x_228 = lean_ctor_get(x_38, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_38); -x_229 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_229, 0, x_227); -lean_ctor_set(x_229, 1, x_228); -return x_229; -} -} -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -lean_dec(x_33); -x_230 = lean_ctor_get(x_35, 1); -lean_inc(x_230); -lean_dec_ref(x_35); -x_231 = lean_ctor_get(x_36, 0); -lean_inc(x_231); -lean_dec_ref(x_36); -x_232 = lean_unsigned_to_nat(0u); -lean_inc(x_231); -x_233 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_233, 0, x_231); -lean_ctor_set_uint8(x_233, sizeof(void*)*1, x_34); -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_4); -lean_inc(x_3); -lean_inc_ref(x_233); -lean_inc_ref(x_1); -x_234 = l_Lean_Meta_Grind_Arith_CommRing_reify_x3f(x_1, x_14, x_232, x_233, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_230); -if (lean_obj_tag(x_234) == 0) -{ -lean_object* x_235; -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -if (lean_obj_tag(x_235) == 0) -{ -uint8_t x_236; -lean_dec_ref(x_233); -lean_dec(x_231); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_236 = !lean_is_exclusive(x_234); -if (x_236 == 0) -{ -lean_object* x_237; lean_object* x_238; -x_237 = lean_ctor_get(x_234, 0); -lean_dec(x_237); -x_238 = lean_box(0); -lean_ctor_set(x_234, 0, x_238); -return x_234; -} -else -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_239 = lean_ctor_get(x_234, 1); -lean_inc(x_239); -lean_dec(x_234); -x_240 = lean_box(0); -x_241 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_239); -return x_241; -} -} -else -{ -lean_object* x_242; uint8_t x_243; -x_242 = lean_ctor_get(x_234, 1); -lean_inc(x_242); -lean_dec_ref(x_234); -x_243 = !lean_is_exclusive(x_235); -if (x_243 == 0) -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; -x_244 = lean_ctor_get(x_235, 0); -x_245 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_246 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_245, x_9, x_242); -x_247 = !lean_is_exclusive(x_246); -if (x_247 == 0) -{ -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_268; -x_248 = lean_ctor_get(x_246, 0); -x_249 = lean_ctor_get(x_246, 1); -lean_inc_ref(x_1); -x_250 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2), 3, 2); -lean_closure_set(x_250, 0, x_1); -lean_closure_set(x_250, 1, x_244); -x_268 = lean_unbox(x_248); -lean_dec(x_248); -if (x_268 == 0) -{ -lean_free_object(x_246); -lean_free_object(x_235); -lean_dec(x_231); -x_251 = x_233; -x_252 = x_3; -x_253 = x_4; -x_254 = x_5; -x_255 = x_6; -x_256 = x_7; -x_257 = x_8; -x_258 = x_9; -x_259 = x_10; -x_260 = x_249; -goto block_267; -} -else -{ -lean_object* x_269; -x_269 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_249); -if (lean_obj_tag(x_269) == 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; 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; -x_271 = lean_ctor_get(x_269, 1); -x_272 = lean_ctor_get(x_269, 0); -lean_dec(x_272); -x_273 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; -x_274 = l_Nat_reprFast(x_231); -lean_ctor_set_tag(x_235, 3); -lean_ctor_set(x_235, 0, x_274); -x_275 = l_Lean_MessageData_ofFormat(x_235); -lean_ctor_set_tag(x_269, 7); -lean_ctor_set(x_269, 1, x_275); -lean_ctor_set(x_269, 0, x_273); -x_276 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -lean_ctor_set_tag(x_246, 7); -lean_ctor_set(x_246, 1, x_276); -lean_ctor_set(x_246, 0, x_269); -lean_inc_ref(x_1); -x_277 = l_Lean_MessageData_ofExpr(x_1); -x_278 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_278, 0, x_246); -lean_ctor_set(x_278, 1, x_277); -x_279 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_245, x_278, x_7, x_8, x_9, x_10, x_271); -x_280 = lean_ctor_get(x_279, 1); -lean_inc(x_280); -lean_dec_ref(x_279); -x_251 = x_233; -x_252 = x_3; -x_253 = x_4; -x_254 = x_5; -x_255 = x_6; -x_256 = x_7; -x_257 = x_8; -x_258 = x_9; -x_259 = x_10; -x_260 = x_280; -goto block_267; -} -else -{ -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; -x_281 = lean_ctor_get(x_269, 1); -lean_inc(x_281); -lean_dec(x_269); -x_282 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; -x_283 = l_Nat_reprFast(x_231); -lean_ctor_set_tag(x_235, 3); -lean_ctor_set(x_235, 0, x_283); -x_284 = l_Lean_MessageData_ofFormat(x_235); -x_285 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_285, 0, x_282); -lean_ctor_set(x_285, 1, x_284); -x_286 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -lean_ctor_set_tag(x_246, 7); -lean_ctor_set(x_246, 1, x_286); -lean_ctor_set(x_246, 0, x_285); -lean_inc_ref(x_1); -x_287 = l_Lean_MessageData_ofExpr(x_1); -x_288 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_288, 0, x_246); -lean_ctor_set(x_288, 1, x_287); -x_289 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_245, x_288, x_7, x_8, x_9, x_10, x_281); -x_290 = lean_ctor_get(x_289, 1); -lean_inc(x_290); -lean_dec_ref(x_289); -x_251 = x_233; -x_252 = x_3; -x_253 = x_4; -x_254 = x_5; -x_255 = x_6; -x_256 = x_7; -x_257 = x_8; -x_258 = x_9; -x_259 = x_10; -x_260 = x_290; -goto block_267; -} -} -else -{ -lean_dec_ref(x_250); -lean_free_object(x_246); -lean_free_object(x_235); -lean_dec_ref(x_233); -lean_dec(x_231); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_269; -} -} -block_267: -{ -lean_object* x_261; -lean_inc_ref(x_251); -lean_inc_ref(x_1); -x_261 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_251, x_252, x_253, x_254, x_255, x_256, x_257, x_258, x_259, x_260); -if (lean_obj_tag(x_261) == 0) -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; -x_262 = lean_ctor_get(x_261, 1); -lean_inc(x_262); -lean_dec_ref(x_261); -x_263 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_252); -x_264 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_263, x_1, x_252, x_253, x_254, x_255, x_256, x_257, x_258, x_259, x_262); -if (lean_obj_tag(x_264) == 0) -{ -lean_object* x_265; lean_object* x_266; -x_265 = lean_ctor_get(x_264, 1); -lean_inc(x_265); -lean_dec_ref(x_264); -x_266 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_250, x_251, x_252, x_265); -lean_dec(x_252); -return x_266; -} -else -{ -lean_dec(x_252); -lean_dec_ref(x_251); -lean_dec_ref(x_250); -return x_264; -} -} -else -{ -lean_dec(x_259); -lean_dec_ref(x_258); -lean_dec(x_257); -lean_dec_ref(x_256); -lean_dec(x_255); -lean_dec_ref(x_254); -lean_dec(x_253); -lean_dec(x_252); -lean_dec_ref(x_251); -lean_dec_ref(x_250); -lean_dec_ref(x_1); -return x_261; -} -} -} -else -{ -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; uint8_t x_311; -x_291 = lean_ctor_get(x_246, 0); -x_292 = lean_ctor_get(x_246, 1); -lean_inc(x_292); -lean_inc(x_291); -lean_dec(x_246); -lean_inc_ref(x_1); -x_293 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2), 3, 2); -lean_closure_set(x_293, 0, x_1); -lean_closure_set(x_293, 1, x_244); -x_311 = lean_unbox(x_291); -lean_dec(x_291); -if (x_311 == 0) -{ -lean_free_object(x_235); -lean_dec(x_231); -x_294 = x_233; -x_295 = x_3; -x_296 = x_4; -x_297 = x_5; -x_298 = x_6; -x_299 = x_7; -x_300 = x_8; -x_301 = x_9; -x_302 = x_10; -x_303 = x_292; -goto block_310; -} -else -{ -lean_object* x_312; -x_312 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_292); -if (lean_obj_tag(x_312) == 0) -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_313 = lean_ctor_get(x_312, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_312)) { - lean_ctor_release(x_312, 0); - lean_ctor_release(x_312, 1); - x_314 = x_312; -} else { - lean_dec_ref(x_312); - x_314 = lean_box(0); -} -x_315 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; -x_316 = l_Nat_reprFast(x_231); -lean_ctor_set_tag(x_235, 3); -lean_ctor_set(x_235, 0, x_316); -x_317 = l_Lean_MessageData_ofFormat(x_235); -if (lean_is_scalar(x_314)) { - x_318 = lean_alloc_ctor(7, 2, 0); -} else { - x_318 = x_314; - lean_ctor_set_tag(x_318, 7); -} -lean_ctor_set(x_318, 0, x_315); -lean_ctor_set(x_318, 1, x_317); -x_319 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -x_320 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_320, 0, x_318); -lean_ctor_set(x_320, 1, x_319); -lean_inc_ref(x_1); -x_321 = l_Lean_MessageData_ofExpr(x_1); -x_322 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_322, 0, x_320); -lean_ctor_set(x_322, 1, x_321); -x_323 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_245, x_322, x_7, x_8, x_9, x_10, x_313); -x_324 = lean_ctor_get(x_323, 1); -lean_inc(x_324); -lean_dec_ref(x_323); -x_294 = x_233; -x_295 = x_3; -x_296 = x_4; -x_297 = x_5; -x_298 = x_6; -x_299 = x_7; -x_300 = x_8; -x_301 = x_9; -x_302 = x_10; -x_303 = x_324; -goto block_310; -} -else -{ -lean_dec_ref(x_293); -lean_free_object(x_235); -lean_dec_ref(x_233); -lean_dec(x_231); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_312; -} -} -block_310: -{ -lean_object* x_304; -lean_inc_ref(x_294); -lean_inc_ref(x_1); -x_304 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_294, x_295, x_296, x_297, x_298, x_299, x_300, x_301, x_302, x_303); -if (lean_obj_tag(x_304) == 0) -{ -lean_object* x_305; lean_object* 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 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_295); -x_307 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_306, x_1, x_295, x_296, x_297, x_298, x_299, x_300, x_301, x_302, x_305); -if (lean_obj_tag(x_307) == 0) -{ -lean_object* x_308; lean_object* x_309; -x_308 = lean_ctor_get(x_307, 1); -lean_inc(x_308); -lean_dec_ref(x_307); -x_309 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_293, x_294, x_295, x_308); -lean_dec(x_295); -return x_309; -} -else -{ -lean_dec(x_295); -lean_dec_ref(x_294); -lean_dec_ref(x_293); -return x_307; -} -} -else -{ -lean_dec(x_302); -lean_dec_ref(x_301); -lean_dec(x_300); -lean_dec_ref(x_299); -lean_dec(x_298); -lean_dec_ref(x_297); -lean_dec(x_296); -lean_dec(x_295); -lean_dec_ref(x_294); -lean_dec_ref(x_293); -lean_dec_ref(x_1); -return x_304; -} -} -} -} -else -{ -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; uint8_t x_349; -x_325 = lean_ctor_get(x_235, 0); -lean_inc(x_325); -lean_dec(x_235); -x_326 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_327 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_326, x_9, x_242); -x_328 = lean_ctor_get(x_327, 0); -lean_inc(x_328); -x_329 = lean_ctor_get(x_327, 1); -lean_inc(x_329); -if (lean_is_exclusive(x_327)) { - lean_ctor_release(x_327, 0); - lean_ctor_release(x_327, 1); - x_330 = x_327; -} else { - lean_dec_ref(x_327); - x_330 = lean_box(0); -} -lean_inc_ref(x_1); -x_331 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2), 3, 2); -lean_closure_set(x_331, 0, x_1); -lean_closure_set(x_331, 1, x_325); -x_349 = lean_unbox(x_328); -lean_dec(x_328); -if (x_349 == 0) -{ -lean_dec(x_330); -lean_dec(x_231); -x_332 = x_233; -x_333 = x_3; -x_334 = x_4; -x_335 = x_5; -x_336 = x_6; -x_337 = x_7; -x_338 = x_8; -x_339 = x_9; -x_340 = x_10; -x_341 = x_329; -goto block_348; -} -else -{ -lean_object* x_350; -x_350 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_329); -if (lean_obj_tag(x_350) == 0) -{ -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; -x_351 = lean_ctor_get(x_350, 1); -lean_inc(x_351); -if (lean_is_exclusive(x_350)) { - lean_ctor_release(x_350, 0); - lean_ctor_release(x_350, 1); - x_352 = x_350; -} else { - lean_dec_ref(x_350); - x_352 = lean_box(0); -} -x_353 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; -x_354 = l_Nat_reprFast(x_231); -x_355 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_355, 0, x_354); -x_356 = l_Lean_MessageData_ofFormat(x_355); -if (lean_is_scalar(x_352)) { - x_357 = lean_alloc_ctor(7, 2, 0); -} else { - x_357 = x_352; - lean_ctor_set_tag(x_357, 7); -} -lean_ctor_set(x_357, 0, x_353); -lean_ctor_set(x_357, 1, x_356); -x_358 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -if (lean_is_scalar(x_330)) { - x_359 = lean_alloc_ctor(7, 2, 0); -} else { - x_359 = x_330; - lean_ctor_set_tag(x_359, 7); -} -lean_ctor_set(x_359, 0, x_357); -lean_ctor_set(x_359, 1, x_358); -lean_inc_ref(x_1); -x_360 = l_Lean_MessageData_ofExpr(x_1); -x_361 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_361, 0, x_359); -lean_ctor_set(x_361, 1, x_360); -x_362 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_326, x_361, x_7, x_8, x_9, x_10, x_351); -x_363 = lean_ctor_get(x_362, 1); -lean_inc(x_363); -lean_dec_ref(x_362); -x_332 = x_233; -x_333 = x_3; -x_334 = x_4; -x_335 = x_5; -x_336 = x_6; -x_337 = x_7; -x_338 = x_8; -x_339 = x_9; -x_340 = x_10; -x_341 = x_363; -goto block_348; -} -else -{ -lean_dec_ref(x_331); -lean_dec(x_330); -lean_dec_ref(x_233); -lean_dec(x_231); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_350; -} -} -block_348: -{ -lean_object* x_342; -lean_inc_ref(x_332); -lean_inc_ref(x_1); -x_342 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_332, x_333, x_334, x_335, x_336, x_337, x_338, x_339, x_340, x_341); -if (lean_obj_tag(x_342) == 0) -{ -lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_343 = lean_ctor_get(x_342, 1); -lean_inc(x_343); -lean_dec_ref(x_342); -x_344 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_333); -x_345 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_344, x_1, x_333, x_334, x_335, x_336, x_337, x_338, x_339, x_340, x_343); -if (lean_obj_tag(x_345) == 0) -{ -lean_object* x_346; lean_object* x_347; -x_346 = lean_ctor_get(x_345, 1); -lean_inc(x_346); -lean_dec_ref(x_345); -x_347 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_331, x_332, x_333, x_346); -lean_dec(x_333); -return x_347; -} -else -{ -lean_dec(x_333); -lean_dec_ref(x_332); -lean_dec_ref(x_331); -return x_345; -} -} -else -{ -lean_dec(x_340); -lean_dec_ref(x_339); -lean_dec(x_338); -lean_dec_ref(x_337); -lean_dec(x_336); -lean_dec_ref(x_335); +uint8_t x_337; lean_dec(x_334); -lean_dec(x_333); -lean_dec_ref(x_332); -lean_dec_ref(x_331); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); lean_dec_ref(x_1); +x_337 = !lean_is_exclusive(x_335); +if (x_337 == 0) +{ +lean_object* x_338; lean_object* x_339; +x_338 = lean_ctor_get(x_335, 0); +lean_dec(x_338); +x_339 = lean_box(0); +lean_ctor_set(x_335, 0, x_339); +return x_335; +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_340 = lean_ctor_get(x_335, 1); +lean_inc(x_340); +lean_dec(x_335); +x_341 = lean_box(0); +x_342 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_342, 0, x_341); +lean_ctor_set(x_342, 1, x_340); return x_342; } } -} -} -} else { -uint8_t x_364; -lean_dec_ref(x_233); -lean_dec(x_231); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_364 = !lean_is_exclusive(x_234); -if (x_364 == 0) +lean_object* x_343; uint8_t x_344; +x_343 = lean_ctor_get(x_335, 1); +lean_inc(x_343); +lean_dec_ref(x_335); +x_344 = !lean_is_exclusive(x_336); +if (x_344 == 0) { -return x_234; -} -else -{ -lean_object* x_365; lean_object* x_366; lean_object* x_367; -x_365 = lean_ctor_get(x_234, 0); -x_366 = lean_ctor_get(x_234, 1); +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_364; lean_object* x_365; lean_object* x_366; uint8_t x_367; +x_345 = lean_ctor_get(x_336, 0); +x_364 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_365 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_364, x_9, x_343); +x_366 = lean_ctor_get(x_365, 0); lean_inc(x_366); -lean_inc(x_365); -lean_dec(x_234); -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_365); -lean_ctor_set(x_367, 1, x_366); -return x_367; -} -} -} +x_367 = lean_unbox(x_366); +lean_dec(x_366); +if (x_367 == 0) +{ +lean_object* x_368; +lean_free_object(x_336); +x_368 = lean_ctor_get(x_365, 1); +lean_inc(x_368); +lean_dec_ref(x_365); +x_346 = x_334; +x_347 = x_3; +x_348 = x_4; +x_349 = x_5; +x_350 = x_6; +x_351 = x_7; +x_352 = x_8; +x_353 = x_9; +x_354 = x_10; +x_355 = x_368; +goto block_363; } else { -uint8_t x_368; -lean_dec(x_33); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_368 = !lean_is_exclusive(x_35); -if (x_368 == 0) +uint8_t x_369; +x_369 = !lean_is_exclusive(x_365); +if (x_369 == 0) { -return x_35; -} -else +lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_370 = lean_ctor_get(x_365, 1); +x_371 = lean_ctor_get(x_365, 0); +lean_dec(x_371); +x_372 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_370); +if (lean_obj_tag(x_372) == 0) { -lean_object* x_369; lean_object* x_370; lean_object* x_371; -x_369 = lean_ctor_get(x_35, 0); -x_370 = lean_ctor_get(x_35, 1); -lean_inc(x_370); -lean_inc(x_369); -lean_dec(x_35); -x_371 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_371, 0, x_369); -lean_ctor_set(x_371, 1, x_370); -return x_371; -} -} -} -else +uint8_t x_373; +x_373 = !lean_is_exclusive(x_372); +if (x_373 == 0) { -lean_object* x_372; -lean_dec(x_33); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_372 = lean_box(0); -lean_ctor_set(x_25, 0, x_372); -return x_25; -} -} -} -else -{ -lean_object* x_373; lean_object* x_374; -x_373 = lean_ctor_get(x_25, 1); -lean_inc(x_373); -lean_dec(x_25); +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; +x_374 = lean_ctor_get(x_372, 1); +x_375 = lean_ctor_get(x_372, 0); +lean_dec(x_375); +x_376 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; +lean_inc(x_334); +x_377 = l_Nat_reprFast(x_334); +lean_ctor_set_tag(x_336, 3); +lean_ctor_set(x_336, 0, x_377); +x_378 = l_Lean_MessageData_ofFormat(x_336); +lean_ctor_set_tag(x_372, 7); +lean_ctor_set(x_372, 1, x_378); +lean_ctor_set(x_372, 0, x_376); +x_379 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_365, 7); +lean_ctor_set(x_365, 1, x_379); +lean_ctor_set(x_365, 0, x_372); lean_inc_ref(x_1); -x_374 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f(x_1); -if (lean_obj_tag(x_374) == 0) -{ -lean_object* x_375; lean_object* x_376; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_375 = lean_box(0); -x_376 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_376, 0, x_375); -lean_ctor_set(x_376, 1, x_373); -return x_376; -} -else -{ -lean_object* x_377; uint8_t x_378; -x_377 = lean_ctor_get(x_374, 0); -lean_inc(x_377); -lean_dec_ref(x_374); -x_378 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isForbiddenParent(x_2); -if (x_378 == 0) -{ -lean_object* x_379; -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_4); -lean_inc(x_3); -lean_inc(x_377); -x_379 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_377, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_373); -if (lean_obj_tag(x_379) == 0) -{ -lean_object* x_380; -x_380 = lean_ctor_get(x_379, 0); -lean_inc(x_380); -if (lean_obj_tag(x_380) == 0) -{ -lean_object* x_381; lean_object* x_382; -x_381 = lean_ctor_get(x_379, 1); -lean_inc(x_381); -lean_dec_ref(x_379); -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_4); -lean_inc(x_3); -lean_inc(x_377); -x_382 = l_Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f(x_377, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_381); -if (lean_obj_tag(x_382) == 0) -{ -lean_object* x_383; -x_383 = lean_ctor_get(x_382, 0); +x_380 = l_Lean_MessageData_ofExpr(x_1); +x_381 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_381, 0, x_365); +lean_ctor_set(x_381, 1, x_380); +x_382 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_364, x_381, x_7, x_8, x_9, x_10, x_374); +x_383 = lean_ctor_get(x_382, 1); lean_inc(x_383); -if (lean_obj_tag(x_383) == 0) -{ -lean_object* x_384; lean_object* x_385; -x_384 = lean_ctor_get(x_382, 1); -lean_inc(x_384); lean_dec_ref(x_382); -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_4); -lean_inc(x_3); -x_385 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_377, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_384); -if (lean_obj_tag(x_385) == 0) +x_346 = x_334; +x_347 = x_3; +x_348 = x_4; +x_349 = x_5; +x_350 = x_6; +x_351 = x_7; +x_352 = x_8; +x_353 = x_9; +x_354 = x_10; +x_355 = x_383; +goto block_363; +} +else { -lean_object* x_386; -x_386 = lean_ctor_get(x_385, 0); -lean_inc(x_386); -if (lean_obj_tag(x_386) == 0) +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; +x_384 = lean_ctor_get(x_372, 1); +lean_inc(x_384); +lean_dec(x_372); +x_385 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; +lean_inc(x_334); +x_386 = l_Nat_reprFast(x_334); +lean_ctor_set_tag(x_336, 3); +lean_ctor_set(x_336, 0, x_386); +x_387 = l_Lean_MessageData_ofFormat(x_336); +x_388 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_388, 0, x_385); +lean_ctor_set(x_388, 1, x_387); +x_389 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_365, 7); +lean_ctor_set(x_365, 1, x_389); +lean_ctor_set(x_365, 0, x_388); +lean_inc_ref(x_1); +x_390 = l_Lean_MessageData_ofExpr(x_1); +x_391 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_391, 0, x_365); +lean_ctor_set(x_391, 1, x_390); +x_392 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_364, x_391, x_7, x_8, x_9, x_10, x_384); +x_393 = lean_ctor_get(x_392, 1); +lean_inc(x_393); +lean_dec_ref(x_392); +x_346 = x_334; +x_347 = x_3; +x_348 = x_4; +x_349 = x_5; +x_350 = x_6; +x_351 = x_7; +x_352 = x_8; +x_353 = x_9; +x_354 = x_10; +x_355 = x_393; +goto block_363; +} +} +else { -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; +lean_free_object(x_365); +lean_free_object(x_336); +lean_dec(x_345); +lean_dec(x_334); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -14421,169 +14830,73 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -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); +return x_372; } -x_389 = lean_box(0); -if (lean_is_scalar(x_388)) { - x_390 = lean_alloc_ctor(0, 2, 0); -} else { - x_390 = x_388; -} -lean_ctor_set(x_390, 0, x_389); -lean_ctor_set(x_390, 1, x_387); -return x_390; } else { -lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_391 = lean_ctor_get(x_385, 1); -lean_inc(x_391); -lean_dec_ref(x_385); -x_392 = lean_ctor_get(x_386, 0); -lean_inc(x_392); -lean_dec_ref(x_386); -x_393 = lean_unsigned_to_nat(0u); -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_4); -lean_inc(x_3); -lean_inc(x_392); -lean_inc_ref(x_1); -x_394 = l_Lean_Meta_Grind_Arith_CommRing_ncreify_x3f(x_1, x_14, x_393, x_392, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_391); -if (lean_obj_tag(x_394) == 0) -{ -lean_object* x_395; -x_395 = lean_ctor_get(x_394, 0); -lean_inc(x_395); +lean_object* x_394; lean_object* x_395; +x_394 = lean_ctor_get(x_365, 1); +lean_inc(x_394); +lean_dec(x_365); +x_395 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_394); if (lean_obj_tag(x_395) == 0) { -lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; -lean_dec(x_392); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_396 = lean_ctor_get(x_394, 1); +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; +x_396 = lean_ctor_get(x_395, 1); lean_inc(x_396); -if (lean_is_exclusive(x_394)) { - lean_ctor_release(x_394, 0); - lean_ctor_release(x_394, 1); - x_397 = x_394; +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_397 = x_395; } else { - lean_dec_ref(x_394); + lean_dec_ref(x_395); x_397 = lean_box(0); } -x_398 = lean_box(0); +x_398 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; +lean_inc(x_334); +x_399 = l_Nat_reprFast(x_334); +lean_ctor_set_tag(x_336, 3); +lean_ctor_set(x_336, 0, x_399); +x_400 = l_Lean_MessageData_ofFormat(x_336); if (lean_is_scalar(x_397)) { - x_399 = lean_alloc_ctor(0, 2, 0); + x_401 = lean_alloc_ctor(7, 2, 0); } else { - x_399 = x_397; + x_401 = x_397; + lean_ctor_set_tag(x_401, 7); } -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_399, 1, x_396); -return x_399; -} -else -{ -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; uint8_t x_424; -x_400 = lean_ctor_get(x_394, 1); -lean_inc(x_400); -lean_dec_ref(x_394); -x_401 = lean_ctor_get(x_395, 0); -lean_inc(x_401); -lean_dec_ref(x_395); -x_402 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_403 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__5___redArg(x_402, x_9, x_400); -x_404 = lean_ctor_get(x_403, 0); -lean_inc(x_404); -x_405 = lean_ctor_get(x_403, 1); -lean_inc(x_405); -lean_dec_ref(x_403); +lean_ctor_set(x_401, 0, x_398); +lean_ctor_set(x_401, 1, x_400); +x_402 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +x_403 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_403, 0, x_401); +lean_ctor_set(x_403, 1, x_402); lean_inc_ref(x_1); -x_406 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); -lean_closure_set(x_406, 0, x_1); -lean_closure_set(x_406, 1, x_401); -x_424 = lean_unbox(x_404); -lean_dec(x_404); -if (x_424 == 0) -{ -x_407 = x_392; -x_408 = x_3; -x_409 = x_4; -x_410 = x_5; -x_411 = x_6; -x_412 = x_7; -x_413 = x_8; -x_414 = x_9; -x_415 = x_10; -x_416 = x_405; -goto block_423; -} -else -{ -lean_object* x_425; -x_425 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_405); -if (lean_obj_tag(x_425) == 0) -{ -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; -x_426 = lean_ctor_get(x_425, 1); -lean_inc(x_426); -if (lean_is_exclusive(x_425)) { - lean_ctor_release(x_425, 0); - lean_ctor_release(x_425, 1); - x_427 = x_425; -} else { - lean_dec_ref(x_425); - x_427 = lean_box(0); -} -x_428 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; -lean_inc_ref(x_1); -x_429 = l_Lean_MessageData_ofExpr(x_1); -if (lean_is_scalar(x_427)) { - x_430 = lean_alloc_ctor(7, 2, 0); -} else { - x_430 = x_427; - lean_ctor_set_tag(x_430, 7); -} -lean_ctor_set(x_430, 0, x_428); -lean_ctor_set(x_430, 1, x_429); -x_431 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_402, x_430, x_7, x_8, x_9, x_10, x_426); -x_432 = lean_ctor_get(x_431, 1); -lean_inc(x_432); -lean_dec_ref(x_431); -x_407 = x_392; -x_408 = x_3; -x_409 = x_4; -x_410 = x_5; -x_411 = x_6; -x_412 = x_7; -x_413 = x_8; -x_414 = x_9; -x_415 = x_10; -x_416 = x_432; -goto block_423; -} -else -{ +x_404 = l_Lean_MessageData_ofExpr(x_1); +x_405 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_405, 0, x_403); +lean_ctor_set(x_405, 1, x_404); +x_406 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_364, x_405, x_7, x_8, x_9, x_10, x_396); +x_407 = lean_ctor_get(x_406, 1); +lean_inc(x_407); lean_dec_ref(x_406); -lean_dec(x_392); +x_346 = x_334; +x_347 = x_3; +x_348 = x_4; +x_349 = x_5; +x_350 = x_6; +x_351 = x_7; +x_352 = x_8; +x_353 = x_9; +x_354 = x_10; +x_355 = x_407; +goto block_363; +} +else +{ +lean_free_object(x_336); +lean_dec(x_345); +lean_dec(x_334); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -14593,64 +14906,246 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); +return x_395; +} +} +} +block_363: +{ +lean_object* x_356; +lean_inc(x_346); +lean_inc_ref(x_1); +x_356 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_346, x_347, x_348, x_349, x_350, x_351, x_352, x_353, x_354, x_355); +if (lean_obj_tag(x_356) == 0) +{ +lean_object* x_357; lean_object* x_358; lean_object* x_359; +x_357 = lean_ctor_get(x_356, 1); +lean_inc(x_357); +lean_dec_ref(x_356); +x_358 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_347); +lean_inc_ref(x_1); +x_359 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_358, x_1, x_347, x_348, x_349, x_350, x_351, x_352, x_353, x_354, x_357); +if (lean_obj_tag(x_359) == 0) +{ +lean_object* x_360; lean_object* x_361; lean_object* x_362; +x_360 = lean_ctor_get(x_359, 1); +lean_inc(x_360); +lean_dec_ref(x_359); +x_361 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2___boxed), 4, 3); +lean_closure_set(x_361, 0, x_346); +lean_closure_set(x_361, 1, x_1); +lean_closure_set(x_361, 2, x_345); +x_362 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_358, x_361, x_347, x_360); +lean_dec(x_347); +return x_362; +} +else +{ +lean_dec(x_347); +lean_dec(x_346); +lean_dec(x_345); +lean_dec_ref(x_1); +return x_359; +} +} +else +{ +lean_dec(x_354); +lean_dec_ref(x_353); +lean_dec(x_352); +lean_dec_ref(x_351); +lean_dec(x_350); +lean_dec_ref(x_349); +lean_dec(x_348); +lean_dec(x_347); +lean_dec(x_346); +lean_dec(x_345); +lean_dec_ref(x_1); +return x_356; +} +} +} +else +{ +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_427; lean_object* x_428; lean_object* x_429; uint8_t x_430; +x_408 = lean_ctor_get(x_336, 0); +lean_inc(x_408); +lean_dec(x_336); +x_427 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_428 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_427, x_9, x_343); +x_429 = lean_ctor_get(x_428, 0); +lean_inc(x_429); +x_430 = lean_unbox(x_429); +lean_dec(x_429); +if (x_430 == 0) +{ +lean_object* x_431; +x_431 = lean_ctor_get(x_428, 1); +lean_inc(x_431); +lean_dec_ref(x_428); +x_409 = x_334; +x_410 = x_3; +x_411 = x_4; +x_412 = x_5; +x_413 = x_6; +x_414 = x_7; +x_415 = x_8; +x_416 = x_9; +x_417 = x_10; +x_418 = x_431; +goto block_426; +} +else +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_432 = lean_ctor_get(x_428, 1); +lean_inc(x_432); +if (lean_is_exclusive(x_428)) { + lean_ctor_release(x_428, 0); + lean_ctor_release(x_428, 1); + x_433 = x_428; +} else { + lean_dec_ref(x_428); + x_433 = lean_box(0); +} +x_434 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_432); +if (lean_obj_tag(x_434) == 0) +{ +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; +x_435 = lean_ctor_get(x_434, 1); +lean_inc(x_435); +if (lean_is_exclusive(x_434)) { + lean_ctor_release(x_434, 0); + lean_ctor_release(x_434, 1); + x_436 = x_434; +} else { + lean_dec_ref(x_434); + x_436 = lean_box(0); +} +x_437 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; +lean_inc(x_334); +x_438 = l_Nat_reprFast(x_334); +x_439 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_439, 0, x_438); +x_440 = l_Lean_MessageData_ofFormat(x_439); +if (lean_is_scalar(x_436)) { + x_441 = lean_alloc_ctor(7, 2, 0); +} else { + x_441 = x_436; + lean_ctor_set_tag(x_441, 7); +} +lean_ctor_set(x_441, 0, x_437); +lean_ctor_set(x_441, 1, x_440); +x_442 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_433)) { + x_443 = lean_alloc_ctor(7, 2, 0); +} else { + x_443 = x_433; + lean_ctor_set_tag(x_443, 7); +} +lean_ctor_set(x_443, 0, x_441); +lean_ctor_set(x_443, 1, x_442); +lean_inc_ref(x_1); +x_444 = l_Lean_MessageData_ofExpr(x_1); +x_445 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_445, 0, x_443); +lean_ctor_set(x_445, 1, x_444); +x_446 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_427, x_445, x_7, x_8, x_9, x_10, x_435); +x_447 = lean_ctor_get(x_446, 1); +lean_inc(x_447); +lean_dec_ref(x_446); +x_409 = x_334; +x_410 = x_3; +x_411 = x_4; +x_412 = x_5; +x_413 = x_6; +x_414 = x_7; +x_415 = x_8; +x_416 = x_9; +x_417 = x_10; +x_418 = x_447; +goto block_426; +} +else +{ +lean_dec(x_433); +lean_dec(x_408); +lean_dec(x_334); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_434; +} +} +block_426: +{ +lean_object* x_419; +lean_inc(x_409); +lean_inc_ref(x_1); +x_419 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_409, x_410, x_411, x_412, x_413, x_414, x_415, x_416, x_417, x_418); +if (lean_obj_tag(x_419) == 0) +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_420 = lean_ctor_get(x_419, 1); +lean_inc(x_420); +lean_dec_ref(x_419); +x_421 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_410); +lean_inc_ref(x_1); +x_422 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_421, x_1, x_410, x_411, x_412, x_413, x_414, x_415, x_416, x_417, x_420); +if (lean_obj_tag(x_422) == 0) +{ +lean_object* x_423; lean_object* x_424; lean_object* x_425; +x_423 = lean_ctor_get(x_422, 1); +lean_inc(x_423); +lean_dec_ref(x_422); +x_424 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2___boxed), 4, 3); +lean_closure_set(x_424, 0, x_409); +lean_closure_set(x_424, 1, x_1); +lean_closure_set(x_424, 2, x_408); +x_425 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_421, x_424, x_410, x_423); +lean_dec(x_410); return x_425; } -} -block_423: +else { -lean_object* x_417; -lean_inc(x_407); -lean_inc_ref(x_1); -x_417 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_407, x_408, x_409, x_410, x_411, x_412, x_413, x_414, x_415, x_416); -if (lean_obj_tag(x_417) == 0) -{ -lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_418 = lean_ctor_get(x_417, 1); -lean_inc(x_418); -lean_dec_ref(x_417); -x_419 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_408); -x_420 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_419, x_1, x_408, x_409, x_410, x_411, x_412, x_413, x_414, x_415, x_418); -if (lean_obj_tag(x_420) == 0) -{ -lean_object* x_421; lean_object* x_422; -x_421 = lean_ctor_get(x_420, 1); -lean_inc(x_421); -lean_dec_ref(x_420); -x_422 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_406, x_407, x_408, x_421); +lean_dec(x_410); +lean_dec(x_409); lean_dec(x_408); +lean_dec_ref(x_1); return x_422; } -else -{ -lean_dec(x_408); -lean_dec(x_407); -lean_dec_ref(x_406); -return x_420; -} } else { +lean_dec(x_417); +lean_dec_ref(x_416); lean_dec(x_415); lean_dec_ref(x_414); lean_dec(x_413); lean_dec_ref(x_412); lean_dec(x_411); -lean_dec_ref(x_410); +lean_dec(x_410); lean_dec(x_409); lean_dec(x_408); -lean_dec(x_407); -lean_dec_ref(x_406); lean_dec_ref(x_1); -return x_417; +return x_419; +} } } } } else { -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; -lean_dec(x_392); +uint8_t x_448; +lean_dec(x_334); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -14660,32 +15155,31 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_433 = lean_ctor_get(x_394, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_394, 1); -lean_inc(x_434); -if (lean_is_exclusive(x_394)) { - lean_ctor_release(x_394, 0); - lean_ctor_release(x_394, 1); - x_435 = x_394; -} else { - lean_dec_ref(x_394); - x_435 = lean_box(0); +x_448 = !lean_is_exclusive(x_335); +if (x_448 == 0) +{ +return x_335; } -if (lean_is_scalar(x_435)) { - x_436 = lean_alloc_ctor(1, 2, 0); -} else { - x_436 = x_435; +else +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_449 = lean_ctor_get(x_335, 0); +x_450 = lean_ctor_get(x_335, 1); +lean_inc(x_450); +lean_inc(x_449); +lean_dec(x_335); +x_451 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_451, 0, x_449); +lean_ctor_set(x_451, 1, x_450); +return x_451; } -lean_ctor_set(x_436, 0, x_433); -lean_ctor_set(x_436, 1, x_434); -return x_436; } } } else { -lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; +uint8_t x_452; +lean_dec(x_33); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -14695,38 +15189,41 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_437 = lean_ctor_get(x_385, 0); -lean_inc(x_437); -x_438 = lean_ctor_get(x_385, 1); -lean_inc(x_438); -if (lean_is_exclusive(x_385)) { - lean_ctor_release(x_385, 0); - lean_ctor_release(x_385, 1); - x_439 = x_385; -} else { - lean_dec_ref(x_385); - x_439 = lean_box(0); +x_452 = !lean_is_exclusive(x_38); +if (x_452 == 0) +{ +return x_38; } -if (lean_is_scalar(x_439)) { - x_440 = lean_alloc_ctor(1, 2, 0); -} else { - x_440 = x_439; +else +{ +lean_object* x_453; lean_object* x_454; lean_object* x_455; +x_453 = lean_ctor_get(x_38, 0); +x_454 = lean_ctor_get(x_38, 1); +lean_inc(x_454); +lean_inc(x_453); +lean_dec(x_38); +x_455 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_455, 0, x_453); +lean_ctor_set(x_455, 1, x_454); +return x_455; } -lean_ctor_set(x_440, 0, x_437); -lean_ctor_set(x_440, 1, x_438); -return x_440; } } else { -lean_object* x_441; lean_object* x_442; lean_object* x_443; -lean_dec(x_377); -x_441 = lean_ctor_get(x_382, 1); -lean_inc(x_441); -lean_dec_ref(x_382); -x_442 = lean_ctor_get(x_383, 0); -lean_inc(x_442); -lean_dec_ref(x_383); +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; +lean_dec(x_33); +x_456 = lean_ctor_get(x_35, 1); +lean_inc(x_456); +lean_dec_ref(x_35); +x_457 = lean_ctor_get(x_36, 0); +lean_inc(x_457); +lean_dec_ref(x_36); +x_458 = lean_unsigned_to_nat(0u); +lean_inc(x_457); +x_459 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_459, 0, x_457); +lean_ctor_set_uint8(x_459, sizeof(void*)*1, x_34); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -14735,18 +15232,19 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_442); +lean_inc_ref(x_459); lean_inc_ref(x_1); -x_443 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f(x_1, x_442, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_441); -if (lean_obj_tag(x_443) == 0) +x_460 = l_Lean_Meta_Grind_Arith_CommRing_reify_x3f(x_1, x_14, x_458, x_459, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_456); +if (lean_obj_tag(x_460) == 0) { -lean_object* x_444; -x_444 = lean_ctor_get(x_443, 0); -lean_inc(x_444); -if (lean_obj_tag(x_444) == 0) +lean_object* x_461; +x_461 = lean_ctor_get(x_460, 0); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) { -lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; -lean_dec(x_442); +uint8_t x_462; +lean_dec_ref(x_459); +lean_dec(x_457); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -14756,221 +15254,165 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_445 = lean_ctor_get(x_443, 1); -lean_inc(x_445); -if (lean_is_exclusive(x_443)) { - lean_ctor_release(x_443, 0); - lean_ctor_release(x_443, 1); - x_446 = x_443; -} else { - lean_dec_ref(x_443); - x_446 = lean_box(0); -} -x_447 = lean_box(0); -if (lean_is_scalar(x_446)) { - x_448 = lean_alloc_ctor(0, 2, 0); -} else { - x_448 = x_446; -} -lean_ctor_set(x_448, 0, x_447); -lean_ctor_set(x_448, 1, x_445); -return x_448; +x_462 = !lean_is_exclusive(x_460); +if (x_462 == 0) +{ +lean_object* x_463; lean_object* x_464; +x_463 = lean_ctor_get(x_460, 0); +lean_dec(x_463); +x_464 = lean_box(0); +lean_ctor_set(x_460, 0, x_464); +return x_460; } else { -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_470; lean_object* x_471; lean_object* x_472; uint8_t x_473; -x_449 = lean_ctor_get(x_443, 1); -lean_inc(x_449); -lean_dec_ref(x_443); -x_450 = lean_ctor_get(x_444, 0); -lean_inc(x_450); -if (lean_is_exclusive(x_444)) { - lean_ctor_release(x_444, 0); - x_451 = x_444; -} else { - lean_dec_ref(x_444); - x_451 = lean_box(0); +lean_object* x_465; lean_object* x_466; lean_object* x_467; +x_465 = lean_ctor_get(x_460, 1); +lean_inc(x_465); +lean_dec(x_460); +x_466 = lean_box(0); +x_467 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_467, 0, x_466); +lean_ctor_set(x_467, 1, x_465); +return x_467; } -x_470 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_471 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_470, x_9, x_449); -x_472 = lean_ctor_get(x_471, 0); -lean_inc(x_472); -x_473 = lean_unbox(x_472); -lean_dec(x_472); +} +else +{ +lean_object* x_468; uint8_t x_469; +x_468 = lean_ctor_get(x_460, 1); +lean_inc(x_468); +lean_dec_ref(x_460); +x_469 = !lean_is_exclusive(x_461); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; uint8_t x_473; +x_470 = lean_ctor_get(x_461, 0); +x_471 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_472 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(x_471, x_9, x_468); +x_473 = !lean_is_exclusive(x_472); if (x_473 == 0) { -lean_object* x_474; -lean_dec(x_451); -x_474 = lean_ctor_get(x_471, 1); -lean_inc(x_474); -lean_dec_ref(x_471); -x_452 = x_442; -x_453 = x_3; -x_454 = x_4; -x_455 = x_5; -x_456 = x_6; -x_457 = x_7; -x_458 = x_8; -x_459 = x_9; -x_460 = x_10; -x_461 = x_474; -goto block_469; -} -else -{ -lean_object* x_475; lean_object* x_476; lean_object* x_477; -x_475 = lean_ctor_get(x_471, 1); -lean_inc(x_475); -if (lean_is_exclusive(x_471)) { - lean_ctor_release(x_471, 0); - lean_ctor_release(x_471, 1); - x_476 = x_471; -} else { - lean_dec_ref(x_471); - x_476 = lean_box(0); -} -x_477 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_475); -if (lean_obj_tag(x_477) == 0) -{ -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; -x_478 = lean_ctor_get(x_477, 1); -lean_inc(x_478); -if (lean_is_exclusive(x_477)) { - lean_ctor_release(x_477, 0); - lean_ctor_release(x_477, 1); - x_479 = x_477; -} else { - lean_dec_ref(x_477); - x_479 = lean_box(0); -} -x_480 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; -lean_inc(x_442); -x_481 = l_Nat_reprFast(x_442); -if (lean_is_scalar(x_451)) { - x_482 = lean_alloc_ctor(3, 1, 0); -} else { - x_482 = x_451; - lean_ctor_set_tag(x_482, 3); -} -lean_ctor_set(x_482, 0, x_481); -x_483 = l_Lean_MessageData_ofFormat(x_482); -if (lean_is_scalar(x_479)) { - x_484 = lean_alloc_ctor(7, 2, 0); -} else { - x_484 = x_479; - lean_ctor_set_tag(x_484, 7); -} -lean_ctor_set(x_484, 0, x_480); -lean_ctor_set(x_484, 1, x_483); -x_485 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -if (lean_is_scalar(x_476)) { - x_486 = lean_alloc_ctor(7, 2, 0); -} else { - x_486 = x_476; - lean_ctor_set_tag(x_486, 7); -} -lean_ctor_set(x_486, 0, x_484); -lean_ctor_set(x_486, 1, x_485); +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; uint8_t x_494; +x_474 = lean_ctor_get(x_472, 0); +x_475 = lean_ctor_get(x_472, 1); lean_inc_ref(x_1); -x_487 = l_Lean_MessageData_ofExpr(x_1); -x_488 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_488, 0, x_486); -lean_ctor_set(x_488, 1, x_487); -x_489 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_470, x_488, x_7, x_8, x_9, x_10, x_478); -x_490 = lean_ctor_get(x_489, 1); -lean_inc(x_490); -lean_dec_ref(x_489); -x_452 = x_442; -x_453 = x_3; -x_454 = x_4; -x_455 = x_5; -x_456 = x_6; -x_457 = x_7; -x_458 = x_8; -x_459 = x_9; -x_460 = x_10; -x_461 = x_490; -goto block_469; +x_476 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__3), 3, 2); +lean_closure_set(x_476, 0, x_1); +lean_closure_set(x_476, 1, x_470); +x_494 = lean_unbox(x_474); +lean_dec(x_474); +if (x_494 == 0) +{ +lean_free_object(x_472); +lean_free_object(x_461); +lean_dec(x_457); +x_477 = x_459; +x_478 = x_3; +x_479 = x_4; +x_480 = x_5; +x_481 = x_6; +x_482 = x_7; +x_483 = x_8; +x_484 = x_9; +x_485 = x_10; +x_486 = x_475; +goto block_493; } else { -lean_dec(x_476); -lean_dec(x_451); -lean_dec(x_450); -lean_dec(x_442); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_477; -} -} -block_469: +lean_object* x_495; +x_495 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_475); +if (lean_obj_tag(x_495) == 0) { -lean_object* x_462; -lean_inc(x_452); +uint8_t x_496; +x_496 = !lean_is_exclusive(x_495); +if (x_496 == 0) +{ +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; +x_497 = lean_ctor_get(x_495, 1); +x_498 = lean_ctor_get(x_495, 0); +lean_dec(x_498); +x_499 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14; +x_500 = l_Nat_reprFast(x_457); +lean_ctor_set_tag(x_461, 3); +lean_ctor_set(x_461, 0, x_500); +x_501 = l_Lean_MessageData_ofFormat(x_461); +lean_ctor_set_tag(x_495, 7); +lean_ctor_set(x_495, 1, x_501); +lean_ctor_set(x_495, 0, x_499); +x_502 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_472, 7); +lean_ctor_set(x_472, 1, x_502); +lean_ctor_set(x_472, 0, x_495); lean_inc_ref(x_1); -x_462 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_452, x_453, x_454, x_455, x_456, x_457, x_458, x_459, x_460, x_461); -if (lean_obj_tag(x_462) == 0) +x_503 = l_Lean_MessageData_ofExpr(x_1); +x_504 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_504, 0, x_472); +lean_ctor_set(x_504, 1, x_503); +x_505 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_471, x_504, x_7, x_8, x_9, x_10, x_497); +x_506 = lean_ctor_get(x_505, 1); +lean_inc(x_506); +lean_dec_ref(x_505); +x_477 = x_459; +x_478 = x_3; +x_479 = x_4; +x_480 = x_5; +x_481 = x_6; +x_482 = x_7; +x_483 = x_8; +x_484 = x_9; +x_485 = x_10; +x_486 = x_506; +goto block_493; +} +else { -lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_463 = lean_ctor_get(x_462, 1); -lean_inc(x_463); -lean_dec_ref(x_462); -x_464 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_453); +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; +x_507 = lean_ctor_get(x_495, 1); +lean_inc(x_507); +lean_dec(x_495); +x_508 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14; +x_509 = l_Nat_reprFast(x_457); +lean_ctor_set_tag(x_461, 3); +lean_ctor_set(x_461, 0, x_509); +x_510 = l_Lean_MessageData_ofFormat(x_461); +x_511 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_511, 0, x_508); +lean_ctor_set(x_511, 1, x_510); +x_512 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +lean_ctor_set_tag(x_472, 7); +lean_ctor_set(x_472, 1, x_512); +lean_ctor_set(x_472, 0, x_511); lean_inc_ref(x_1); -x_465 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_464, x_1, x_453, x_454, x_455, x_456, x_457, x_458, x_459, x_460, x_463); -if (lean_obj_tag(x_465) == 0) -{ -lean_object* x_466; lean_object* x_467; lean_object* x_468; -x_466 = lean_ctor_get(x_465, 1); -lean_inc(x_466); -lean_dec_ref(x_465); -x_467 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1___boxed), 4, 3); -lean_closure_set(x_467, 0, x_452); -lean_closure_set(x_467, 1, x_1); -lean_closure_set(x_467, 2, x_450); -x_468 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_464, x_467, x_453, x_466); -lean_dec(x_453); -return x_468; -} -else -{ -lean_dec(x_453); -lean_dec(x_452); -lean_dec(x_450); -lean_dec_ref(x_1); -return x_465; +x_513 = l_Lean_MessageData_ofExpr(x_1); +x_514 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_514, 0, x_472); +lean_ctor_set(x_514, 1, x_513); +x_515 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_471, x_514, x_7, x_8, x_9, x_10, x_507); +x_516 = lean_ctor_get(x_515, 1); +lean_inc(x_516); +lean_dec_ref(x_515); +x_477 = x_459; +x_478 = x_3; +x_479 = x_4; +x_480 = x_5; +x_481 = x_6; +x_482 = x_7; +x_483 = x_8; +x_484 = x_9; +x_485 = x_10; +x_486 = x_516; +goto block_493; } } else { -lean_dec(x_460); +lean_dec_ref(x_476); +lean_free_object(x_472); +lean_free_object(x_461); lean_dec_ref(x_459); -lean_dec(x_458); -lean_dec_ref(x_457); -lean_dec(x_456); -lean_dec_ref(x_455); -lean_dec(x_454); -lean_dec(x_453); -lean_dec(x_452); -lean_dec(x_450); -lean_dec_ref(x_1); -return x_462; -} -} -} -} -else -{ -lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; -lean_dec(x_442); +lean_dec(x_457); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -14980,33 +15422,150 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_491 = lean_ctor_get(x_443, 0); +return x_495; +} +} +block_493: +{ +lean_object* x_487; +lean_inc_ref(x_477); +lean_inc_ref(x_1); +x_487 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_477, x_478, x_479, x_480, x_481, x_482, x_483, x_484, x_485, x_486); +if (lean_obj_tag(x_487) == 0) +{ +lean_object* x_488; lean_object* x_489; lean_object* x_490; +x_488 = lean_ctor_get(x_487, 1); +lean_inc(x_488); +lean_dec_ref(x_487); +x_489 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_478); +x_490 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_489, x_1, x_478, x_479, x_480, x_481, x_482, x_483, x_484, x_485, x_488); +if (lean_obj_tag(x_490) == 0) +{ +lean_object* x_491; lean_object* x_492; +x_491 = lean_ctor_get(x_490, 1); lean_inc(x_491); -x_492 = lean_ctor_get(x_443, 1); -lean_inc(x_492); -if (lean_is_exclusive(x_443)) { - lean_ctor_release(x_443, 0); - lean_ctor_release(x_443, 1); - x_493 = x_443; -} else { - lean_dec_ref(x_443); - x_493 = lean_box(0); +lean_dec_ref(x_490); +x_492 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_476, x_477, x_478, x_491); +lean_dec(x_478); +return x_492; } -if (lean_is_scalar(x_493)) { - x_494 = lean_alloc_ctor(1, 2, 0); -} else { - x_494 = x_493; +else +{ +lean_dec(x_478); +lean_dec_ref(x_477); +lean_dec_ref(x_476); +return x_490; } -lean_ctor_set(x_494, 0, x_491); -lean_ctor_set(x_494, 1, x_492); -return x_494; +} +else +{ +lean_dec(x_485); +lean_dec_ref(x_484); +lean_dec(x_483); +lean_dec_ref(x_482); +lean_dec(x_481); +lean_dec_ref(x_480); +lean_dec(x_479); +lean_dec(x_478); +lean_dec_ref(x_477); +lean_dec_ref(x_476); +lean_dec_ref(x_1); +return x_487; } } } else { -lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; -lean_dec(x_377); +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; uint8_t x_537; +x_517 = lean_ctor_get(x_472, 0); +x_518 = lean_ctor_get(x_472, 1); +lean_inc(x_518); +lean_inc(x_517); +lean_dec(x_472); +lean_inc_ref(x_1); +x_519 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__3), 3, 2); +lean_closure_set(x_519, 0, x_1); +lean_closure_set(x_519, 1, x_470); +x_537 = lean_unbox(x_517); +lean_dec(x_517); +if (x_537 == 0) +{ +lean_free_object(x_461); +lean_dec(x_457); +x_520 = x_459; +x_521 = x_3; +x_522 = x_4; +x_523 = x_5; +x_524 = x_6; +x_525 = x_7; +x_526 = x_8; +x_527 = x_9; +x_528 = x_10; +x_529 = x_518; +goto block_536; +} +else +{ +lean_object* x_538; +x_538 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_518); +if (lean_obj_tag(x_538) == 0) +{ +lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; +x_539 = lean_ctor_get(x_538, 1); +lean_inc(x_539); +if (lean_is_exclusive(x_538)) { + lean_ctor_release(x_538, 0); + lean_ctor_release(x_538, 1); + x_540 = x_538; +} else { + lean_dec_ref(x_538); + x_540 = lean_box(0); +} +x_541 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14; +x_542 = l_Nat_reprFast(x_457); +lean_ctor_set_tag(x_461, 3); +lean_ctor_set(x_461, 0, x_542); +x_543 = l_Lean_MessageData_ofFormat(x_461); +if (lean_is_scalar(x_540)) { + x_544 = lean_alloc_ctor(7, 2, 0); +} else { + x_544 = x_540; + lean_ctor_set_tag(x_544, 7); +} +lean_ctor_set(x_544, 0, x_541); +lean_ctor_set(x_544, 1, x_543); +x_545 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +x_546 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_546, 0, x_544); +lean_ctor_set(x_546, 1, x_545); +lean_inc_ref(x_1); +x_547 = l_Lean_MessageData_ofExpr(x_1); +x_548 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_548, 0, x_546); +lean_ctor_set(x_548, 1, x_547); +x_549 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_471, x_548, x_7, x_8, x_9, x_10, x_539); +x_550 = lean_ctor_get(x_549, 1); +lean_inc(x_550); +lean_dec_ref(x_549); +x_520 = x_459; +x_521 = x_3; +x_522 = x_4; +x_523 = x_5; +x_524 = x_6; +x_525 = x_7; +x_526 = x_8; +x_527 = x_9; +x_528 = x_10; +x_529 = x_550; +goto block_536; +} +else +{ +lean_dec_ref(x_519); +lean_free_object(x_461); +lean_dec_ref(x_459); +lean_dec(x_457); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -15016,507 +15575,330 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_495 = lean_ctor_get(x_382, 0); -lean_inc(x_495); -x_496 = lean_ctor_get(x_382, 1); -lean_inc(x_496); -if (lean_is_exclusive(x_382)) { - lean_ctor_release(x_382, 0); - lean_ctor_release(x_382, 1); - x_497 = x_382; -} else { - lean_dec_ref(x_382); - x_497 = lean_box(0); +return x_538; } -if (lean_is_scalar(x_497)) { - x_498 = lean_alloc_ctor(1, 2, 0); -} else { - x_498 = x_497; -} -lean_ctor_set(x_498, 0, x_495); -lean_ctor_set(x_498, 1, x_496); -return x_498; } +block_536: +{ +lean_object* x_530; +lean_inc_ref(x_520); +lean_inc_ref(x_1); +x_530 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_520, x_521, x_522, x_523, x_524, x_525, x_526, x_527, x_528, x_529); +if (lean_obj_tag(x_530) == 0) +{ +lean_object* x_531; lean_object* x_532; lean_object* x_533; +x_531 = lean_ctor_get(x_530, 1); +lean_inc(x_531); +lean_dec_ref(x_530); +x_532 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_521); +x_533 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_532, x_1, x_521, x_522, x_523, x_524, x_525, x_526, x_527, x_528, x_531); +if (lean_obj_tag(x_533) == 0) +{ +lean_object* x_534; lean_object* x_535; +x_534 = lean_ctor_get(x_533, 1); +lean_inc(x_534); +lean_dec_ref(x_533); +x_535 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_519, x_520, x_521, x_534); +lean_dec(x_521); +return x_535; } else { -lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; -lean_dec(x_377); -x_499 = lean_ctor_get(x_379, 1); -lean_inc(x_499); -lean_dec_ref(x_379); -x_500 = lean_ctor_get(x_380, 0); -lean_inc(x_500); -lean_dec_ref(x_380); -x_501 = lean_unsigned_to_nat(0u); -lean_inc(x_500); -x_502 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_502, 0, x_500); -lean_ctor_set_uint8(x_502, sizeof(void*)*1, x_378); -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_4); -lean_inc(x_3); -lean_inc_ref(x_502); -lean_inc_ref(x_1); -x_503 = l_Lean_Meta_Grind_Arith_CommRing_reify_x3f(x_1, x_14, x_501, x_502, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_499); -if (lean_obj_tag(x_503) == 0) -{ -lean_object* x_504; -x_504 = lean_ctor_get(x_503, 0); -lean_inc(x_504); -if (lean_obj_tag(x_504) == 0) -{ -lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; -lean_dec_ref(x_502); -lean_dec(x_500); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_505 = lean_ctor_get(x_503, 1); -lean_inc(x_505); -if (lean_is_exclusive(x_503)) { - lean_ctor_release(x_503, 0); - lean_ctor_release(x_503, 1); - x_506 = x_503; -} else { - lean_dec_ref(x_503); - x_506 = lean_box(0); -} -x_507 = lean_box(0); -if (lean_is_scalar(x_506)) { - x_508 = lean_alloc_ctor(0, 2, 0); -} else { - x_508 = x_506; -} -lean_ctor_set(x_508, 0, x_507); -lean_ctor_set(x_508, 1, x_505); -return x_508; -} -else -{ -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; uint8_t x_535; -x_509 = lean_ctor_get(x_503, 1); -lean_inc(x_509); -lean_dec_ref(x_503); -x_510 = lean_ctor_get(x_504, 0); -lean_inc(x_510); -if (lean_is_exclusive(x_504)) { - lean_ctor_release(x_504, 0); - x_511 = x_504; -} else { - lean_dec_ref(x_504); - x_511 = lean_box(0); -} -x_512 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_513 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_512, x_9, x_509); -x_514 = lean_ctor_get(x_513, 0); -lean_inc(x_514); -x_515 = lean_ctor_get(x_513, 1); -lean_inc(x_515); -if (lean_is_exclusive(x_513)) { - lean_ctor_release(x_513, 0); - lean_ctor_release(x_513, 1); - x_516 = x_513; -} else { - lean_dec_ref(x_513); - x_516 = lean_box(0); -} -lean_inc_ref(x_1); -x_517 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2), 3, 2); -lean_closure_set(x_517, 0, x_1); -lean_closure_set(x_517, 1, x_510); -x_535 = lean_unbox(x_514); -lean_dec(x_514); -if (x_535 == 0) -{ -lean_dec(x_516); -lean_dec(x_511); -lean_dec(x_500); -x_518 = x_502; -x_519 = x_3; -x_520 = x_4; -x_521 = x_5; -x_522 = x_6; -x_523 = x_7; -x_524 = x_8; -x_525 = x_9; -x_526 = x_10; -x_527 = x_515; -goto block_534; -} -else -{ -lean_object* x_536; -x_536 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_515); -if (lean_obj_tag(x_536) == 0) -{ -lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; -x_537 = lean_ctor_get(x_536, 1); -lean_inc(x_537); -if (lean_is_exclusive(x_536)) { - lean_ctor_release(x_536, 0); - lean_ctor_release(x_536, 1); - x_538 = x_536; -} else { - lean_dec_ref(x_536); - x_538 = lean_box(0); -} -x_539 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; -x_540 = l_Nat_reprFast(x_500); -if (lean_is_scalar(x_511)) { - x_541 = lean_alloc_ctor(3, 1, 0); -} else { - x_541 = x_511; - lean_ctor_set_tag(x_541, 3); -} -lean_ctor_set(x_541, 0, x_540); -x_542 = l_Lean_MessageData_ofFormat(x_541); -if (lean_is_scalar(x_538)) { - x_543 = lean_alloc_ctor(7, 2, 0); -} else { - x_543 = x_538; - lean_ctor_set_tag(x_543, 7); -} -lean_ctor_set(x_543, 0, x_539); -lean_ctor_set(x_543, 1, x_542); -x_544 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -if (lean_is_scalar(x_516)) { - x_545 = lean_alloc_ctor(7, 2, 0); -} else { - x_545 = x_516; - lean_ctor_set_tag(x_545, 7); -} -lean_ctor_set(x_545, 0, x_543); -lean_ctor_set(x_545, 1, x_544); -lean_inc_ref(x_1); -x_546 = l_Lean_MessageData_ofExpr(x_1); -x_547 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_547, 0, x_545); -lean_ctor_set(x_547, 1, x_546); -x_548 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_512, x_547, x_7, x_8, x_9, x_10, x_537); -x_549 = lean_ctor_get(x_548, 1); -lean_inc(x_549); -lean_dec_ref(x_548); -x_518 = x_502; -x_519 = x_3; -x_520 = x_4; -x_521 = x_5; -x_522 = x_6; -x_523 = x_7; -x_524 = x_8; -x_525 = x_9; -x_526 = x_10; -x_527 = x_549; -goto block_534; -} -else -{ -lean_dec_ref(x_517); -lean_dec(x_516); -lean_dec(x_511); -lean_dec_ref(x_502); -lean_dec(x_500); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_536; -} -} -block_534: -{ -lean_object* x_528; -lean_inc_ref(x_518); -lean_inc_ref(x_1); -x_528 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_518, x_519, x_520, x_521, x_522, x_523, x_524, x_525, x_526, x_527); -if (lean_obj_tag(x_528) == 0) -{ -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = lean_ctor_get(x_528, 1); -lean_inc(x_529); -lean_dec_ref(x_528); -x_530 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_519); -x_531 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_530, x_1, x_519, x_520, x_521, x_522, x_523, x_524, x_525, x_526, x_529); -if (lean_obj_tag(x_531) == 0) -{ -lean_object* x_532; lean_object* x_533; -x_532 = lean_ctor_get(x_531, 1); -lean_inc(x_532); -lean_dec_ref(x_531); -x_533 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_517, x_518, x_519, x_532); -lean_dec(x_519); +lean_dec(x_521); +lean_dec_ref(x_520); +lean_dec_ref(x_519); return x_533; } -else -{ -lean_dec(x_519); -lean_dec_ref(x_518); -lean_dec_ref(x_517); -return x_531; -} } else { +lean_dec(x_528); +lean_dec_ref(x_527); lean_dec(x_526); lean_dec_ref(x_525); lean_dec(x_524); lean_dec_ref(x_523); lean_dec(x_522); -lean_dec_ref(x_521); -lean_dec(x_520); -lean_dec(x_519); -lean_dec_ref(x_518); -lean_dec_ref(x_517); +lean_dec(x_521); +lean_dec_ref(x_520); +lean_dec_ref(x_519); lean_dec_ref(x_1); -return x_528; +return x_530; } } } } else { -lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; -lean_dec_ref(x_502); -lean_dec(x_500); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_550 = lean_ctor_get(x_503, 0); -lean_inc(x_550); -x_551 = lean_ctor_get(x_503, 1); +lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; uint8_t x_575; +x_551 = lean_ctor_get(x_461, 0); lean_inc(x_551); -if (lean_is_exclusive(x_503)) { - lean_ctor_release(x_503, 0); - lean_ctor_release(x_503, 1); - x_552 = x_503; -} else { - lean_dec_ref(x_503); - x_552 = lean_box(0); -} -if (lean_is_scalar(x_552)) { - x_553 = lean_alloc_ctor(1, 2, 0); -} else { - x_553 = x_552; -} -lean_ctor_set(x_553, 0, x_550); -lean_ctor_set(x_553, 1, x_551); -return x_553; -} -} -} -else -{ -lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; -lean_dec(x_377); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_554 = lean_ctor_get(x_379, 0); +lean_dec(x_461); +x_552 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_553 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(x_552, x_9, x_468); +x_554 = lean_ctor_get(x_553, 0); lean_inc(x_554); -x_555 = lean_ctor_get(x_379, 1); +x_555 = lean_ctor_get(x_553, 1); lean_inc(x_555); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_556 = x_379; +if (lean_is_exclusive(x_553)) { + lean_ctor_release(x_553, 0); + lean_ctor_release(x_553, 1); + x_556 = x_553; } else { - lean_dec_ref(x_379); + lean_dec_ref(x_553); x_556 = lean_box(0); } -if (lean_is_scalar(x_556)) { - x_557 = lean_alloc_ctor(1, 2, 0); -} else { - x_557 = x_556; -} -lean_ctor_set(x_557, 0, x_554); -lean_ctor_set(x_557, 1, x_555); -return x_557; -} -} -else -{ -lean_object* x_558; lean_object* x_559; -lean_dec(x_377); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_558 = lean_box(0); -x_559 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_559, 0, x_558); -lean_ctor_set(x_559, 1, x_373); -return x_559; -} -} -} -} -else -{ -uint8_t x_560; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_560 = !lean_is_exclusive(x_25); -if (x_560 == 0) -{ -lean_object* x_561; lean_object* x_562; -x_561 = lean_ctor_get(x_25, 0); -lean_dec(x_561); -x_562 = lean_box(0); -lean_ctor_set(x_25, 0, x_562); -return x_25; -} -else -{ -lean_object* x_563; lean_object* x_564; lean_object* x_565; -x_563 = lean_ctor_get(x_25, 1); -lean_inc(x_563); -lean_dec(x_25); -x_564 = lean_box(0); -x_565 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_565, 0, x_564); -lean_ctor_set(x_565, 1, x_563); -return x_565; -} -} -} -else -{ -uint8_t x_566; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_566 = !lean_is_exclusive(x_25); -if (x_566 == 0) -{ -return x_25; -} -else -{ -lean_object* x_567; lean_object* x_568; lean_object* x_569; -x_567 = lean_ctor_get(x_25, 0); -x_568 = lean_ctor_get(x_25, 1); -lean_inc(x_568); -lean_inc(x_567); -lean_dec(x_25); -x_569 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_569, 0, x_567); -lean_ctor_set(x_569, 1, x_568); -return x_569; -} -} -} -else -{ -lean_object* x_570; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_570 = lean_box(0); -lean_ctor_set(x_12, 0, x_570); -return x_12; -} -} -else -{ -lean_object* x_571; uint8_t x_572; -x_571 = lean_ctor_get(x_12, 1); -lean_inc(x_571); -lean_dec(x_12); -x_572 = l_Lean_Meta_Grind_Arith_isIntModuleVirtualParent(x_2); -if (x_572 == 0) -{ -lean_object* x_573; -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_4); -lean_inc(x_3); lean_inc_ref(x_1); -x_573 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_internalizeInv(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_571); -if (lean_obj_tag(x_573) == 0) -{ -lean_object* x_574; uint8_t x_575; -x_574 = lean_ctor_get(x_573, 0); -lean_inc(x_574); -x_575 = lean_unbox(x_574); -lean_dec(x_574); +x_557 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__3), 3, 2); +lean_closure_set(x_557, 0, x_1); +lean_closure_set(x_557, 1, x_551); +x_575 = lean_unbox(x_554); +lean_dec(x_554); if (x_575 == 0) { -lean_object* x_576; lean_object* x_577; lean_object* x_578; -x_576 = lean_ctor_get(x_573, 1); -lean_inc(x_576); -if (lean_is_exclusive(x_573)) { - lean_ctor_release(x_573, 0); - lean_ctor_release(x_573, 1); - x_577 = x_573; -} else { - lean_dec_ref(x_573); - x_577 = lean_box(0); +lean_dec(x_556); +lean_dec(x_457); +x_558 = x_459; +x_559 = x_3; +x_560 = x_4; +x_561 = x_5; +x_562 = x_6; +x_563 = x_7; +x_564 = x_8; +x_565 = x_9; +x_566 = x_10; +x_567 = x_555; +goto block_574; } -lean_inc_ref(x_1); -x_578 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f(x_1); -if (lean_obj_tag(x_578) == 0) +else { -lean_object* x_579; lean_object* x_580; +lean_object* x_576; +x_576 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_555); +if (lean_obj_tag(x_576) == 0) +{ +lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; +x_577 = lean_ctor_get(x_576, 1); +lean_inc(x_577); +if (lean_is_exclusive(x_576)) { + lean_ctor_release(x_576, 0); + lean_ctor_release(x_576, 1); + x_578 = x_576; +} else { + lean_dec_ref(x_576); + x_578 = lean_box(0); +} +x_579 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14; +x_580 = l_Nat_reprFast(x_457); +x_581 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_581, 0, x_580); +x_582 = l_Lean_MessageData_ofFormat(x_581); +if (lean_is_scalar(x_578)) { + x_583 = lean_alloc_ctor(7, 2, 0); +} else { + x_583 = x_578; + lean_ctor_set_tag(x_583, 7); +} +lean_ctor_set(x_583, 0, x_579); +lean_ctor_set(x_583, 1, x_582); +x_584 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_556)) { + x_585 = lean_alloc_ctor(7, 2, 0); +} else { + x_585 = x_556; + lean_ctor_set_tag(x_585, 7); +} +lean_ctor_set(x_585, 0, x_583); +lean_ctor_set(x_585, 1, x_584); +lean_inc_ref(x_1); +x_586 = l_Lean_MessageData_ofExpr(x_1); +x_587 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_587, 0, x_585); +lean_ctor_set(x_587, 1, x_586); +x_588 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_552, x_587, x_7, x_8, x_9, x_10, x_577); +x_589 = lean_ctor_get(x_588, 1); +lean_inc(x_589); +lean_dec_ref(x_588); +x_558 = x_459; +x_559 = x_3; +x_560 = x_4; +x_561 = x_5; +x_562 = x_6; +x_563 = x_7; +x_564 = x_8; +x_565 = x_9; +x_566 = x_10; +x_567 = x_589; +goto block_574; +} +else +{ +lean_dec_ref(x_557); +lean_dec(x_556); +lean_dec_ref(x_459); +lean_dec(x_457); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_576; +} +} +block_574: +{ +lean_object* x_568; +lean_inc_ref(x_558); +lean_inc_ref(x_1); +x_568 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_558, x_559, x_560, x_561, x_562, x_563, x_564, x_565, x_566, x_567); +if (lean_obj_tag(x_568) == 0) +{ +lean_object* x_569; lean_object* x_570; lean_object* x_571; +x_569 = lean_ctor_get(x_568, 1); +lean_inc(x_569); +lean_dec_ref(x_568); +x_570 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_559); +x_571 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_570, x_1, x_559, x_560, x_561, x_562, x_563, x_564, x_565, x_566, x_569); +if (lean_obj_tag(x_571) == 0) +{ +lean_object* x_572; lean_object* x_573; +x_572 = lean_ctor_get(x_571, 1); +lean_inc(x_572); +lean_dec_ref(x_571); +x_573 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_557, x_558, x_559, x_572); +lean_dec(x_559); +return x_573; +} +else +{ +lean_dec(x_559); +lean_dec_ref(x_558); +lean_dec_ref(x_557); +return x_571; +} +} +else +{ +lean_dec(x_566); +lean_dec_ref(x_565); +lean_dec(x_564); +lean_dec_ref(x_563); +lean_dec(x_562); +lean_dec_ref(x_561); +lean_dec(x_560); +lean_dec(x_559); +lean_dec_ref(x_558); +lean_dec_ref(x_557); +lean_dec_ref(x_1); +return x_568; +} +} +} +} +} +else +{ +uint8_t x_590; +lean_dec_ref(x_459); +lean_dec(x_457); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_590 = !lean_is_exclusive(x_460); +if (x_590 == 0) +{ +return x_460; +} +else +{ +lean_object* x_591; lean_object* x_592; lean_object* x_593; +x_591 = lean_ctor_get(x_460, 0); +x_592 = lean_ctor_get(x_460, 1); +lean_inc(x_592); +lean_inc(x_591); +lean_dec(x_460); +x_593 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_593, 0, x_591); +lean_ctor_set(x_593, 1, x_592); +return x_593; +} +} +} +} +else +{ +uint8_t x_594; +lean_dec(x_33); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_594 = !lean_is_exclusive(x_35); +if (x_594 == 0) +{ +return x_35; +} +else +{ +lean_object* x_595; lean_object* x_596; lean_object* x_597; +x_595 = lean_ctor_get(x_35, 0); +x_596 = lean_ctor_get(x_35, 1); +lean_inc(x_596); +lean_inc(x_595); +lean_dec(x_35); +x_597 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_597, 0, x_595); +lean_ctor_set(x_597, 1, x_596); +return x_597; +} +} +} +else +{ +lean_object* x_598; +lean_dec(x_33); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_598 = lean_box(0); +lean_ctor_set(x_25, 0, x_598); +return x_25; +} +} +} +else +{ +lean_object* x_599; lean_object* x_600; +x_599 = lean_ctor_get(x_25, 1); +lean_inc(x_599); +lean_dec(x_25); +lean_inc_ref(x_1); +x_600 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f(x_1); +if (lean_obj_tag(x_600) == 0) +{ +lean_object* x_601; lean_object* x_602; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -15527,27 +15909,22 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_579 = lean_box(0); -if (lean_is_scalar(x_577)) { - x_580 = lean_alloc_ctor(0, 2, 0); -} else { - x_580 = x_577; -} -lean_ctor_set(x_580, 0, x_579); -lean_ctor_set(x_580, 1, x_576); -return x_580; +x_601 = lean_box(0); +x_602 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_602, 0, x_601); +lean_ctor_set(x_602, 1, x_599); +return x_602; } else { -lean_object* x_581; uint8_t x_582; -x_581 = lean_ctor_get(x_578, 0); -lean_inc(x_581); -lean_dec_ref(x_578); -x_582 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isForbiddenParent(x_2); -if (x_582 == 0) +lean_object* x_603; uint8_t x_604; +x_603 = lean_ctor_get(x_600, 0); +lean_inc(x_603); +lean_dec_ref(x_600); +x_604 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isForbiddenParent(x_2); +if (x_604 == 0) { -lean_object* x_583; -lean_dec(x_577); +lean_object* x_605; lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -15556,19 +15933,19 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_581); -x_583 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_581, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_576); -if (lean_obj_tag(x_583) == 0) +lean_inc(x_603); +x_605 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_603, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_599); +if (lean_obj_tag(x_605) == 0) { -lean_object* x_584; -x_584 = lean_ctor_get(x_583, 0); -lean_inc(x_584); -if (lean_obj_tag(x_584) == 0) +lean_object* x_606; +x_606 = lean_ctor_get(x_605, 0); +lean_inc(x_606); +if (lean_obj_tag(x_606) == 0) { -lean_object* x_585; lean_object* x_586; -x_585 = lean_ctor_get(x_583, 1); -lean_inc(x_585); -lean_dec_ref(x_583); +lean_object* x_607; lean_object* x_608; +x_607 = lean_ctor_get(x_605, 1); +lean_inc(x_607); +lean_dec_ref(x_605); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -15577,351 +15954,19 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_581); -x_586 = l_Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f(x_581, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_585); -if (lean_obj_tag(x_586) == 0) +lean_inc(x_603); +x_608 = l_Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f(x_603, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_607); +if (lean_obj_tag(x_608) == 0) { -lean_object* x_587; -x_587 = lean_ctor_get(x_586, 0); -lean_inc(x_587); -if (lean_obj_tag(x_587) == 0) -{ -lean_object* x_588; lean_object* x_589; -x_588 = lean_ctor_get(x_586, 1); -lean_inc(x_588); -lean_dec_ref(x_586); -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_4); -lean_inc(x_3); -x_589 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_581, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_588); -if (lean_obj_tag(x_589) == 0) -{ -lean_object* x_590; -x_590 = lean_ctor_get(x_589, 0); -lean_inc(x_590); -if (lean_obj_tag(x_590) == 0) -{ -lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_591 = lean_ctor_get(x_589, 1); -lean_inc(x_591); -if (lean_is_exclusive(x_589)) { - lean_ctor_release(x_589, 0); - lean_ctor_release(x_589, 1); - x_592 = x_589; -} else { - lean_dec_ref(x_589); - x_592 = lean_box(0); -} -x_593 = lean_box(0); -if (lean_is_scalar(x_592)) { - x_594 = lean_alloc_ctor(0, 2, 0); -} else { - x_594 = x_592; -} -lean_ctor_set(x_594, 0, x_593); -lean_ctor_set(x_594, 1, x_591); -return x_594; -} -else -{ -lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_595 = lean_ctor_get(x_589, 1); -lean_inc(x_595); -lean_dec_ref(x_589); -x_596 = lean_ctor_get(x_590, 0); -lean_inc(x_596); -lean_dec_ref(x_590); -x_597 = lean_unsigned_to_nat(0u); -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_4); -lean_inc(x_3); -lean_inc(x_596); -lean_inc_ref(x_1); -x_598 = l_Lean_Meta_Grind_Arith_CommRing_ncreify_x3f(x_1, x_14, x_597, x_596, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_595); -if (lean_obj_tag(x_598) == 0) -{ -lean_object* x_599; -x_599 = lean_ctor_get(x_598, 0); -lean_inc(x_599); -if (lean_obj_tag(x_599) == 0) -{ -lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; -lean_dec(x_596); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_600 = lean_ctor_get(x_598, 1); -lean_inc(x_600); -if (lean_is_exclusive(x_598)) { - lean_ctor_release(x_598, 0); - lean_ctor_release(x_598, 1); - x_601 = x_598; -} else { - lean_dec_ref(x_598); - x_601 = lean_box(0); -} -x_602 = lean_box(0); -if (lean_is_scalar(x_601)) { - x_603 = lean_alloc_ctor(0, 2, 0); -} else { - x_603 = x_601; -} -lean_ctor_set(x_603, 0, x_602); -lean_ctor_set(x_603, 1, x_600); -return x_603; -} -else -{ -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; uint8_t x_628; -x_604 = lean_ctor_get(x_598, 1); -lean_inc(x_604); -lean_dec_ref(x_598); -x_605 = lean_ctor_get(x_599, 0); -lean_inc(x_605); -lean_dec_ref(x_599); -x_606 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_607 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__5___redArg(x_606, x_9, x_604); -x_608 = lean_ctor_get(x_607, 0); -lean_inc(x_608); -x_609 = lean_ctor_get(x_607, 1); +lean_object* x_609; +x_609 = lean_ctor_get(x_608, 0); lean_inc(x_609); -lean_dec_ref(x_607); -lean_inc_ref(x_1); -x_610 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); -lean_closure_set(x_610, 0, x_1); -lean_closure_set(x_610, 1, x_605); -x_628 = lean_unbox(x_608); -lean_dec(x_608); -if (x_628 == 0) +if (lean_obj_tag(x_609) == 0) { -x_611 = x_596; -x_612 = x_3; -x_613 = x_4; -x_614 = x_5; -x_615 = x_6; -x_616 = x_7; -x_617 = x_8; -x_618 = x_9; -x_619 = x_10; -x_620 = x_609; -goto block_627; -} -else -{ -lean_object* x_629; -x_629 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_609); -if (lean_obj_tag(x_629) == 0) -{ -lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; -x_630 = lean_ctor_get(x_629, 1); -lean_inc(x_630); -if (lean_is_exclusive(x_629)) { - lean_ctor_release(x_629, 0); - lean_ctor_release(x_629, 1); - x_631 = x_629; -} else { - lean_dec_ref(x_629); - x_631 = lean_box(0); -} -x_632 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; -lean_inc_ref(x_1); -x_633 = l_Lean_MessageData_ofExpr(x_1); -if (lean_is_scalar(x_631)) { - x_634 = lean_alloc_ctor(7, 2, 0); -} else { - x_634 = x_631; - lean_ctor_set_tag(x_634, 7); -} -lean_ctor_set(x_634, 0, x_632); -lean_ctor_set(x_634, 1, x_633); -x_635 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_606, x_634, x_7, x_8, x_9, x_10, x_630); -x_636 = lean_ctor_get(x_635, 1); -lean_inc(x_636); -lean_dec_ref(x_635); -x_611 = x_596; -x_612 = x_3; -x_613 = x_4; -x_614 = x_5; -x_615 = x_6; -x_616 = x_7; -x_617 = x_8; -x_618 = x_9; -x_619 = x_10; -x_620 = x_636; -goto block_627; -} -else -{ -lean_dec_ref(x_610); -lean_dec(x_596); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_629; -} -} -block_627: -{ -lean_object* x_621; -lean_inc(x_611); -lean_inc_ref(x_1); -x_621 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_611, x_612, x_613, x_614, x_615, x_616, x_617, x_618, x_619, x_620); -if (lean_obj_tag(x_621) == 0) -{ -lean_object* x_622; lean_object* x_623; lean_object* x_624; -x_622 = lean_ctor_get(x_621, 1); -lean_inc(x_622); -lean_dec_ref(x_621); -x_623 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_612); -x_624 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_623, x_1, x_612, x_613, x_614, x_615, x_616, x_617, x_618, x_619, x_622); -if (lean_obj_tag(x_624) == 0) -{ -lean_object* x_625; lean_object* x_626; -x_625 = lean_ctor_get(x_624, 1); -lean_inc(x_625); -lean_dec_ref(x_624); -x_626 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_610, x_611, x_612, x_625); -lean_dec(x_612); -return x_626; -} -else -{ -lean_dec(x_612); -lean_dec(x_611); -lean_dec_ref(x_610); -return x_624; -} -} -else -{ -lean_dec(x_619); -lean_dec_ref(x_618); -lean_dec(x_617); -lean_dec_ref(x_616); -lean_dec(x_615); -lean_dec_ref(x_614); -lean_dec(x_613); -lean_dec(x_612); -lean_dec(x_611); -lean_dec_ref(x_610); -lean_dec_ref(x_1); -return x_621; -} -} -} -} -else -{ -lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; -lean_dec(x_596); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_637 = lean_ctor_get(x_598, 0); -lean_inc(x_637); -x_638 = lean_ctor_get(x_598, 1); -lean_inc(x_638); -if (lean_is_exclusive(x_598)) { - lean_ctor_release(x_598, 0); - lean_ctor_release(x_598, 1); - x_639 = x_598; -} else { - lean_dec_ref(x_598); - x_639 = lean_box(0); -} -if (lean_is_scalar(x_639)) { - x_640 = lean_alloc_ctor(1, 2, 0); -} else { - x_640 = x_639; -} -lean_ctor_set(x_640, 0, x_637); -lean_ctor_set(x_640, 1, x_638); -return x_640; -} -} -} -else -{ -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_641 = lean_ctor_get(x_589, 0); -lean_inc(x_641); -x_642 = lean_ctor_get(x_589, 1); -lean_inc(x_642); -if (lean_is_exclusive(x_589)) { - lean_ctor_release(x_589, 0); - lean_ctor_release(x_589, 1); - x_643 = x_589; -} else { - lean_dec_ref(x_589); - x_643 = lean_box(0); -} -if (lean_is_scalar(x_643)) { - x_644 = lean_alloc_ctor(1, 2, 0); -} else { - x_644 = x_643; -} -lean_ctor_set(x_644, 0, x_641); -lean_ctor_set(x_644, 1, x_642); -return x_644; -} -} -else -{ -lean_object* x_645; lean_object* x_646; lean_object* x_647; -lean_dec(x_581); -x_645 = lean_ctor_get(x_586, 1); -lean_inc(x_645); -lean_dec_ref(x_586); -x_646 = lean_ctor_get(x_587, 0); -lean_inc(x_646); -lean_dec_ref(x_587); +lean_object* x_610; lean_object* x_611; +x_610 = lean_ctor_get(x_608, 1); +lean_inc(x_610); +lean_dec_ref(x_608); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -15930,169 +15975,309 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_646); +lean_inc(x_603); +x_611 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_603, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_610); +if (lean_obj_tag(x_611) == 0) +{ +lean_object* x_612; +x_612 = lean_ctor_get(x_611, 0); +lean_inc(x_612); +if (lean_obj_tag(x_612) == 0) +{ +lean_object* x_613; lean_object* x_614; +x_613 = lean_ctor_get(x_611, 1); +lean_inc(x_613); +lean_dec_ref(x_611); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_614 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg(x_603, x_3, x_7, x_8, x_9, x_10, x_613); +if (lean_obj_tag(x_614) == 0) +{ +lean_object* x_615; +x_615 = lean_ctor_get(x_614, 0); +lean_inc(x_615); +if (lean_obj_tag(x_615) == 0) +{ +lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_616 = lean_ctor_get(x_614, 1); +lean_inc(x_616); +if (lean_is_exclusive(x_614)) { + lean_ctor_release(x_614, 0); + lean_ctor_release(x_614, 1); + x_617 = x_614; +} else { + lean_dec_ref(x_614); + x_617 = lean_box(0); +} +x_618 = lean_box(0); +if (lean_is_scalar(x_617)) { + x_619 = lean_alloc_ctor(0, 2, 0); +} else { + x_619 = x_617; +} +lean_ctor_set(x_619, 0, x_618); +lean_ctor_set(x_619, 1, x_616); +return x_619; +} +else +{ +lean_object* x_620; lean_object* x_621; lean_object* x_622; +x_620 = lean_ctor_get(x_614, 1); +lean_inc(x_620); +lean_dec_ref(x_614); +x_621 = lean_ctor_get(x_615, 0); +lean_inc(x_621); +lean_dec_ref(x_615); +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_4); +lean_inc(x_3); +lean_inc(x_621); lean_inc_ref(x_1); -x_647 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f(x_1, x_646, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_645); +x_622 = l_Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f(x_1, x_621, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_620); +if (lean_obj_tag(x_622) == 0) +{ +lean_object* x_623; +x_623 = lean_ctor_get(x_622, 0); +lean_inc(x_623); +if (lean_obj_tag(x_623) == 0) +{ +lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; +lean_dec(x_621); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_624 = lean_ctor_get(x_622, 1); +lean_inc(x_624); +if (lean_is_exclusive(x_622)) { + lean_ctor_release(x_622, 0); + lean_ctor_release(x_622, 1); + x_625 = x_622; +} else { + lean_dec_ref(x_622); + x_625 = lean_box(0); +} +x_626 = lean_box(0); +if (lean_is_scalar(x_625)) { + x_627 = lean_alloc_ctor(0, 2, 0); +} else { + x_627 = x_625; +} +lean_ctor_set(x_627, 0, x_626); +lean_ctor_set(x_627, 1, x_624); +return x_627; +} +else +{ +lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; uint8_t x_654; +x_628 = lean_ctor_get(x_622, 1); +lean_inc(x_628); +lean_dec_ref(x_622); +x_629 = lean_ctor_get(x_623, 0); +lean_inc(x_629); +if (lean_is_exclusive(x_623)) { + lean_ctor_release(x_623, 0); + x_630 = x_623; +} else { + lean_dec_ref(x_623); + x_630 = lean_box(0); +} +x_631 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_632 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__5___redArg(x_631, x_9, x_628); +x_633 = lean_ctor_get(x_632, 0); +lean_inc(x_633); +x_634 = lean_ctor_get(x_632, 1); +lean_inc(x_634); +if (lean_is_exclusive(x_632)) { + lean_ctor_release(x_632, 0); + lean_ctor_release(x_632, 1); + x_635 = x_632; +} else { + lean_dec_ref(x_632); + x_635 = lean_box(0); +} +lean_inc_ref(x_1); +x_636 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); +lean_closure_set(x_636, 0, x_1); +lean_closure_set(x_636, 1, x_629); +x_654 = lean_unbox(x_633); +lean_dec(x_633); +if (x_654 == 0) +{ +lean_dec(x_635); +lean_dec(x_630); +x_637 = x_621; +x_638 = x_3; +x_639 = x_4; +x_640 = x_5; +x_641 = x_6; +x_642 = x_7; +x_643 = x_8; +x_644 = x_9; +x_645 = x_10; +x_646 = x_634; +goto block_653; +} +else +{ +lean_object* x_655; +x_655 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_634); +if (lean_obj_tag(x_655) == 0) +{ +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_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; +x_656 = lean_ctor_get(x_655, 1); +lean_inc(x_656); +if (lean_is_exclusive(x_655)) { + lean_ctor_release(x_655, 0); + lean_ctor_release(x_655, 1); + x_657 = x_655; +} else { + lean_dec_ref(x_655); + x_657 = lean_box(0); +} +x_658 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +lean_inc(x_621); +x_659 = l_Nat_reprFast(x_621); +if (lean_is_scalar(x_630)) { + x_660 = lean_alloc_ctor(3, 1, 0); +} else { + x_660 = x_630; + lean_ctor_set_tag(x_660, 3); +} +lean_ctor_set(x_660, 0, x_659); +x_661 = l_Lean_MessageData_ofFormat(x_660); +if (lean_is_scalar(x_657)) { + x_662 = lean_alloc_ctor(7, 2, 0); +} else { + x_662 = x_657; + lean_ctor_set_tag(x_662, 7); +} +lean_ctor_set(x_662, 0, x_658); +lean_ctor_set(x_662, 1, x_661); +x_663 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_635)) { + x_664 = lean_alloc_ctor(7, 2, 0); +} else { + x_664 = x_635; + lean_ctor_set_tag(x_664, 7); +} +lean_ctor_set(x_664, 0, x_662); +lean_ctor_set(x_664, 1, x_663); +lean_inc_ref(x_1); +x_665 = l_Lean_MessageData_ofExpr(x_1); +x_666 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_666, 0, x_664); +lean_ctor_set(x_666, 1, x_665); +x_667 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_631, x_666, x_7, x_8, x_9, x_10, x_656); +x_668 = lean_ctor_get(x_667, 1); +lean_inc(x_668); +lean_dec_ref(x_667); +x_637 = x_621; +x_638 = x_3; +x_639 = x_4; +x_640 = x_5; +x_641 = x_6; +x_642 = x_7; +x_643 = x_8; +x_644 = x_9; +x_645 = x_10; +x_646 = x_668; +goto block_653; +} +else +{ +lean_dec_ref(x_636); +lean_dec(x_635); +lean_dec(x_630); +lean_dec(x_621); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_655; +} +} +block_653: +{ +lean_object* x_647; +lean_inc(x_637); +lean_inc_ref(x_1); +x_647 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_637, x_638, x_639, x_640, x_641, x_642, x_643, x_644, x_645, x_646); if (lean_obj_tag(x_647) == 0) { -lean_object* x_648; -x_648 = lean_ctor_get(x_647, 0); +lean_object* x_648; lean_object* x_649; lean_object* x_650; +x_648 = lean_ctor_get(x_647, 1); lean_inc(x_648); -if (lean_obj_tag(x_648) == 0) +lean_dec_ref(x_647); +x_649 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_638); +x_650 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_649, x_1, x_638, x_639, x_640, x_641, x_642, x_643, x_644, x_645, x_648); +if (lean_obj_tag(x_650) == 0) { -lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; -lean_dec(x_646); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_649 = lean_ctor_get(x_647, 1); -lean_inc(x_649); -if (lean_is_exclusive(x_647)) { - lean_ctor_release(x_647, 0); - lean_ctor_release(x_647, 1); - x_650 = x_647; -} else { - lean_dec_ref(x_647); - x_650 = lean_box(0); -} -x_651 = lean_box(0); -if (lean_is_scalar(x_650)) { - x_652 = lean_alloc_ctor(0, 2, 0); -} else { - x_652 = x_650; -} -lean_ctor_set(x_652, 0, x_651); -lean_ctor_set(x_652, 1, x_649); +lean_object* x_651; lean_object* x_652; +x_651 = lean_ctor_get(x_650, 1); +lean_inc(x_651); +lean_dec_ref(x_650); +x_652 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_636, x_637, x_638, x_651); +lean_dec(x_638); return x_652; } else { -lean_object* x_653; lean_object* 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_664; lean_object* x_665; lean_object* x_674; lean_object* x_675; lean_object* x_676; uint8_t x_677; -x_653 = lean_ctor_get(x_647, 1); -lean_inc(x_653); -lean_dec_ref(x_647); -x_654 = lean_ctor_get(x_648, 0); -lean_inc(x_654); -if (lean_is_exclusive(x_648)) { - lean_ctor_release(x_648, 0); - x_655 = x_648; -} else { - lean_dec_ref(x_648); - x_655 = lean_box(0); +lean_dec(x_638); +lean_dec(x_637); +lean_dec_ref(x_636); +return x_650; } -x_674 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_675 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_674, x_9, x_653); -x_676 = lean_ctor_get(x_675, 0); -lean_inc(x_676); -x_677 = lean_unbox(x_676); -lean_dec(x_676); -if (x_677 == 0) -{ -lean_object* x_678; -lean_dec(x_655); -x_678 = lean_ctor_get(x_675, 1); -lean_inc(x_678); -lean_dec_ref(x_675); -x_656 = x_646; -x_657 = x_3; -x_658 = x_4; -x_659 = x_5; -x_660 = x_6; -x_661 = x_7; -x_662 = x_8; -x_663 = x_9; -x_664 = x_10; -x_665 = x_678; -goto block_673; } else { -lean_object* x_679; lean_object* x_680; lean_object* x_681; -x_679 = lean_ctor_get(x_675, 1); -lean_inc(x_679); -if (lean_is_exclusive(x_675)) { - lean_ctor_release(x_675, 0); - lean_ctor_release(x_675, 1); - x_680 = x_675; -} else { - lean_dec_ref(x_675); - x_680 = lean_box(0); +lean_dec(x_645); +lean_dec_ref(x_644); +lean_dec(x_643); +lean_dec_ref(x_642); +lean_dec(x_641); +lean_dec_ref(x_640); +lean_dec(x_639); +lean_dec(x_638); +lean_dec(x_637); +lean_dec_ref(x_636); +lean_dec_ref(x_1); +return x_647; } -x_681 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_679); -if (lean_obj_tag(x_681) == 0) -{ -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_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; -x_682 = lean_ctor_get(x_681, 1); -lean_inc(x_682); -if (lean_is_exclusive(x_681)) { - lean_ctor_release(x_681, 0); - lean_ctor_release(x_681, 1); - x_683 = x_681; -} else { - lean_dec_ref(x_681); - x_683 = lean_box(0); } -x_684 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; -lean_inc(x_646); -x_685 = l_Nat_reprFast(x_646); -if (lean_is_scalar(x_655)) { - x_686 = lean_alloc_ctor(3, 1, 0); -} else { - x_686 = x_655; - lean_ctor_set_tag(x_686, 3); } -lean_ctor_set(x_686, 0, x_685); -x_687 = l_Lean_MessageData_ofFormat(x_686); -if (lean_is_scalar(x_683)) { - x_688 = lean_alloc_ctor(7, 2, 0); -} else { - x_688 = x_683; - lean_ctor_set_tag(x_688, 7); -} -lean_ctor_set(x_688, 0, x_684); -lean_ctor_set(x_688, 1, x_687); -x_689 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -if (lean_is_scalar(x_680)) { - x_690 = lean_alloc_ctor(7, 2, 0); -} else { - x_690 = x_680; - lean_ctor_set_tag(x_690, 7); -} -lean_ctor_set(x_690, 0, x_688); -lean_ctor_set(x_690, 1, x_689); -lean_inc_ref(x_1); -x_691 = l_Lean_MessageData_ofExpr(x_1); -x_692 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_692, 0, x_690); -lean_ctor_set(x_692, 1, x_691); -x_693 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_674, x_692, x_7, x_8, x_9, x_10, x_682); -x_694 = lean_ctor_get(x_693, 1); -lean_inc(x_694); -lean_dec_ref(x_693); -x_656 = x_646; -x_657 = x_3; -x_658 = x_4; -x_659 = x_5; -x_660 = x_6; -x_661 = x_7; -x_662 = x_8; -x_663 = x_9; -x_664 = x_10; -x_665 = x_694; -goto block_673; } else { -lean_dec(x_680); -lean_dec(x_655); -lean_dec(x_654); -lean_dec(x_646); +lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; +lean_dec(x_621); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16102,70 +16287,32 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -return x_681; -} -} -block_673: -{ -lean_object* x_666; -lean_inc(x_656); -lean_inc_ref(x_1); -x_666 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_656, x_657, x_658, x_659, x_660, x_661, x_662, x_663, x_664, x_665); -if (lean_obj_tag(x_666) == 0) -{ -lean_object* x_667; lean_object* x_668; lean_object* x_669; -x_667 = lean_ctor_get(x_666, 1); -lean_inc(x_667); -lean_dec_ref(x_666); -x_668 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_657); -lean_inc_ref(x_1); -x_669 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_668, x_1, x_657, x_658, x_659, x_660, x_661, x_662, x_663, x_664, x_667); -if (lean_obj_tag(x_669) == 0) -{ -lean_object* x_670; lean_object* x_671; lean_object* x_672; -x_670 = lean_ctor_get(x_669, 1); +x_669 = lean_ctor_get(x_622, 0); +lean_inc(x_669); +x_670 = lean_ctor_get(x_622, 1); lean_inc(x_670); -lean_dec_ref(x_669); -x_671 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1___boxed), 4, 3); -lean_closure_set(x_671, 0, x_656); -lean_closure_set(x_671, 1, x_1); -lean_closure_set(x_671, 2, x_654); -x_672 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_668, x_671, x_657, x_670); -lean_dec(x_657); +if (lean_is_exclusive(x_622)) { + lean_ctor_release(x_622, 0); + lean_ctor_release(x_622, 1); + x_671 = x_622; +} else { + lean_dec_ref(x_622); + x_671 = lean_box(0); +} +if (lean_is_scalar(x_671)) { + x_672 = lean_alloc_ctor(1, 2, 0); +} else { + x_672 = x_671; +} +lean_ctor_set(x_672, 0, x_669); +lean_ctor_set(x_672, 1, x_670); return x_672; } -else -{ -lean_dec(x_657); -lean_dec(x_656); -lean_dec(x_654); -lean_dec_ref(x_1); -return x_669; } } else { -lean_dec(x_664); -lean_dec_ref(x_663); -lean_dec(x_662); -lean_dec_ref(x_661); -lean_dec(x_660); -lean_dec_ref(x_659); -lean_dec(x_658); -lean_dec(x_657); -lean_dec(x_656); -lean_dec(x_654); -lean_dec_ref(x_1); -return x_666; -} -} -} -} -else -{ -lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; -lean_dec(x_646); +lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16175,79 +16322,39 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_695 = lean_ctor_get(x_647, 0); -lean_inc(x_695); -x_696 = lean_ctor_get(x_647, 1); -lean_inc(x_696); -if (lean_is_exclusive(x_647)) { - lean_ctor_release(x_647, 0); - lean_ctor_release(x_647, 1); - x_697 = x_647; +x_673 = lean_ctor_get(x_614, 0); +lean_inc(x_673); +x_674 = lean_ctor_get(x_614, 1); +lean_inc(x_674); +if (lean_is_exclusive(x_614)) { + lean_ctor_release(x_614, 0); + lean_ctor_release(x_614, 1); + x_675 = x_614; } else { - lean_dec_ref(x_647); - x_697 = lean_box(0); + lean_dec_ref(x_614); + x_675 = lean_box(0); } -if (lean_is_scalar(x_697)) { - x_698 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_675)) { + x_676 = lean_alloc_ctor(1, 2, 0); } else { - x_698 = x_697; -} -lean_ctor_set(x_698, 0, x_695); -lean_ctor_set(x_698, 1, x_696); -return x_698; + x_676 = x_675; } +lean_ctor_set(x_676, 0, x_673); +lean_ctor_set(x_676, 1, x_674); +return x_676; } } else { -lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; -lean_dec(x_581); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_699 = lean_ctor_get(x_586, 0); -lean_inc(x_699); -x_700 = lean_ctor_get(x_586, 1); -lean_inc(x_700); -if (lean_is_exclusive(x_586)) { - lean_ctor_release(x_586, 0); - lean_ctor_release(x_586, 1); - x_701 = x_586; -} else { - lean_dec_ref(x_586); - x_701 = lean_box(0); -} -if (lean_is_scalar(x_701)) { - x_702 = lean_alloc_ctor(1, 2, 0); -} else { - x_702 = x_701; -} -lean_ctor_set(x_702, 0, x_699); -lean_ctor_set(x_702, 1, x_700); -return x_702; -} -} -else -{ -lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; -lean_dec(x_581); -x_703 = lean_ctor_get(x_583, 1); -lean_inc(x_703); -lean_dec_ref(x_583); -x_704 = lean_ctor_get(x_584, 0); -lean_inc(x_704); -lean_dec_ref(x_584); -x_705 = lean_unsigned_to_nat(0u); -lean_inc(x_704); -x_706 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_706, 0, x_704); -lean_ctor_set_uint8(x_706, sizeof(void*)*1, x_582); +lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; +lean_dec(x_603); +x_677 = lean_ctor_get(x_611, 1); +lean_inc(x_677); +lean_dec_ref(x_611); +x_678 = lean_ctor_get(x_612, 0); +lean_inc(x_678); +lean_dec_ref(x_612); +x_679 = lean_unsigned_to_nat(0u); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -16256,19 +16363,18 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc_ref(x_706); +lean_inc(x_678); lean_inc_ref(x_1); -x_707 = l_Lean_Meta_Grind_Arith_CommRing_reify_x3f(x_1, x_14, x_705, x_706, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_703); -if (lean_obj_tag(x_707) == 0) +x_680 = l_Lean_Meta_Grind_Arith_CommRing_ncreify_x3f(x_1, x_14, x_679, x_678, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_677); +if (lean_obj_tag(x_680) == 0) { -lean_object* x_708; -x_708 = lean_ctor_get(x_707, 0); -lean_inc(x_708); -if (lean_obj_tag(x_708) == 0) +lean_object* x_681; +x_681 = lean_ctor_get(x_680, 0); +lean_inc(x_681); +if (lean_obj_tag(x_681) == 0) { -lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; -lean_dec_ref(x_706); -lean_dec(x_704); +lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; +lean_dec(x_678); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16278,218 +16384,149 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_709 = lean_ctor_get(x_707, 1); -lean_inc(x_709); -if (lean_is_exclusive(x_707)) { - lean_ctor_release(x_707, 0); - lean_ctor_release(x_707, 1); - x_710 = x_707; +x_682 = lean_ctor_get(x_680, 1); +lean_inc(x_682); +if (lean_is_exclusive(x_680)) { + lean_ctor_release(x_680, 0); + lean_ctor_release(x_680, 1); + x_683 = x_680; } else { - lean_dec_ref(x_707); - x_710 = lean_box(0); + lean_dec_ref(x_680); + x_683 = lean_box(0); } -x_711 = lean_box(0); -if (lean_is_scalar(x_710)) { - x_712 = lean_alloc_ctor(0, 2, 0); +x_684 = lean_box(0); +if (lean_is_scalar(x_683)) { + x_685 = lean_alloc_ctor(0, 2, 0); } else { - x_712 = x_710; + x_685 = x_683; } -lean_ctor_set(x_712, 0, x_711); -lean_ctor_set(x_712, 1, x_709); -return x_712; +lean_ctor_set(x_685, 0, x_684); +lean_ctor_set(x_685, 1, x_682); +return x_685; } else { -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_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; uint8_t x_739; -x_713 = lean_ctor_get(x_707, 1); -lean_inc(x_713); -lean_dec_ref(x_707); -x_714 = lean_ctor_get(x_708, 0); -lean_inc(x_714); -if (lean_is_exclusive(x_708)) { - lean_ctor_release(x_708, 0); - x_715 = x_708; +lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; 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; uint8_t x_712; +x_686 = lean_ctor_get(x_680, 1); +lean_inc(x_686); +lean_dec_ref(x_680); +x_687 = lean_ctor_get(x_681, 0); +lean_inc(x_687); +if (lean_is_exclusive(x_681)) { + lean_ctor_release(x_681, 0); + x_688 = x_681; } else { - lean_dec_ref(x_708); + lean_dec_ref(x_681); + x_688 = lean_box(0); +} +x_689 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_690 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_689, x_9, x_686); +x_691 = lean_ctor_get(x_690, 0); +lean_inc(x_691); +x_692 = lean_ctor_get(x_690, 1); +lean_inc(x_692); +if (lean_is_exclusive(x_690)) { + lean_ctor_release(x_690, 0); + lean_ctor_release(x_690, 1); + x_693 = x_690; +} else { + lean_dec_ref(x_690); + x_693 = lean_box(0); +} +lean_inc_ref(x_1); +x_694 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1), 3, 2); +lean_closure_set(x_694, 0, x_1); +lean_closure_set(x_694, 1, x_687); +x_712 = lean_unbox(x_691); +lean_dec(x_691); +if (x_712 == 0) +{ +lean_dec(x_693); +lean_dec(x_688); +x_695 = x_678; +x_696 = x_3; +x_697 = x_4; +x_698 = x_5; +x_699 = x_6; +x_700 = x_7; +x_701 = x_8; +x_702 = x_9; +x_703 = x_10; +x_704 = x_692; +goto block_711; +} +else +{ +lean_object* x_713; +x_713 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_692); +if (lean_obj_tag(x_713) == 0) +{ +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_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; +x_714 = lean_ctor_get(x_713, 1); +lean_inc(x_714); +if (lean_is_exclusive(x_713)) { + lean_ctor_release(x_713, 0); + lean_ctor_release(x_713, 1); + x_715 = x_713; +} else { + lean_dec_ref(x_713); x_715 = lean_box(0); } -x_716 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; -x_717 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_716, x_9, x_713); -x_718 = lean_ctor_get(x_717, 0); -lean_inc(x_718); -x_719 = lean_ctor_get(x_717, 1); -lean_inc(x_719); -if (lean_is_exclusive(x_717)) { - lean_ctor_release(x_717, 0); - lean_ctor_release(x_717, 1); - x_720 = x_717; +x_716 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; +lean_inc(x_678); +x_717 = l_Nat_reprFast(x_678); +if (lean_is_scalar(x_688)) { + x_718 = lean_alloc_ctor(3, 1, 0); } else { - lean_dec_ref(x_717); - x_720 = lean_box(0); + x_718 = x_688; + lean_ctor_set_tag(x_718, 3); } -lean_inc_ref(x_1); -x_721 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2), 3, 2); -lean_closure_set(x_721, 0, x_1); -lean_closure_set(x_721, 1, x_714); -x_739 = lean_unbox(x_718); -lean_dec(x_718); -if (x_739 == 0) -{ -lean_dec(x_720); -lean_dec(x_715); -lean_dec(x_704); -x_722 = x_706; -x_723 = x_3; -x_724 = x_4; -x_725 = x_5; -x_726 = x_6; -x_727 = x_7; -x_728 = x_8; -x_729 = x_9; -x_730 = x_10; -x_731 = x_719; -goto block_738; -} -else -{ -lean_object* x_740; -x_740 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_719); -if (lean_obj_tag(x_740) == 0) -{ -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_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; -x_741 = lean_ctor_get(x_740, 1); -lean_inc(x_741); -if (lean_is_exclusive(x_740)) { - lean_ctor_release(x_740, 0); - lean_ctor_release(x_740, 1); - x_742 = x_740; -} else { - lean_dec_ref(x_740); - x_742 = lean_box(0); -} -x_743 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; -x_744 = l_Nat_reprFast(x_704); +lean_ctor_set(x_718, 0, x_717); +x_719 = l_Lean_MessageData_ofFormat(x_718); if (lean_is_scalar(x_715)) { - x_745 = lean_alloc_ctor(3, 1, 0); + x_720 = lean_alloc_ctor(7, 2, 0); } else { - x_745 = x_715; - lean_ctor_set_tag(x_745, 3); + x_720 = x_715; + lean_ctor_set_tag(x_720, 7); } -lean_ctor_set(x_745, 0, x_744); -x_746 = l_Lean_MessageData_ofFormat(x_745); -if (lean_is_scalar(x_742)) { - x_747 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_720, 0, x_716); +lean_ctor_set(x_720, 1, x_719); +x_721 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_693)) { + x_722 = lean_alloc_ctor(7, 2, 0); } else { - x_747 = x_742; - lean_ctor_set_tag(x_747, 7); + x_722 = x_693; + lean_ctor_set_tag(x_722, 7); } -lean_ctor_set(x_747, 0, x_743); -lean_ctor_set(x_747, 1, x_746); -x_748 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; -if (lean_is_scalar(x_720)) { - x_749 = lean_alloc_ctor(7, 2, 0); -} else { - x_749 = x_720; - lean_ctor_set_tag(x_749, 7); -} -lean_ctor_set(x_749, 0, x_747); -lean_ctor_set(x_749, 1, x_748); +lean_ctor_set(x_722, 0, x_720); +lean_ctor_set(x_722, 1, x_721); lean_inc_ref(x_1); -x_750 = l_Lean_MessageData_ofExpr(x_1); -x_751 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_751, 0, x_749); -lean_ctor_set(x_751, 1, x_750); -x_752 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_716, x_751, x_7, x_8, x_9, x_10, x_741); -x_753 = lean_ctor_get(x_752, 1); -lean_inc(x_753); -lean_dec_ref(x_752); -x_722 = x_706; -x_723 = x_3; -x_724 = x_4; -x_725 = x_5; -x_726 = x_6; -x_727 = x_7; -x_728 = x_8; -x_729 = x_9; -x_730 = x_10; -x_731 = x_753; -goto block_738; -} -else -{ -lean_dec_ref(x_721); -lean_dec(x_720); -lean_dec(x_715); -lean_dec_ref(x_706); -lean_dec(x_704); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -return x_740; -} -} -block_738: -{ -lean_object* x_732; -lean_inc_ref(x_722); -lean_inc_ref(x_1); -x_732 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_722, x_723, x_724, x_725, x_726, x_727, x_728, x_729, x_730, x_731); -if (lean_obj_tag(x_732) == 0) -{ -lean_object* x_733; lean_object* x_734; lean_object* x_735; -x_733 = lean_ctor_get(x_732, 1); -lean_inc(x_733); -lean_dec_ref(x_732); -x_734 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; -lean_inc(x_723); -x_735 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_734, x_1, x_723, x_724, x_725, x_726, x_727, x_728, x_729, x_730, x_733); -if (lean_obj_tag(x_735) == 0) -{ -lean_object* x_736; lean_object* x_737; -x_736 = lean_ctor_get(x_735, 1); -lean_inc(x_736); -lean_dec_ref(x_735); -x_737 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_721, x_722, x_723, x_736); -lean_dec(x_723); -return x_737; -} -else -{ -lean_dec(x_723); -lean_dec_ref(x_722); -lean_dec_ref(x_721); -return x_735; -} -} -else -{ -lean_dec(x_730); -lean_dec_ref(x_729); -lean_dec(x_728); -lean_dec_ref(x_727); -lean_dec(x_726); +x_723 = l_Lean_MessageData_ofExpr(x_1); +x_724 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_724, 0, x_722); +lean_ctor_set(x_724, 1, x_723); +x_725 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_689, x_724, x_7, x_8, x_9, x_10, x_714); +x_726 = lean_ctor_get(x_725, 1); +lean_inc(x_726); lean_dec_ref(x_725); -lean_dec(x_724); -lean_dec(x_723); -lean_dec_ref(x_722); -lean_dec_ref(x_721); -lean_dec_ref(x_1); -return x_732; -} -} -} +x_695 = x_678; +x_696 = x_3; +x_697 = x_4; +x_698 = x_5; +x_699 = x_6; +x_700 = x_7; +x_701 = x_8; +x_702 = x_9; +x_703 = x_10; +x_704 = x_726; +goto block_711; } else { -lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; -lean_dec_ref(x_706); -lean_dec(x_704); +lean_dec_ref(x_694); +lean_dec(x_693); +lean_dec(x_688); +lean_dec(x_678); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16499,33 +16536,64 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_754 = lean_ctor_get(x_707, 0); -lean_inc(x_754); -x_755 = lean_ctor_get(x_707, 1); -lean_inc(x_755); -if (lean_is_exclusive(x_707)) { - lean_ctor_release(x_707, 0); - lean_ctor_release(x_707, 1); - x_756 = x_707; -} else { - lean_dec_ref(x_707); - x_756 = lean_box(0); +return x_713; } -if (lean_is_scalar(x_756)) { - x_757 = lean_alloc_ctor(1, 2, 0); -} else { - x_757 = x_756; } -lean_ctor_set(x_757, 0, x_754); -lean_ctor_set(x_757, 1, x_755); -return x_757; +block_711: +{ +lean_object* x_705; +lean_inc(x_695); +lean_inc_ref(x_1); +x_705 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_695, x_696, x_697, x_698, x_699, x_700, x_701, x_702, x_703, x_704); +if (lean_obj_tag(x_705) == 0) +{ +lean_object* x_706; lean_object* x_707; lean_object* x_708; +x_706 = lean_ctor_get(x_705, 1); +lean_inc(x_706); +lean_dec_ref(x_705); +x_707 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_696); +x_708 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_707, x_1, x_696, x_697, x_698, x_699, x_700, x_701, x_702, x_703, x_706); +if (lean_obj_tag(x_708) == 0) +{ +lean_object* x_709; lean_object* x_710; +x_709 = lean_ctor_get(x_708, 1); +lean_inc(x_709); +lean_dec_ref(x_708); +x_710 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_694, x_695, x_696, x_709); +lean_dec(x_696); +return x_710; +} +else +{ +lean_dec(x_696); +lean_dec(x_695); +lean_dec_ref(x_694); +return x_708; +} +} +else +{ +lean_dec(x_703); +lean_dec_ref(x_702); +lean_dec(x_701); +lean_dec_ref(x_700); +lean_dec(x_699); +lean_dec_ref(x_698); +lean_dec(x_697); +lean_dec(x_696); +lean_dec(x_695); +lean_dec_ref(x_694); +lean_dec_ref(x_1); +return x_705; +} } } } else { -lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; -lean_dec(x_581); +lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; +lean_dec(x_678); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16535,32 +16603,33 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_758 = lean_ctor_get(x_583, 0); -lean_inc(x_758); -x_759 = lean_ctor_get(x_583, 1); -lean_inc(x_759); -if (lean_is_exclusive(x_583)) { - lean_ctor_release(x_583, 0); - lean_ctor_release(x_583, 1); - x_760 = x_583; +x_727 = lean_ctor_get(x_680, 0); +lean_inc(x_727); +x_728 = lean_ctor_get(x_680, 1); +lean_inc(x_728); +if (lean_is_exclusive(x_680)) { + lean_ctor_release(x_680, 0); + lean_ctor_release(x_680, 1); + x_729 = x_680; } else { - lean_dec_ref(x_583); - x_760 = lean_box(0); + lean_dec_ref(x_680); + x_729 = lean_box(0); } -if (lean_is_scalar(x_760)) { - x_761 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_729)) { + x_730 = lean_alloc_ctor(1, 2, 0); } else { - x_761 = x_760; + x_730 = x_729; +} +lean_ctor_set(x_730, 0, x_727); +lean_ctor_set(x_730, 1, x_728); +return x_730; } -lean_ctor_set(x_761, 0, x_758); -lean_ctor_set(x_761, 1, x_759); -return x_761; } } else { -lean_object* x_762; lean_object* x_763; -lean_dec(x_581); +lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; +lean_dec(x_603); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16570,21 +16639,58 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec_ref(x_1); -x_762 = lean_box(0); -if (lean_is_scalar(x_577)) { - x_763 = lean_alloc_ctor(0, 2, 0); +x_731 = lean_ctor_get(x_611, 0); +lean_inc(x_731); +x_732 = lean_ctor_get(x_611, 1); +lean_inc(x_732); +if (lean_is_exclusive(x_611)) { + lean_ctor_release(x_611, 0); + lean_ctor_release(x_611, 1); + x_733 = x_611; } else { - x_763 = x_577; + lean_dec_ref(x_611); + x_733 = lean_box(0); } -lean_ctor_set(x_763, 0, x_762); -lean_ctor_set(x_763, 1, x_576); -return x_763; +if (lean_is_scalar(x_733)) { + x_734 = lean_alloc_ctor(1, 2, 0); +} else { + x_734 = x_733; } +lean_ctor_set(x_734, 0, x_731); +lean_ctor_set(x_734, 1, x_732); +return x_734; } } else { -lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; +lean_object* x_735; lean_object* x_736; lean_object* x_737; +lean_dec(x_603); +x_735 = lean_ctor_get(x_608, 1); +lean_inc(x_735); +lean_dec_ref(x_608); +x_736 = lean_ctor_get(x_609, 0); +lean_inc(x_736); +lean_dec_ref(x_609); +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_4); +lean_inc(x_3); +lean_inc(x_736); +lean_inc_ref(x_1); +x_737 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f(x_1, x_736, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_735); +if (lean_obj_tag(x_737) == 0) +{ +lean_object* x_738; +x_738 = lean_ctor_get(x_737, 0); +lean_inc(x_738); +if (lean_obj_tag(x_738) == 0) +{ +lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; +lean_dec(x_736); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16593,67 +16699,638 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); lean_dec_ref(x_1); -x_764 = lean_ctor_get(x_573, 1); -lean_inc(x_764); -if (lean_is_exclusive(x_573)) { - lean_ctor_release(x_573, 0); - lean_ctor_release(x_573, 1); - x_765 = x_573; +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_573); - x_765 = lean_box(0); + lean_dec_ref(x_737); + x_740 = lean_box(0); } -x_766 = lean_box(0); -if (lean_is_scalar(x_765)) { - x_767 = lean_alloc_ctor(0, 2, 0); +x_741 = lean_box(0); +if (lean_is_scalar(x_740)) { + x_742 = lean_alloc_ctor(0, 2, 0); } else { - x_767 = x_765; -} -lean_ctor_set(x_767, 0, x_766); -lean_ctor_set(x_767, 1, x_764); -return x_767; + x_742 = x_740; } +lean_ctor_set(x_742, 0, x_741); +lean_ctor_set(x_742, 1, x_739); +return x_742; } else { -lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_768 = lean_ctor_get(x_573, 0); +lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_764; lean_object* x_765; lean_object* x_766; uint8_t x_767; +x_743 = lean_ctor_get(x_737, 1); +lean_inc(x_743); +lean_dec_ref(x_737); +x_744 = lean_ctor_get(x_738, 0); +lean_inc(x_744); +if (lean_is_exclusive(x_738)) { + lean_ctor_release(x_738, 0); + x_745 = x_738; +} else { + lean_dec_ref(x_738); + x_745 = lean_box(0); +} +x_764 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_765 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_764, x_9, x_743); +x_766 = lean_ctor_get(x_765, 0); +lean_inc(x_766); +x_767 = lean_unbox(x_766); +lean_dec(x_766); +if (x_767 == 0) +{ +lean_object* x_768; +lean_dec(x_745); +x_768 = lean_ctor_get(x_765, 1); lean_inc(x_768); -x_769 = lean_ctor_get(x_573, 1); +lean_dec_ref(x_765); +x_746 = x_736; +x_747 = x_3; +x_748 = x_4; +x_749 = x_5; +x_750 = x_6; +x_751 = x_7; +x_752 = x_8; +x_753 = x_9; +x_754 = x_10; +x_755 = x_768; +goto block_763; +} +else +{ +lean_object* x_769; lean_object* x_770; lean_object* x_771; +x_769 = lean_ctor_get(x_765, 1); lean_inc(x_769); -if (lean_is_exclusive(x_573)) { - lean_ctor_release(x_573, 0); - lean_ctor_release(x_573, 1); - x_770 = x_573; +if (lean_is_exclusive(x_765)) { + lean_ctor_release(x_765, 0); + lean_ctor_release(x_765, 1); + x_770 = x_765; } else { - lean_dec_ref(x_573); + lean_dec_ref(x_765); x_770 = lean_box(0); } -if (lean_is_scalar(x_770)) { - x_771 = lean_alloc_ctor(1, 2, 0); +x_771 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_769); +if (lean_obj_tag(x_771) == 0) +{ +lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; 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; +x_772 = lean_ctor_get(x_771, 1); +lean_inc(x_772); +if (lean_is_exclusive(x_771)) { + lean_ctor_release(x_771, 0); + lean_ctor_release(x_771, 1); + x_773 = x_771; } else { - x_771 = x_770; + lean_dec_ref(x_771); + x_773 = lean_box(0); } -lean_ctor_set(x_771, 0, x_768); -lean_ctor_set(x_771, 1, x_769); +x_774 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; +lean_inc(x_736); +x_775 = l_Nat_reprFast(x_736); +if (lean_is_scalar(x_745)) { + x_776 = lean_alloc_ctor(3, 1, 0); +} else { + x_776 = x_745; + lean_ctor_set_tag(x_776, 3); +} +lean_ctor_set(x_776, 0, x_775); +x_777 = l_Lean_MessageData_ofFormat(x_776); +if (lean_is_scalar(x_773)) { + x_778 = lean_alloc_ctor(7, 2, 0); +} else { + x_778 = x_773; + lean_ctor_set_tag(x_778, 7); +} +lean_ctor_set(x_778, 0, x_774); +lean_ctor_set(x_778, 1, x_777); +x_779 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_770)) { + x_780 = lean_alloc_ctor(7, 2, 0); +} else { + x_780 = x_770; + lean_ctor_set_tag(x_780, 7); +} +lean_ctor_set(x_780, 0, x_778); +lean_ctor_set(x_780, 1, x_779); +lean_inc_ref(x_1); +x_781 = l_Lean_MessageData_ofExpr(x_1); +x_782 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_782, 0, x_780); +lean_ctor_set(x_782, 1, x_781); +x_783 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_764, x_782, x_7, x_8, x_9, x_10, x_772); +x_784 = lean_ctor_get(x_783, 1); +lean_inc(x_784); +lean_dec_ref(x_783); +x_746 = x_736; +x_747 = x_3; +x_748 = x_4; +x_749 = x_5; +x_750 = x_6; +x_751 = x_7; +x_752 = x_8; +x_753 = x_9; +x_754 = x_10; +x_755 = x_784; +goto block_763; +} +else +{ +lean_dec(x_770); +lean_dec(x_745); +lean_dec(x_744); +lean_dec(x_736); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); return x_771; } } +block_763: +{ +lean_object* x_756; +lean_inc(x_746); +lean_inc_ref(x_1); +x_756 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_746, x_747, x_748, x_749, x_750, x_751, x_752, x_753, x_754, x_755); +if (lean_obj_tag(x_756) == 0) +{ +lean_object* x_757; lean_object* x_758; lean_object* x_759; +x_757 = lean_ctor_get(x_756, 1); +lean_inc(x_757); +lean_dec_ref(x_756); +x_758 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_747); +lean_inc_ref(x_1); +x_759 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_758, x_1, x_747, x_748, x_749, x_750, x_751, x_752, x_753, x_754, x_757); +if (lean_obj_tag(x_759) == 0) +{ +lean_object* x_760; lean_object* x_761; lean_object* x_762; +x_760 = lean_ctor_get(x_759, 1); +lean_inc(x_760); +lean_dec_ref(x_759); +x_761 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2___boxed), 4, 3); +lean_closure_set(x_761, 0, x_746); +lean_closure_set(x_761, 1, x_1); +lean_closure_set(x_761, 2, x_744); +x_762 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_758, x_761, x_747, x_760); +lean_dec(x_747); +return x_762; +} else { -lean_object* x_772; lean_object* x_773; +lean_dec(x_747); +lean_dec(x_746); +lean_dec(x_744); +lean_dec_ref(x_1); +return x_759; +} +} +else +{ +lean_dec(x_754); +lean_dec_ref(x_753); +lean_dec(x_752); +lean_dec_ref(x_751); +lean_dec(x_750); +lean_dec_ref(x_749); +lean_dec(x_748); +lean_dec(x_747); +lean_dec(x_746); +lean_dec(x_744); +lean_dec_ref(x_1); +return x_756; +} +} +} +} +else +{ +lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; +lean_dec(x_736); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_785 = lean_ctor_get(x_737, 0); +lean_inc(x_785); +x_786 = lean_ctor_get(x_737, 1); +lean_inc(x_786); +if (lean_is_exclusive(x_737)) { + lean_ctor_release(x_737, 0); + lean_ctor_release(x_737, 1); + x_787 = x_737; +} else { + lean_dec_ref(x_737); + x_787 = lean_box(0); +} +if (lean_is_scalar(x_787)) { + x_788 = lean_alloc_ctor(1, 2, 0); +} else { + x_788 = x_787; +} +lean_ctor_set(x_788, 0, x_785); +lean_ctor_set(x_788, 1, x_786); +return x_788; +} +} +} +else +{ +lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; +lean_dec(x_603); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_789 = lean_ctor_get(x_608, 0); +lean_inc(x_789); +x_790 = lean_ctor_get(x_608, 1); +lean_inc(x_790); +if (lean_is_exclusive(x_608)) { + lean_ctor_release(x_608, 0); + lean_ctor_release(x_608, 1); + x_791 = x_608; +} else { + lean_dec_ref(x_608); + x_791 = lean_box(0); +} +if (lean_is_scalar(x_791)) { + x_792 = lean_alloc_ctor(1, 2, 0); +} else { + x_792 = x_791; +} +lean_ctor_set(x_792, 0, x_789); +lean_ctor_set(x_792, 1, x_790); +return x_792; +} +} +else +{ +lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; +lean_dec(x_603); +x_793 = lean_ctor_get(x_605, 1); +lean_inc(x_793); +lean_dec_ref(x_605); +x_794 = lean_ctor_get(x_606, 0); +lean_inc(x_794); +lean_dec_ref(x_606); +x_795 = lean_unsigned_to_nat(0u); +lean_inc(x_794); +x_796 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_796, 0, x_794); +lean_ctor_set_uint8(x_796, sizeof(void*)*1, x_604); +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_4); +lean_inc(x_3); +lean_inc_ref(x_796); +lean_inc_ref(x_1); +x_797 = l_Lean_Meta_Grind_Arith_CommRing_reify_x3f(x_1, x_14, x_795, x_796, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_793); +if (lean_obj_tag(x_797) == 0) +{ +lean_object* x_798; +x_798 = lean_ctor_get(x_797, 0); +lean_inc(x_798); +if (lean_obj_tag(x_798) == 0) +{ +lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; +lean_dec_ref(x_796); +lean_dec(x_794); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_799 = lean_ctor_get(x_797, 1); +lean_inc(x_799); +if (lean_is_exclusive(x_797)) { + lean_ctor_release(x_797, 0); + lean_ctor_release(x_797, 1); + x_800 = x_797; +} else { + lean_dec_ref(x_797); + x_800 = lean_box(0); +} +x_801 = lean_box(0); +if (lean_is_scalar(x_800)) { + x_802 = lean_alloc_ctor(0, 2, 0); +} else { + x_802 = x_800; +} +lean_ctor_set(x_802, 0, x_801); +lean_ctor_set(x_802, 1, x_799); +return x_802; +} +else +{ +lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; 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; uint8_t x_829; +x_803 = lean_ctor_get(x_797, 1); +lean_inc(x_803); +lean_dec_ref(x_797); +x_804 = lean_ctor_get(x_798, 0); +lean_inc(x_804); +if (lean_is_exclusive(x_798)) { + lean_ctor_release(x_798, 0); + x_805 = x_798; +} else { + lean_dec_ref(x_798); + x_805 = lean_box(0); +} +x_806 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_807 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(x_806, x_9, x_803); +x_808 = lean_ctor_get(x_807, 0); +lean_inc(x_808); +x_809 = lean_ctor_get(x_807, 1); +lean_inc(x_809); +if (lean_is_exclusive(x_807)) { + lean_ctor_release(x_807, 0); + lean_ctor_release(x_807, 1); + x_810 = x_807; +} else { + lean_dec_ref(x_807); + x_810 = lean_box(0); +} +lean_inc_ref(x_1); +x_811 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__3), 3, 2); +lean_closure_set(x_811, 0, x_1); +lean_closure_set(x_811, 1, x_804); +x_829 = lean_unbox(x_808); +lean_dec(x_808); +if (x_829 == 0) +{ +lean_dec(x_810); +lean_dec(x_805); +lean_dec(x_794); +x_812 = x_796; +x_813 = x_3; +x_814 = x_4; +x_815 = x_5; +x_816 = x_6; +x_817 = x_7; +x_818 = x_8; +x_819 = x_9; +x_820 = x_10; +x_821 = x_809; +goto block_828; +} +else +{ +lean_object* x_830; +x_830 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_809); +if (lean_obj_tag(x_830) == 0) +{ +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_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; +x_831 = lean_ctor_get(x_830, 1); +lean_inc(x_831); +if (lean_is_exclusive(x_830)) { + lean_ctor_release(x_830, 0); + lean_ctor_release(x_830, 1); + x_832 = x_830; +} else { + lean_dec_ref(x_830); + x_832 = lean_box(0); +} +x_833 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14; +x_834 = l_Nat_reprFast(x_794); +if (lean_is_scalar(x_805)) { + x_835 = lean_alloc_ctor(3, 1, 0); +} else { + x_835 = x_805; + lean_ctor_set_tag(x_835, 3); +} +lean_ctor_set(x_835, 0, x_834); +x_836 = l_Lean_MessageData_ofFormat(x_835); +if (lean_is_scalar(x_832)) { + x_837 = lean_alloc_ctor(7, 2, 0); +} else { + x_837 = x_832; + lean_ctor_set_tag(x_837, 7); +} +lean_ctor_set(x_837, 0, x_833); +lean_ctor_set(x_837, 1, x_836); +x_838 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_810)) { + x_839 = lean_alloc_ctor(7, 2, 0); +} else { + x_839 = x_810; + lean_ctor_set_tag(x_839, 7); +} +lean_ctor_set(x_839, 0, x_837); +lean_ctor_set(x_839, 1, x_838); +lean_inc_ref(x_1); +x_840 = l_Lean_MessageData_ofExpr(x_1); +x_841 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_841, 0, x_839); +lean_ctor_set(x_841, 1, x_840); +x_842 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_806, x_841, x_7, x_8, x_9, x_10, x_831); +x_843 = lean_ctor_get(x_842, 1); +lean_inc(x_843); +lean_dec_ref(x_842); +x_812 = x_796; +x_813 = x_3; +x_814 = x_4; +x_815 = x_5; +x_816 = x_6; +x_817 = x_7; +x_818 = x_8; +x_819 = x_9; +x_820 = x_10; +x_821 = x_843; +goto block_828; +} +else +{ +lean_dec_ref(x_811); +lean_dec(x_810); +lean_dec(x_805); +lean_dec_ref(x_796); +lean_dec(x_794); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_830; +} +} +block_828: +{ +lean_object* x_822; +lean_inc_ref(x_812); +lean_inc_ref(x_1); +x_822 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_812, x_813, x_814, x_815, x_816, x_817, x_818, x_819, x_820, x_821); +if (lean_obj_tag(x_822) == 0) +{ +lean_object* x_823; lean_object* x_824; lean_object* x_825; +x_823 = lean_ctor_get(x_822, 1); +lean_inc(x_823); +lean_dec_ref(x_822); +x_824 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_813); +x_825 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_824, x_1, x_813, x_814, x_815, x_816, x_817, x_818, x_819, x_820, x_823); +if (lean_obj_tag(x_825) == 0) +{ +lean_object* x_826; lean_object* x_827; +x_826 = lean_ctor_get(x_825, 1); +lean_inc(x_826); +lean_dec_ref(x_825); +x_827 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_811, x_812, x_813, x_826); +lean_dec(x_813); +return x_827; +} +else +{ +lean_dec(x_813); +lean_dec_ref(x_812); +lean_dec_ref(x_811); +return x_825; +} +} +else +{ +lean_dec(x_820); +lean_dec_ref(x_819); +lean_dec(x_818); +lean_dec_ref(x_817); +lean_dec(x_816); +lean_dec_ref(x_815); +lean_dec(x_814); +lean_dec(x_813); +lean_dec_ref(x_812); +lean_dec_ref(x_811); +lean_dec_ref(x_1); +return x_822; +} +} +} +} +else +{ +lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; +lean_dec_ref(x_796); +lean_dec(x_794); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_844 = lean_ctor_get(x_797, 0); +lean_inc(x_844); +x_845 = lean_ctor_get(x_797, 1); +lean_inc(x_845); +if (lean_is_exclusive(x_797)) { + lean_ctor_release(x_797, 0); + lean_ctor_release(x_797, 1); + x_846 = x_797; +} else { + lean_dec_ref(x_797); + x_846 = lean_box(0); +} +if (lean_is_scalar(x_846)) { + x_847 = lean_alloc_ctor(1, 2, 0); +} else { + x_847 = x_846; +} +lean_ctor_set(x_847, 0, x_844); +lean_ctor_set(x_847, 1, x_845); +return x_847; +} +} +} +else +{ +lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; +lean_dec(x_603); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_848 = lean_ctor_get(x_605, 0); +lean_inc(x_848); +x_849 = lean_ctor_get(x_605, 1); +lean_inc(x_849); +if (lean_is_exclusive(x_605)) { + lean_ctor_release(x_605, 0); + lean_ctor_release(x_605, 1); + x_850 = x_605; +} else { + lean_dec_ref(x_605); + x_850 = lean_box(0); +} +if (lean_is_scalar(x_850)) { + x_851 = lean_alloc_ctor(1, 2, 0); +} else { + x_851 = x_850; +} +lean_ctor_set(x_851, 0, x_848); +lean_ctor_set(x_851, 1, x_849); +return x_851; +} +} +else +{ +lean_object* x_852; lean_object* x_853; +lean_dec(x_603); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_852 = lean_box(0); +x_853 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_853, 0, x_852); +lean_ctor_set(x_853, 1, x_599); +return x_853; +} +} +} +} +else +{ +uint8_t x_854; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16664,18 +17341,33 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_772 = lean_box(0); -x_773 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_773, 0, x_772); -lean_ctor_set(x_773, 1, x_571); -return x_773; +x_854 = !lean_is_exclusive(x_25); +if (x_854 == 0) +{ +lean_object* x_855; lean_object* x_856; +x_855 = lean_ctor_get(x_25, 0); +lean_dec(x_855); +x_856 = lean_box(0); +lean_ctor_set(x_25, 0, x_856); +return x_25; } +else +{ +lean_object* x_857; lean_object* x_858; lean_object* x_859; +x_857 = lean_ctor_get(x_25, 1); +lean_inc(x_857); +lean_dec(x_25); +x_858 = lean_box(0); +x_859 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_859, 0, x_858); +lean_ctor_set(x_859, 1, x_857); +return x_859; } } } else { -uint8_t x_774; +uint8_t x_860; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -16686,23 +17378,1647 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_774 = !lean_is_exclusive(x_12); -if (x_774 == 0) +x_860 = !lean_is_exclusive(x_25); +if (x_860 == 0) +{ +return x_25; +} +else +{ +lean_object* x_861; lean_object* x_862; lean_object* x_863; +x_861 = lean_ctor_get(x_25, 0); +x_862 = lean_ctor_get(x_25, 1); +lean_inc(x_862); +lean_inc(x_861); +lean_dec(x_25); +x_863 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_863, 0, x_861); +lean_ctor_set(x_863, 1, x_862); +return x_863; +} +} +} +else +{ +lean_object* x_864; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_864 = lean_box(0); +lean_ctor_set(x_12, 0, x_864); +return x_12; +} +} +else +{ +lean_object* x_865; uint8_t x_866; +x_865 = lean_ctor_get(x_12, 1); +lean_inc(x_865); +lean_dec(x_12); +x_866 = l_Lean_Meta_Grind_Arith_isIntModuleVirtualParent(x_2); +if (x_866 == 0) +{ +lean_object* x_867; +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_4); +lean_inc(x_3); +lean_inc_ref(x_1); +x_867 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_internalizeInv(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_865); +if (lean_obj_tag(x_867) == 0) +{ +lean_object* x_868; uint8_t x_869; +x_868 = lean_ctor_get(x_867, 0); +lean_inc(x_868); +x_869 = lean_unbox(x_868); +lean_dec(x_868); +if (x_869 == 0) +{ +lean_object* x_870; lean_object* x_871; lean_object* x_872; +x_870 = lean_ctor_get(x_867, 1); +lean_inc(x_870); +if (lean_is_exclusive(x_867)) { + lean_ctor_release(x_867, 0); + lean_ctor_release(x_867, 1); + x_871 = x_867; +} else { + lean_dec_ref(x_867); + x_871 = lean_box(0); +} +lean_inc_ref(x_1); +x_872 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_getType_x3f(x_1); +if (lean_obj_tag(x_872) == 0) +{ +lean_object* x_873; lean_object* x_874; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_873 = lean_box(0); +if (lean_is_scalar(x_871)) { + x_874 = lean_alloc_ctor(0, 2, 0); +} else { + x_874 = x_871; +} +lean_ctor_set(x_874, 0, x_873); +lean_ctor_set(x_874, 1, x_870); +return x_874; +} +else +{ +lean_object* x_875; uint8_t x_876; +x_875 = lean_ctor_get(x_872, 0); +lean_inc(x_875); +lean_dec_ref(x_872); +x_876 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Internalize_0__Lean_Meta_Grind_Arith_CommRing_isForbiddenParent(x_2); +if (x_876 == 0) +{ +lean_object* x_877; +lean_dec(x_871); +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_4); +lean_inc(x_3); +lean_inc(x_875); +x_877 = l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(x_875, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_870); +if (lean_obj_tag(x_877) == 0) +{ +lean_object* x_878; +x_878 = lean_ctor_get(x_877, 0); +lean_inc(x_878); +if (lean_obj_tag(x_878) == 0) +{ +lean_object* x_879; lean_object* x_880; +x_879 = lean_ctor_get(x_877, 1); +lean_inc(x_879); +lean_dec_ref(x_877); +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_4); +lean_inc(x_3); +lean_inc(x_875); +x_880 = l_Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f(x_875, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_879); +if (lean_obj_tag(x_880) == 0) +{ +lean_object* x_881; +x_881 = lean_ctor_get(x_880, 0); +lean_inc(x_881); +if (lean_obj_tag(x_881) == 0) +{ +lean_object* x_882; lean_object* x_883; +x_882 = lean_ctor_get(x_880, 1); +lean_inc(x_882); +lean_dec_ref(x_880); +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_4); +lean_inc(x_3); +lean_inc(x_875); +x_883 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f(x_875, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_882); +if (lean_obj_tag(x_883) == 0) +{ +lean_object* x_884; +x_884 = lean_ctor_get(x_883, 0); +lean_inc(x_884); +if (lean_obj_tag(x_884) == 0) +{ +lean_object* x_885; lean_object* x_886; +x_885 = lean_ctor_get(x_883, 1); +lean_inc(x_885); +lean_dec_ref(x_883); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_886 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg(x_875, x_3, x_7, x_8, x_9, x_10, x_885); +if (lean_obj_tag(x_886) == 0) +{ +lean_object* x_887; +x_887 = lean_ctor_get(x_886, 0); +lean_inc(x_887); +if (lean_obj_tag(x_887) == 0) +{ +lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_888 = lean_ctor_get(x_886, 1); +lean_inc(x_888); +if (lean_is_exclusive(x_886)) { + lean_ctor_release(x_886, 0); + lean_ctor_release(x_886, 1); + x_889 = x_886; +} else { + lean_dec_ref(x_886); + x_889 = lean_box(0); +} +x_890 = lean_box(0); +if (lean_is_scalar(x_889)) { + x_891 = lean_alloc_ctor(0, 2, 0); +} else { + x_891 = x_889; +} +lean_ctor_set(x_891, 0, x_890); +lean_ctor_set(x_891, 1, x_888); +return x_891; +} +else +{ +lean_object* x_892; lean_object* x_893; lean_object* x_894; +x_892 = lean_ctor_get(x_886, 1); +lean_inc(x_892); +lean_dec_ref(x_886); +x_893 = lean_ctor_get(x_887, 0); +lean_inc(x_893); +lean_dec_ref(x_887); +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_4); +lean_inc(x_3); +lean_inc(x_893); +lean_inc_ref(x_1); +x_894 = l_Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f(x_1, x_893, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_892); +if (lean_obj_tag(x_894) == 0) +{ +lean_object* x_895; +x_895 = lean_ctor_get(x_894, 0); +lean_inc(x_895); +if (lean_obj_tag(x_895) == 0) +{ +lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; +lean_dec(x_893); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_896 = lean_ctor_get(x_894, 1); +lean_inc(x_896); +if (lean_is_exclusive(x_894)) { + lean_ctor_release(x_894, 0); + lean_ctor_release(x_894, 1); + x_897 = x_894; +} else { + lean_dec_ref(x_894); + x_897 = lean_box(0); +} +x_898 = lean_box(0); +if (lean_is_scalar(x_897)) { + x_899 = lean_alloc_ctor(0, 2, 0); +} else { + x_899 = x_897; +} +lean_ctor_set(x_899, 0, x_898); +lean_ctor_set(x_899, 1, x_896); +return x_899; +} +else +{ +lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; 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; lean_object* x_916; lean_object* x_917; lean_object* x_918; uint8_t x_926; +x_900 = lean_ctor_get(x_894, 1); +lean_inc(x_900); +lean_dec_ref(x_894); +x_901 = lean_ctor_get(x_895, 0); +lean_inc(x_901); +if (lean_is_exclusive(x_895)) { + lean_ctor_release(x_895, 0); + x_902 = x_895; +} else { + lean_dec_ref(x_895); + x_902 = lean_box(0); +} +x_903 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_904 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__5___redArg(x_903, x_9, x_900); +x_905 = lean_ctor_get(x_904, 0); +lean_inc(x_905); +x_906 = lean_ctor_get(x_904, 1); +lean_inc(x_906); +if (lean_is_exclusive(x_904)) { + lean_ctor_release(x_904, 0); + lean_ctor_release(x_904, 1); + x_907 = x_904; +} else { + lean_dec_ref(x_904); + x_907 = lean_box(0); +} +lean_inc_ref(x_1); +x_908 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__0), 3, 2); +lean_closure_set(x_908, 0, x_1); +lean_closure_set(x_908, 1, x_901); +x_926 = lean_unbox(x_905); +lean_dec(x_905); +if (x_926 == 0) +{ +lean_dec(x_907); +lean_dec(x_902); +x_909 = x_893; +x_910 = x_3; +x_911 = x_4; +x_912 = x_5; +x_913 = x_6; +x_914 = x_7; +x_915 = x_8; +x_916 = x_9; +x_917 = x_10; +x_918 = x_906; +goto block_925; +} +else +{ +lean_object* x_927; +x_927 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_906); +if (lean_obj_tag(x_927) == 0) +{ +lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; +x_928 = lean_ctor_get(x_927, 1); +lean_inc(x_928); +if (lean_is_exclusive(x_927)) { + lean_ctor_release(x_927, 0); + lean_ctor_release(x_927, 1); + x_929 = x_927; +} else { + lean_dec_ref(x_927); + x_929 = lean_box(0); +} +x_930 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__6; +lean_inc(x_893); +x_931 = l_Nat_reprFast(x_893); +if (lean_is_scalar(x_902)) { + x_932 = lean_alloc_ctor(3, 1, 0); +} else { + x_932 = x_902; + lean_ctor_set_tag(x_932, 3); +} +lean_ctor_set(x_932, 0, x_931); +x_933 = l_Lean_MessageData_ofFormat(x_932); +if (lean_is_scalar(x_929)) { + x_934 = lean_alloc_ctor(7, 2, 0); +} else { + x_934 = x_929; + lean_ctor_set_tag(x_934, 7); +} +lean_ctor_set(x_934, 0, x_930); +lean_ctor_set(x_934, 1, x_933); +x_935 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_907)) { + x_936 = lean_alloc_ctor(7, 2, 0); +} else { + x_936 = x_907; + lean_ctor_set_tag(x_936, 7); +} +lean_ctor_set(x_936, 0, x_934); +lean_ctor_set(x_936, 1, x_935); +lean_inc_ref(x_1); +x_937 = l_Lean_MessageData_ofExpr(x_1); +x_938 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_938, 0, x_936); +lean_ctor_set(x_938, 1, x_937); +x_939 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__6___redArg(x_903, x_938, x_7, x_8, x_9, x_10, x_928); +x_940 = lean_ctor_get(x_939, 1); +lean_inc(x_940); +lean_dec_ref(x_939); +x_909 = x_893; +x_910 = x_3; +x_911 = x_4; +x_912 = x_5; +x_913 = x_6; +x_914 = x_7; +x_915 = x_8; +x_916 = x_9; +x_917 = x_10; +x_918 = x_940; +goto block_925; +} +else +{ +lean_dec_ref(x_908); +lean_dec(x_907); +lean_dec(x_902); +lean_dec(x_893); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_927; +} +} +block_925: +{ +lean_object* x_919; +lean_inc(x_909); +lean_inc_ref(x_1); +x_919 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_909, x_910, x_911, x_912, x_913, x_914, x_915, x_916, x_917, x_918); +if (lean_obj_tag(x_919) == 0) +{ +lean_object* x_920; lean_object* x_921; lean_object* x_922; +x_920 = lean_ctor_get(x_919, 1); +lean_inc(x_920); +lean_dec_ref(x_919); +x_921 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_910); +x_922 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_921, x_1, x_910, x_911, x_912, x_913, x_914, x_915, x_916, x_917, x_920); +if (lean_obj_tag(x_922) == 0) +{ +lean_object* x_923; lean_object* x_924; +x_923 = lean_ctor_get(x_922, 1); +lean_inc(x_923); +lean_dec_ref(x_922); +x_924 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_908, x_909, x_910, x_923); +lean_dec(x_910); +return x_924; +} +else +{ +lean_dec(x_910); +lean_dec(x_909); +lean_dec_ref(x_908); +return x_922; +} +} +else +{ +lean_dec(x_917); +lean_dec_ref(x_916); +lean_dec(x_915); +lean_dec_ref(x_914); +lean_dec(x_913); +lean_dec_ref(x_912); +lean_dec(x_911); +lean_dec(x_910); +lean_dec(x_909); +lean_dec_ref(x_908); +lean_dec_ref(x_1); +return x_919; +} +} +} +} +else +{ +lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; +lean_dec(x_893); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_941 = lean_ctor_get(x_894, 0); +lean_inc(x_941); +x_942 = lean_ctor_get(x_894, 1); +lean_inc(x_942); +if (lean_is_exclusive(x_894)) { + lean_ctor_release(x_894, 0); + lean_ctor_release(x_894, 1); + x_943 = x_894; +} else { + lean_dec_ref(x_894); + x_943 = lean_box(0); +} +if (lean_is_scalar(x_943)) { + x_944 = lean_alloc_ctor(1, 2, 0); +} else { + x_944 = x_943; +} +lean_ctor_set(x_944, 0, x_941); +lean_ctor_set(x_944, 1, x_942); +return x_944; +} +} +} +else +{ +lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_945 = lean_ctor_get(x_886, 0); +lean_inc(x_945); +x_946 = lean_ctor_get(x_886, 1); +lean_inc(x_946); +if (lean_is_exclusive(x_886)) { + lean_ctor_release(x_886, 0); + lean_ctor_release(x_886, 1); + x_947 = x_886; +} else { + lean_dec_ref(x_886); + x_947 = lean_box(0); +} +if (lean_is_scalar(x_947)) { + x_948 = lean_alloc_ctor(1, 2, 0); +} else { + x_948 = x_947; +} +lean_ctor_set(x_948, 0, x_945); +lean_ctor_set(x_948, 1, x_946); +return x_948; +} +} +else +{ +lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; +lean_dec(x_875); +x_949 = lean_ctor_get(x_883, 1); +lean_inc(x_949); +lean_dec_ref(x_883); +x_950 = lean_ctor_get(x_884, 0); +lean_inc(x_950); +lean_dec_ref(x_884); +x_951 = lean_unsigned_to_nat(0u); +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_4); +lean_inc(x_3); +lean_inc(x_950); +lean_inc_ref(x_1); +x_952 = l_Lean_Meta_Grind_Arith_CommRing_ncreify_x3f(x_1, x_14, x_951, x_950, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_949); +if (lean_obj_tag(x_952) == 0) +{ +lean_object* x_953; +x_953 = lean_ctor_get(x_952, 0); +lean_inc(x_953); +if (lean_obj_tag(x_953) == 0) +{ +lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; +lean_dec(x_950); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_954 = lean_ctor_get(x_952, 1); +lean_inc(x_954); +if (lean_is_exclusive(x_952)) { + lean_ctor_release(x_952, 0); + lean_ctor_release(x_952, 1); + x_955 = x_952; +} else { + lean_dec_ref(x_952); + x_955 = lean_box(0); +} +x_956 = lean_box(0); +if (lean_is_scalar(x_955)) { + x_957 = lean_alloc_ctor(0, 2, 0); +} else { + x_957 = x_955; +} +lean_ctor_set(x_957, 0, x_956); +lean_ctor_set(x_957, 1, x_954); +return x_957; +} +else +{ +lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; uint8_t x_984; +x_958 = lean_ctor_get(x_952, 1); +lean_inc(x_958); +lean_dec_ref(x_952); +x_959 = lean_ctor_get(x_953, 0); +lean_inc(x_959); +if (lean_is_exclusive(x_953)) { + lean_ctor_release(x_953, 0); + x_960 = x_953; +} else { + lean_dec_ref(x_953); + x_960 = lean_box(0); +} +x_961 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_962 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__7___redArg(x_961, x_9, x_958); +x_963 = lean_ctor_get(x_962, 0); +lean_inc(x_963); +x_964 = lean_ctor_get(x_962, 1); +lean_inc(x_964); +if (lean_is_exclusive(x_962)) { + lean_ctor_release(x_962, 0); + lean_ctor_release(x_962, 1); + x_965 = x_962; +} else { + lean_dec_ref(x_962); + x_965 = lean_box(0); +} +lean_inc_ref(x_1); +x_966 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1), 3, 2); +lean_closure_set(x_966, 0, x_1); +lean_closure_set(x_966, 1, x_959); +x_984 = lean_unbox(x_963); +lean_dec(x_963); +if (x_984 == 0) +{ +lean_dec(x_965); +lean_dec(x_960); +x_967 = x_950; +x_968 = x_3; +x_969 = x_4; +x_970 = x_5; +x_971 = x_6; +x_972 = x_7; +x_973 = x_8; +x_974 = x_9; +x_975 = x_10; +x_976 = x_964; +goto block_983; +} +else +{ +lean_object* x_985; +x_985 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_964); +if (lean_obj_tag(x_985) == 0) +{ +lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; +x_986 = lean_ctor_get(x_985, 1); +lean_inc(x_986); +if (lean_is_exclusive(x_985)) { + lean_ctor_release(x_985, 0); + lean_ctor_release(x_985, 1); + x_987 = x_985; +} else { + lean_dec_ref(x_985); + x_987 = lean_box(0); +} +x_988 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__10; +lean_inc(x_950); +x_989 = l_Nat_reprFast(x_950); +if (lean_is_scalar(x_960)) { + x_990 = lean_alloc_ctor(3, 1, 0); +} else { + x_990 = x_960; + lean_ctor_set_tag(x_990, 3); +} +lean_ctor_set(x_990, 0, x_989); +x_991 = l_Lean_MessageData_ofFormat(x_990); +if (lean_is_scalar(x_987)) { + x_992 = lean_alloc_ctor(7, 2, 0); +} else { + x_992 = x_987; + lean_ctor_set_tag(x_992, 7); +} +lean_ctor_set(x_992, 0, x_988); +lean_ctor_set(x_992, 1, x_991); +x_993 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_965)) { + x_994 = lean_alloc_ctor(7, 2, 0); +} else { + x_994 = x_965; + lean_ctor_set_tag(x_994, 7); +} +lean_ctor_set(x_994, 0, x_992); +lean_ctor_set(x_994, 1, x_993); +lean_inc_ref(x_1); +x_995 = l_Lean_MessageData_ofExpr(x_1); +x_996 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_996, 0, x_994); +lean_ctor_set(x_996, 1, x_995); +x_997 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__8___redArg(x_961, x_996, x_7, x_8, x_9, x_10, x_986); +x_998 = lean_ctor_get(x_997, 1); +lean_inc(x_998); +lean_dec_ref(x_997); +x_967 = x_950; +x_968 = x_3; +x_969 = x_4; +x_970 = x_5; +x_971 = x_6; +x_972 = x_7; +x_973 = x_8; +x_974 = x_9; +x_975 = x_10; +x_976 = x_998; +goto block_983; +} +else +{ +lean_dec_ref(x_966); +lean_dec(x_965); +lean_dec(x_960); +lean_dec(x_950); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_985; +} +} +block_983: +{ +lean_object* x_977; +lean_inc(x_967); +lean_inc_ref(x_1); +x_977 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(x_1, x_967, x_968, x_969, x_970, x_971, x_972, x_973, x_974, x_975, x_976); +if (lean_obj_tag(x_977) == 0) +{ +lean_object* x_978; lean_object* x_979; lean_object* x_980; +x_978 = lean_ctor_get(x_977, 1); +lean_inc(x_978); +lean_dec_ref(x_977); +x_979 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_968); +x_980 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_979, x_1, x_968, x_969, x_970, x_971, x_972, x_973, x_974, x_975, x_978); +if (lean_obj_tag(x_980) == 0) +{ +lean_object* x_981; lean_object* x_982; +x_981 = lean_ctor_get(x_980, 1); +lean_inc(x_981); +lean_dec_ref(x_980); +x_982 = l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg(x_966, x_967, x_968, x_981); +lean_dec(x_968); +return x_982; +} +else +{ +lean_dec(x_968); +lean_dec(x_967); +lean_dec_ref(x_966); +return x_980; +} +} +else +{ +lean_dec(x_975); +lean_dec_ref(x_974); +lean_dec(x_973); +lean_dec_ref(x_972); +lean_dec(x_971); +lean_dec_ref(x_970); +lean_dec(x_969); +lean_dec(x_968); +lean_dec(x_967); +lean_dec_ref(x_966); +lean_dec_ref(x_1); +return x_977; +} +} +} +} +else +{ +lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; +lean_dec(x_950); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_999 = lean_ctor_get(x_952, 0); +lean_inc(x_999); +x_1000 = lean_ctor_get(x_952, 1); +lean_inc(x_1000); +if (lean_is_exclusive(x_952)) { + lean_ctor_release(x_952, 0); + lean_ctor_release(x_952, 1); + x_1001 = x_952; +} else { + lean_dec_ref(x_952); + x_1001 = lean_box(0); +} +if (lean_is_scalar(x_1001)) { + x_1002 = lean_alloc_ctor(1, 2, 0); +} else { + x_1002 = x_1001; +} +lean_ctor_set(x_1002, 0, x_999); +lean_ctor_set(x_1002, 1, x_1000); +return x_1002; +} +} +} +else +{ +lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; +lean_dec(x_875); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1003 = lean_ctor_get(x_883, 0); +lean_inc(x_1003); +x_1004 = lean_ctor_get(x_883, 1); +lean_inc(x_1004); +if (lean_is_exclusive(x_883)) { + lean_ctor_release(x_883, 0); + lean_ctor_release(x_883, 1); + x_1005 = x_883; +} else { + lean_dec_ref(x_883); + x_1005 = lean_box(0); +} +if (lean_is_scalar(x_1005)) { + x_1006 = lean_alloc_ctor(1, 2, 0); +} else { + x_1006 = x_1005; +} +lean_ctor_set(x_1006, 0, x_1003); +lean_ctor_set(x_1006, 1, x_1004); +return x_1006; +} +} +else +{ +lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; +lean_dec(x_875); +x_1007 = lean_ctor_get(x_880, 1); +lean_inc(x_1007); +lean_dec_ref(x_880); +x_1008 = lean_ctor_get(x_881, 0); +lean_inc(x_1008); +lean_dec_ref(x_881); +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_4); +lean_inc(x_3); +lean_inc(x_1008); +lean_inc_ref(x_1); +x_1009 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f(x_1, x_1008, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_1007); +if (lean_obj_tag(x_1009) == 0) +{ +lean_object* x_1010; +x_1010 = lean_ctor_get(x_1009, 0); +lean_inc(x_1010); +if (lean_obj_tag(x_1010) == 0) +{ +lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; +lean_dec(x_1008); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1011 = lean_ctor_get(x_1009, 1); +lean_inc(x_1011); +if (lean_is_exclusive(x_1009)) { + lean_ctor_release(x_1009, 0); + lean_ctor_release(x_1009, 1); + x_1012 = x_1009; +} else { + lean_dec_ref(x_1009); + x_1012 = lean_box(0); +} +x_1013 = lean_box(0); +if (lean_is_scalar(x_1012)) { + x_1014 = lean_alloc_ctor(0, 2, 0); +} else { + x_1014 = x_1012; +} +lean_ctor_set(x_1014, 0, x_1013); +lean_ctor_set(x_1014, 1, x_1011); +return x_1014; +} +else +{ +lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; uint8_t x_1039; +x_1015 = lean_ctor_get(x_1009, 1); +lean_inc(x_1015); +lean_dec_ref(x_1009); +x_1016 = lean_ctor_get(x_1010, 0); +lean_inc(x_1016); +if (lean_is_exclusive(x_1010)) { + lean_ctor_release(x_1010, 0); + x_1017 = x_1010; +} else { + lean_dec_ref(x_1010); + x_1017 = lean_box(0); +} +x_1036 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_1037 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__9___redArg(x_1036, x_9, x_1015); +x_1038 = lean_ctor_get(x_1037, 0); +lean_inc(x_1038); +x_1039 = lean_unbox(x_1038); +lean_dec(x_1038); +if (x_1039 == 0) +{ +lean_object* x_1040; +lean_dec(x_1017); +x_1040 = lean_ctor_get(x_1037, 1); +lean_inc(x_1040); +lean_dec_ref(x_1037); +x_1018 = x_1008; +x_1019 = x_3; +x_1020 = x_4; +x_1021 = x_5; +x_1022 = x_6; +x_1023 = x_7; +x_1024 = x_8; +x_1025 = x_9; +x_1026 = x_10; +x_1027 = x_1040; +goto block_1035; +} +else +{ +lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; +x_1041 = lean_ctor_get(x_1037, 1); +lean_inc(x_1041); +if (lean_is_exclusive(x_1037)) { + lean_ctor_release(x_1037, 0); + lean_ctor_release(x_1037, 1); + x_1042 = x_1037; +} else { + lean_dec_ref(x_1037); + x_1042 = lean_box(0); +} +x_1043 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_1041); +if (lean_obj_tag(x_1043) == 0) +{ +lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; +x_1044 = lean_ctor_get(x_1043, 1); +lean_inc(x_1044); +if (lean_is_exclusive(x_1043)) { + lean_ctor_release(x_1043, 0); + lean_ctor_release(x_1043, 1); + x_1045 = x_1043; +} else { + lean_dec_ref(x_1043); + x_1045 = lean_box(0); +} +x_1046 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12; +lean_inc(x_1008); +x_1047 = l_Nat_reprFast(x_1008); +if (lean_is_scalar(x_1017)) { + x_1048 = lean_alloc_ctor(3, 1, 0); +} else { + x_1048 = x_1017; + lean_ctor_set_tag(x_1048, 3); +} +lean_ctor_set(x_1048, 0, x_1047); +x_1049 = l_Lean_MessageData_ofFormat(x_1048); +if (lean_is_scalar(x_1045)) { + x_1050 = lean_alloc_ctor(7, 2, 0); +} else { + x_1050 = x_1045; + lean_ctor_set_tag(x_1050, 7); +} +lean_ctor_set(x_1050, 0, x_1046); +lean_ctor_set(x_1050, 1, x_1049); +x_1051 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_1042)) { + x_1052 = lean_alloc_ctor(7, 2, 0); +} else { + x_1052 = x_1042; + lean_ctor_set_tag(x_1052, 7); +} +lean_ctor_set(x_1052, 0, x_1050); +lean_ctor_set(x_1052, 1, x_1051); +lean_inc_ref(x_1); +x_1053 = l_Lean_MessageData_ofExpr(x_1); +x_1054 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_1054, 0, x_1052); +lean_ctor_set(x_1054, 1, x_1053); +x_1055 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__10___redArg(x_1036, x_1054, x_7, x_8, x_9, x_10, x_1044); +x_1056 = lean_ctor_get(x_1055, 1); +lean_inc(x_1056); +lean_dec_ref(x_1055); +x_1018 = x_1008; +x_1019 = x_3; +x_1020 = x_4; +x_1021 = x_5; +x_1022 = x_6; +x_1023 = x_7; +x_1024 = x_8; +x_1025 = x_9; +x_1026 = x_10; +x_1027 = x_1056; +goto block_1035; +} +else +{ +lean_dec(x_1042); +lean_dec(x_1017); +lean_dec(x_1016); +lean_dec(x_1008); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_1043; +} +} +block_1035: +{ +lean_object* x_1028; +lean_inc(x_1018); +lean_inc_ref(x_1); +x_1028 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_1018, x_1019, x_1020, x_1021, x_1022, x_1023, x_1024, x_1025, x_1026, x_1027); +if (lean_obj_tag(x_1028) == 0) +{ +lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; +x_1029 = lean_ctor_get(x_1028, 1); +lean_inc(x_1029); +lean_dec_ref(x_1028); +x_1030 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_1019); +lean_inc_ref(x_1); +x_1031 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_1030, x_1, x_1019, x_1020, x_1021, x_1022, x_1023, x_1024, x_1025, x_1026, x_1029); +if (lean_obj_tag(x_1031) == 0) +{ +lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; +x_1032 = lean_ctor_get(x_1031, 1); +lean_inc(x_1032); +lean_dec_ref(x_1031); +x_1033 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2___boxed), 4, 3); +lean_closure_set(x_1033, 0, x_1018); +lean_closure_set(x_1033, 1, x_1); +lean_closure_set(x_1033, 2, x_1016); +x_1034 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_1030, x_1033, x_1019, x_1032); +lean_dec(x_1019); +return x_1034; +} +else +{ +lean_dec(x_1019); +lean_dec(x_1018); +lean_dec(x_1016); +lean_dec_ref(x_1); +return x_1031; +} +} +else +{ +lean_dec(x_1026); +lean_dec_ref(x_1025); +lean_dec(x_1024); +lean_dec_ref(x_1023); +lean_dec(x_1022); +lean_dec_ref(x_1021); +lean_dec(x_1020); +lean_dec(x_1019); +lean_dec(x_1018); +lean_dec(x_1016); +lean_dec_ref(x_1); +return x_1028; +} +} +} +} +else +{ +lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; +lean_dec(x_1008); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1057 = lean_ctor_get(x_1009, 0); +lean_inc(x_1057); +x_1058 = lean_ctor_get(x_1009, 1); +lean_inc(x_1058); +if (lean_is_exclusive(x_1009)) { + lean_ctor_release(x_1009, 0); + lean_ctor_release(x_1009, 1); + x_1059 = x_1009; +} else { + lean_dec_ref(x_1009); + x_1059 = lean_box(0); +} +if (lean_is_scalar(x_1059)) { + x_1060 = lean_alloc_ctor(1, 2, 0); +} else { + x_1060 = x_1059; +} +lean_ctor_set(x_1060, 0, x_1057); +lean_ctor_set(x_1060, 1, x_1058); +return x_1060; +} +} +} +else +{ +lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; +lean_dec(x_875); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1061 = lean_ctor_get(x_880, 0); +lean_inc(x_1061); +x_1062 = lean_ctor_get(x_880, 1); +lean_inc(x_1062); +if (lean_is_exclusive(x_880)) { + lean_ctor_release(x_880, 0); + lean_ctor_release(x_880, 1); + x_1063 = x_880; +} else { + lean_dec_ref(x_880); + x_1063 = lean_box(0); +} +if (lean_is_scalar(x_1063)) { + x_1064 = lean_alloc_ctor(1, 2, 0); +} else { + x_1064 = x_1063; +} +lean_ctor_set(x_1064, 0, x_1061); +lean_ctor_set(x_1064, 1, x_1062); +return x_1064; +} +} +else +{ +lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; +lean_dec(x_875); +x_1065 = lean_ctor_get(x_877, 1); +lean_inc(x_1065); +lean_dec_ref(x_877); +x_1066 = lean_ctor_get(x_878, 0); +lean_inc(x_1066); +lean_dec_ref(x_878); +x_1067 = lean_unsigned_to_nat(0u); +lean_inc(x_1066); +x_1068 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_1068, 0, x_1066); +lean_ctor_set_uint8(x_1068, sizeof(void*)*1, x_876); +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_4); +lean_inc(x_3); +lean_inc_ref(x_1068); +lean_inc_ref(x_1); +x_1069 = l_Lean_Meta_Grind_Arith_CommRing_reify_x3f(x_1, x_14, x_1067, x_1068, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_1065); +if (lean_obj_tag(x_1069) == 0) +{ +lean_object* x_1070; +x_1070 = lean_ctor_get(x_1069, 0); +lean_inc(x_1070); +if (lean_obj_tag(x_1070) == 0) +{ +lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; +lean_dec_ref(x_1068); +lean_dec(x_1066); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1071 = lean_ctor_get(x_1069, 1); +lean_inc(x_1071); +if (lean_is_exclusive(x_1069)) { + lean_ctor_release(x_1069, 0); + lean_ctor_release(x_1069, 1); + x_1072 = x_1069; +} else { + lean_dec_ref(x_1069); + x_1072 = lean_box(0); +} +x_1073 = lean_box(0); +if (lean_is_scalar(x_1072)) { + x_1074 = lean_alloc_ctor(0, 2, 0); +} else { + x_1074 = x_1072; +} +lean_ctor_set(x_1074, 0, x_1073); +lean_ctor_set(x_1074, 1, x_1071); +return x_1074; +} +else +{ +lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; uint8_t x_1101; +x_1075 = lean_ctor_get(x_1069, 1); +lean_inc(x_1075); +lean_dec_ref(x_1069); +x_1076 = lean_ctor_get(x_1070, 0); +lean_inc(x_1076); +if (lean_is_exclusive(x_1070)) { + lean_ctor_release(x_1070, 0); + x_1077 = x_1070; +} else { + lean_dec_ref(x_1070); + x_1077 = lean_box(0); +} +x_1078 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__3; +x_1079 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(x_1078, x_9, x_1075); +x_1080 = lean_ctor_get(x_1079, 0); +lean_inc(x_1080); +x_1081 = lean_ctor_get(x_1079, 1); +lean_inc(x_1081); +if (lean_is_exclusive(x_1079)) { + lean_ctor_release(x_1079, 0); + lean_ctor_release(x_1079, 1); + x_1082 = x_1079; +} else { + lean_dec_ref(x_1079); + x_1082 = lean_box(0); +} +lean_inc_ref(x_1); +x_1083 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__3), 3, 2); +lean_closure_set(x_1083, 0, x_1); +lean_closure_set(x_1083, 1, x_1076); +x_1101 = lean_unbox(x_1080); +lean_dec(x_1080); +if (x_1101 == 0) +{ +lean_dec(x_1082); +lean_dec(x_1077); +lean_dec(x_1066); +x_1084 = x_1068; +x_1085 = x_3; +x_1086 = x_4; +x_1087 = x_5; +x_1088 = x_6; +x_1089 = x_7; +x_1090 = x_8; +x_1091 = x_9; +x_1092 = x_10; +x_1093 = x_1081; +goto block_1100; +} +else +{ +lean_object* x_1102; +x_1102 = l_Lean_Meta_Grind_updateLastTag(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_1081); +if (lean_obj_tag(x_1102) == 0) +{ +lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; +x_1103 = lean_ctor_get(x_1102, 1); +lean_inc(x_1103); +if (lean_is_exclusive(x_1102)) { + lean_ctor_release(x_1102, 0); + lean_ctor_release(x_1102, 1); + x_1104 = x_1102; +} else { + lean_dec_ref(x_1102); + x_1104 = lean_box(0); +} +x_1105 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14; +x_1106 = l_Nat_reprFast(x_1066); +if (lean_is_scalar(x_1077)) { + x_1107 = lean_alloc_ctor(3, 1, 0); +} else { + x_1107 = x_1077; + lean_ctor_set_tag(x_1107, 3); +} +lean_ctor_set(x_1107, 0, x_1106); +x_1108 = l_Lean_MessageData_ofFormat(x_1107); +if (lean_is_scalar(x_1104)) { + x_1109 = lean_alloc_ctor(7, 2, 0); +} else { + x_1109 = x_1104; + lean_ctor_set_tag(x_1109, 7); +} +lean_ctor_set(x_1109, 0, x_1105); +lean_ctor_set(x_1109, 1, x_1108); +x_1110 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__8; +if (lean_is_scalar(x_1082)) { + x_1111 = lean_alloc_ctor(7, 2, 0); +} else { + x_1111 = x_1082; + lean_ctor_set_tag(x_1111, 7); +} +lean_ctor_set(x_1111, 0, x_1109); +lean_ctor_set(x_1111, 1, x_1110); +lean_inc_ref(x_1); +x_1112 = l_Lean_MessageData_ofExpr(x_1); +x_1113 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_1113, 0, x_1111); +lean_ctor_set(x_1113, 1, x_1112); +x_1114 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_1078, x_1113, x_7, x_8, x_9, x_10, x_1103); +x_1115 = lean_ctor_get(x_1114, 1); +lean_inc(x_1115); +lean_dec_ref(x_1114); +x_1084 = x_1068; +x_1085 = x_3; +x_1086 = x_4; +x_1087 = x_5; +x_1088 = x_6; +x_1089 = x_7; +x_1090 = x_8; +x_1091 = x_9; +x_1092 = x_10; +x_1093 = x_1115; +goto block_1100; +} +else +{ +lean_dec_ref(x_1083); +lean_dec(x_1082); +lean_dec(x_1077); +lean_dec_ref(x_1068); +lean_dec(x_1066); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +return x_1102; +} +} +block_1100: +{ +lean_object* x_1094; +lean_inc_ref(x_1084); +lean_inc_ref(x_1); +x_1094 = l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(x_1, x_1084, x_1085, x_1086, x_1087, x_1088, x_1089, x_1090, x_1091, x_1092, x_1093); +if (lean_obj_tag(x_1094) == 0) +{ +lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; +x_1095 = lean_ctor_get(x_1094, 1); +lean_inc(x_1095); +lean_dec_ref(x_1094); +x_1096 = l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__4; +lean_inc(x_1085); +x_1097 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_1096, x_1, x_1085, x_1086, x_1087, x_1088, x_1089, x_1090, x_1091, x_1092, x_1095); +if (lean_obj_tag(x_1097) == 0) +{ +lean_object* x_1098; lean_object* x_1099; +x_1098 = lean_ctor_get(x_1097, 1); +lean_inc(x_1098); +lean_dec_ref(x_1097); +x_1099 = l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(x_1083, x_1084, x_1085, x_1098); +lean_dec(x_1085); +return x_1099; +} +else +{ +lean_dec(x_1085); +lean_dec_ref(x_1084); +lean_dec_ref(x_1083); +return x_1097; +} +} +else +{ +lean_dec(x_1092); +lean_dec_ref(x_1091); +lean_dec(x_1090); +lean_dec_ref(x_1089); +lean_dec(x_1088); +lean_dec_ref(x_1087); +lean_dec(x_1086); +lean_dec(x_1085); +lean_dec_ref(x_1084); +lean_dec_ref(x_1083); +lean_dec_ref(x_1); +return x_1094; +} +} +} +} +else +{ +lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; +lean_dec_ref(x_1068); +lean_dec(x_1066); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1116 = lean_ctor_get(x_1069, 0); +lean_inc(x_1116); +x_1117 = lean_ctor_get(x_1069, 1); +lean_inc(x_1117); +if (lean_is_exclusive(x_1069)) { + lean_ctor_release(x_1069, 0); + lean_ctor_release(x_1069, 1); + x_1118 = x_1069; +} else { + lean_dec_ref(x_1069); + x_1118 = lean_box(0); +} +if (lean_is_scalar(x_1118)) { + x_1119 = lean_alloc_ctor(1, 2, 0); +} else { + x_1119 = x_1118; +} +lean_ctor_set(x_1119, 0, x_1116); +lean_ctor_set(x_1119, 1, x_1117); +return x_1119; +} +} +} +else +{ +lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; +lean_dec(x_875); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1120 = lean_ctor_get(x_877, 0); +lean_inc(x_1120); +x_1121 = lean_ctor_get(x_877, 1); +lean_inc(x_1121); +if (lean_is_exclusive(x_877)) { + lean_ctor_release(x_877, 0); + lean_ctor_release(x_877, 1); + x_1122 = x_877; +} else { + lean_dec_ref(x_877); + x_1122 = lean_box(0); +} +if (lean_is_scalar(x_1122)) { + x_1123 = lean_alloc_ctor(1, 2, 0); +} else { + x_1123 = x_1122; +} +lean_ctor_set(x_1123, 0, x_1120); +lean_ctor_set(x_1123, 1, x_1121); +return x_1123; +} +} +else +{ +lean_object* x_1124; lean_object* x_1125; +lean_dec(x_875); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_1124 = lean_box(0); +if (lean_is_scalar(x_871)) { + x_1125 = lean_alloc_ctor(0, 2, 0); +} else { + x_1125 = x_871; +} +lean_ctor_set(x_1125, 0, x_1124); +lean_ctor_set(x_1125, 1, x_870); +return x_1125; +} +} +} +else +{ +lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_1126 = lean_ctor_get(x_867, 1); +lean_inc(x_1126); +if (lean_is_exclusive(x_867)) { + lean_ctor_release(x_867, 0); + lean_ctor_release(x_867, 1); + x_1127 = x_867; +} else { + lean_dec_ref(x_867); + x_1127 = lean_box(0); +} +x_1128 = lean_box(0); +if (lean_is_scalar(x_1127)) { + x_1129 = lean_alloc_ctor(0, 2, 0); +} else { + x_1129 = x_1127; +} +lean_ctor_set(x_1129, 0, x_1128); +lean_ctor_set(x_1129, 1, x_1126); +return x_1129; +} +} +else +{ +lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_1130 = lean_ctor_get(x_867, 0); +lean_inc(x_1130); +x_1131 = lean_ctor_get(x_867, 1); +lean_inc(x_1131); +if (lean_is_exclusive(x_867)) { + lean_ctor_release(x_867, 0); + lean_ctor_release(x_867, 1); + x_1132 = x_867; +} else { + lean_dec_ref(x_867); + x_1132 = lean_box(0); +} +if (lean_is_scalar(x_1132)) { + x_1133 = lean_alloc_ctor(1, 2, 0); +} else { + x_1133 = x_1132; +} +lean_ctor_set(x_1133, 0, x_1130); +lean_ctor_set(x_1133, 1, x_1131); +return x_1133; +} +} +else +{ +lean_object* x_1134; lean_object* x_1135; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_1134 = lean_box(0); +x_1135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1135, 0, x_1134); +lean_ctor_set(x_1135, 1, x_865); +return x_1135; +} +} +} +} +else +{ +uint8_t x_1136; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_1136 = !lean_is_exclusive(x_12); +if (x_1136 == 0) { return x_12; } else { -lean_object* x_775; lean_object* x_776; lean_object* x_777; -x_775 = lean_ctor_get(x_12, 0); -x_776 = lean_ctor_get(x_12, 1); -lean_inc(x_776); -lean_inc(x_775); +lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; +x_1137 = lean_ctor_get(x_12, 0); +x_1138 = lean_ctor_get(x_12, 1); +lean_inc(x_1138); +lean_inc(x_1137); lean_dec(x_12); -x_777 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_777, 0, x_775); -lean_ctor_set(x_777, 1, x_776); -return x_777; +x_1139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1139, 0, x_1137); +lean_ctor_set(x_1139, 1, x_1138); +return x_1139; } } } @@ -16887,7 +19203,7 @@ lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec_ref(x_2); +lean_dec(x_2); return x_12; } } @@ -16916,15 +19232,70 @@ lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___redArg(x_1, x_2, x_3); +lean_dec_ref(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11___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_12; +x_12 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___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: +{ +lean_object* x_8; +x_8 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_CommRing_internalize_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_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(x_4); lean_dec_ref(x_3); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Meta_Grind_Arith_CommRing_internalize___lam__2(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } @@ -17167,6 +19538,10 @@ l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__11 = _init_l_Lean_Meta_Gr lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__11); l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12 = _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__12); +l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__13 = _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__13); +l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14 = _init_l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_internalize___closed__14); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadCanon.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadCanon.c new file mode 100644 index 0000000000..154509ffbb --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadCanon.c @@ -0,0 +1,201 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.Arith.CommRing.MonadCanon +// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.Types +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg(lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_indentExpr(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_unsigned_to_nat(0u); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec_ref(x_1); +x_5 = lean_apply_1(x_4, x_3); +x_6 = lean_apply_2(x_2, lean_box(0), x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec_ref(x_1); +x_5 = lean_apply_1(x_4, x_3); +x_6 = lean_apply_2(x_2, lean_box(0), x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_inc(x_1); +lean_inc_ref(x_2); +x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_3, 0, x_2); +lean_closure_set(x_3, 1, x_1); +x_4 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1), 3, 2); +lean_closure_set(x_4, 0, x_2); +lean_closure_set(x_4, 1, x_1); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_inc(x_3); +lean_inc_ref(x_4); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_5, 0, x_4); +lean_closure_set(x_5, 1, x_3); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1), 3, 2); +lean_closure_set(x_6, 0, x_4); +lean_closure_set(x_6, 1, x_3); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`grind` failed to find instance", 31, 31); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_6 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1; +x_7 = l_Lean_indentExpr(x_1); +x_8 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_throwError___redArg(x_2, x_3, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_10 = lean_ctor_get(x_5, 0); +lean_inc(x_10); +lean_dec_ref(x_5); +x_11 = lean_apply_2(x_4, lean_box(0), x_10); +return x_11; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +lean_dec_ref(x_3); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_inc_ref(x_4); +x_9 = lean_apply_1(x_7, x_4); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0), 5, 4); +lean_closure_set(x_10, 0, x_4); +lean_closure_set(x_10, 1, x_1); +lean_closure_set(x_10, 2, x_2); +lean_closure_set(x_10, 3, x_8); +x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_9, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance(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; +x_6 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg(x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Types(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadCanon(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Types(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadRing.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadRing.c index cc4cf7a8b9..7c80e43fd9 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadRing.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadRing.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Arith.CommRing.MonadRing -// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.Types +// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.MonadCanon #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,189 +13,21 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadOfMonadCommRing___redArg___lam__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingOfMonadLift___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadLift___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCommRing_ctorIdx(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadOfMonadCommRing___redArg___lam__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg(lean_object*, lean_object*); -lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadRing_ctorIdx___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadOfMonadCommRing(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadRing_ctorIdx(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadOfMonadCommRing___redArg___lam__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadRingOfMonadOfMonadCommRing___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCommRing_ctorIdx___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_unsigned_to_nat(0u); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_ctorIdx(x_1, x_2); -lean_dec_ref(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec_ref(x_1); -x_5 = lean_apply_1(x_4, x_3); -x_6 = lean_apply_2(x_2, lean_box(0), x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec_ref(x_1); -x_5 = lean_apply_1(x_4, x_3); -x_6 = lean_apply_2(x_2, lean_box(0), x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -lean_inc(x_1); -lean_inc_ref(x_2); -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0), 3, 2); -lean_closure_set(x_3, 0, x_2); -lean_closure_set(x_3, 1, x_1); -x_4 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1), 3, 2); -lean_closure_set(x_4, 0, x_2); -lean_closure_set(x_4, 1, x_1); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_3); -lean_ctor_set(x_5, 1, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -lean_inc(x_3); -lean_inc_ref(x_4); -x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__0), 3, 2); -lean_closure_set(x_5, 0, x_4); -lean_closure_set(x_5, 1, x_3); -x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonOfMonadLift___redArg___lam__1), 3, 2); -lean_closure_set(x_6, 0, x_4); -lean_closure_set(x_6, 1, x_3); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_7, 1, x_6); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("`grind` failed to find instance", 31, 31); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_4); -x_6 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1; -x_7 = l_Lean_indentExpr(x_1); -x_8 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_8, 0, x_6); -lean_ctor_set(x_8, 1, x_7); -x_9 = l_Lean_throwError___redArg(x_2, x_3, x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_10 = lean_ctor_get(x_5, 0); -lean_inc(x_10); -lean_dec_ref(x_5); -x_11 = lean_apply_2(x_4, lean_box(0), x_10); -return x_11; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 1); -lean_inc(x_7); -lean_dec_ref(x_3); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -lean_inc_ref(x_4); -x_9 = lean_apply_1(x_7, x_4); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0), 5, 4); -lean_closure_set(x_10, 0, x_4); -lean_closure_set(x_10, 1, x_1); -lean_closure_set(x_10, 2, x_2); -lean_closure_set(x_10, 3, x_8); -x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_9, x_10); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance(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; -x_6 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg(x_2, x_3, x_4, x_5); -return x_6; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadRing_ctorIdx(lean_object* x_1, lean_object* x_2) { _start: { @@ -597,19 +429,15 @@ return x_19; } } } -lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Types(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadCanon(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadRing(uint8_t builtin, lean_object* w) { lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; -res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Types(builtin, lean_io_mk_world()); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadCanon(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___redArg___lam__0___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadSemiring.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadSemiring.c new file mode 100644 index 0000000000..2b16da6914 --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/MonadSemiring.c @@ -0,0 +1,411 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.Arith.CommRing.MonadSemiring +// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.MonadCanon +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCommSemiring_ctorIdx___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCommSemiring_ctorIdx(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadSemiring_ctorIdx___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadSemiring_ctorIdx(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadSemiring_ctorIdx(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_unsigned_to_nat(0u); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadSemiring_ctorIdx___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_MonadSemiring_ctorIdx(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_apply_1(x_1, x_3); +x_5 = lean_apply_2(x_2, lean_box(0), x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_6, 0, x_5); +lean_closure_set(x_6, 1, x_1); +x_7 = lean_apply_2(x_1, lean_box(0), x_4); +lean_ctor_set(x_2, 1, x_6); +lean_ctor_set(x_2, 0, x_7); +return x_2; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_2); +lean_inc(x_1); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_10, 0, x_9); +lean_closure_set(x_10, 1, x_1); +x_11 = lean_apply_2(x_1, lean_box(0), x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_3); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_8, 0, x_7); +lean_closure_set(x_8, 1, x_3); +x_9 = lean_apply_2(x_3, lean_box(0), x_6); +lean_ctor_set(x_4, 1, x_8); +lean_ctor_set(x_4, 0, x_9); +return x_4; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +lean_inc(x_3); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_3); +x_13 = lean_apply_2(x_3, lean_box(0), x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCommSemiring_ctorIdx(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_unsigned_to_nat(0u); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCommSemiring_ctorIdx___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_MonadCommSemiring_ctorIdx(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_apply_1(x_1, x_3); +x_5 = lean_apply_2(x_2, lean_box(0), x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_6, 0, x_5); +lean_closure_set(x_6, 1, x_1); +x_7 = lean_apply_2(x_1, lean_box(0), x_4); +lean_ctor_set(x_2, 1, x_6); +lean_ctor_set(x_2, 0, x_7); +return x_2; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_2); +lean_inc(x_1); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_10, 0, x_9); +lean_closure_set(x_10, 1, x_1); +x_11 = lean_apply_2(x_1, lean_box(0), x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_3); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_8, 0, x_7); +lean_closure_set(x_8, 1, x_3); +x_9 = lean_apply_2(x_3, lean_box(0), x_6); +lean_ctor_set(x_4, 1, x_8); +lean_ctor_set(x_4, 0, x_9); +return x_4; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +lean_inc(x_3); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringOfMonadLift___redArg___lam__0), 3, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_3); +x_13 = lean_apply_2(x_3, lean_box(0), x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_apply_1(x_1, x_4); +lean_ctor_set(x_2, 0, x_5); +return x_2; +} +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; lean_object* x_12; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_11 = lean_apply_1(x_1, x_6); +x_12 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_7); +lean_ctor_set(x_12, 2, x_8); +lean_ctor_set(x_12, 3, x_9); +lean_ctor_set(x_12, 4, x_10); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__0), 2, 1); +lean_closure_set(x_3, 0, x_2); +x_4 = lean_apply_1(x_1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_3); +lean_dec_ref(x_2); +x_4 = lean_apply_2(x_1, lean_box(0), x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec_ref(x_1); +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_3, 1); +lean_inc(x_8); +lean_dec_ref(x_3); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__1), 2, 1); +lean_closure_set(x_9, 0, x_7); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__2), 2, 1); +lean_closure_set(x_10, 0, x_8); +x_11 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_10); +lean_ctor_set(x_2, 1, x_9); +lean_ctor_set(x_2, 0, x_11); +return x_2; +} +else +{ +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_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_2); +x_14 = lean_ctor_get(x_3, 1); +lean_inc(x_14); +lean_dec_ref(x_3); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__1), 2, 1); +lean_closure_set(x_15, 0, x_13); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__2), 2, 1); +lean_closure_set(x_16, 0, x_14); +x_17 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_12, x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_15); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_4); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +lean_dec_ref(x_2); +x_6 = !lean_is_exclusive(x_3); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_ctor_get(x_3, 0); +x_8 = lean_ctor_get(x_3, 1); +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_dec_ref(x_4); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__1), 2, 1); +lean_closure_set(x_10, 0, x_8); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__2), 2, 1); +lean_closure_set(x_11, 0, x_9); +x_12 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_11); +lean_ctor_set(x_3, 1, x_10); +lean_ctor_set(x_3, 0, x_12); +return x_3; +} +else +{ +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_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_3); +x_15 = lean_ctor_get(x_4, 1); +lean_inc(x_15); +lean_dec_ref(x_4); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__1), 2, 1); +lean_closure_set(x_16, 0, x_14); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringOfMonadOfMonadCommSemiring___redArg___lam__2), 2, 1); +lean_closure_set(x_17, 0, x_15); +x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_13, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_16); +return x_19; +} +} +} +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadCanon(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadSemiring(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadCanon(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/NonCommRingM.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/NonCommRingM.c index a1444bc0c5..16932182f3 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/NonCommRingM.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/NonCommRingM.c @@ -554,7 +554,7 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_modifyRing___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +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; uint8_t x_18; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); x_6 = lean_ctor_get(x_3, 2); @@ -565,18 +565,24 @@ x_10 = lean_ctor_get(x_3, 6); x_11 = lean_ctor_get(x_3, 7); x_12 = lean_ctor_get(x_3, 8); x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_10); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_10); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) { lean_dec_ref(x_2); return x_3; } else { -uint8_t x_16; -lean_inc(x_13); +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); lean_inc_ref(x_10); @@ -586,59 +592,68 @@ lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); +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; +x_20 = lean_ctor_get(x_3, 12); lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); +x_21 = lean_ctor_get(x_3, 11); lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); +x_22 = lean_ctor_get(x_3, 10); lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 9); lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 8); lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); +x_25 = lean_ctor_get(x_3, 7); lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); +x_26 = lean_ctor_get(x_3, 6); lean_dec(x_26); -x_27 = lean_array_fget(x_10, x_1); -x_28 = lean_box(0); -x_29 = lean_array_fset(x_10, x_1, x_28); -x_30 = lean_apply_1(x_2, x_27); -x_31 = lean_array_fset(x_29, x_1, x_30); -lean_ctor_set(x_3, 6, x_31); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_10, x_1); +x_34 = lean_box(0); +x_35 = lean_array_fset(x_10, x_1, x_34); +x_36 = lean_apply_1(x_2, x_33); +x_37 = lean_array_fset(x_35, x_1, x_36); +lean_ctor_set(x_3, 6, x_37); return x_3; } else { -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_dec(x_3); -x_32 = lean_array_fget(x_10, x_1); -x_33 = lean_box(0); -x_34 = lean_array_fset(x_10, x_1, x_33); -x_35 = lean_apply_1(x_2, x_32); -x_36 = lean_array_fset(x_34, x_1, x_35); -x_37 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_37, 0, x_4); -lean_ctor_set(x_37, 1, x_5); -lean_ctor_set(x_37, 2, x_6); -lean_ctor_set(x_37, 3, x_7); -lean_ctor_set(x_37, 4, x_8); -lean_ctor_set(x_37, 5, x_9); -lean_ctor_set(x_37, 6, x_36); -lean_ctor_set(x_37, 7, x_11); -lean_ctor_set(x_37, 8, x_12); -lean_ctor_set(x_37, 9, x_13); -return x_37; +x_38 = lean_array_fget(x_10, x_1); +x_39 = lean_box(0); +x_40 = lean_array_fset(x_10, x_1, x_39); +x_41 = lean_apply_1(x_2, x_38); +x_42 = lean_array_fset(x_40, x_1, x_41); +x_43 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_43, 0, x_4); +lean_ctor_set(x_43, 1, x_5); +lean_ctor_set(x_43, 2, x_6); +lean_ctor_set(x_43, 3, x_7); +lean_ctor_set(x_43, 4, x_8); +lean_ctor_set(x_43, 5, x_9); +lean_ctor_set(x_43, 6, x_42); +lean_ctor_set(x_43, 7, x_11); +lean_ctor_set(x_43, 8, x_12); +lean_ctor_set(x_43, 9, x_13); +lean_ctor_set(x_43, 10, x_14); +lean_ctor_set(x_43, 11, x_15); +lean_ctor_set(x_43, 12, x_16); +return x_43; } } } @@ -1609,7 +1624,7 @@ return x_3; } else { -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_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; x_7 = lean_ctor_get(x_3, 0); x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_3, 2); @@ -1620,6 +1635,12 @@ x_13 = lean_ctor_get(x_3, 6); x_14 = lean_ctor_get(x_3, 7); x_15 = lean_ctor_get(x_3, 8); x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -1631,19 +1652,22 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_3); -x_17 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId_spec__0___redArg(x_14, x_1, x_2); -x_18 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_8); -lean_ctor_set(x_18, 2, x_9); -lean_ctor_set(x_18, 3, x_10); -lean_ctor_set(x_18, 4, x_11); -lean_ctor_set(x_18, 5, x_12); -lean_ctor_set(x_18, 6, x_13); -lean_ctor_set(x_18, 7, x_17); -lean_ctor_set(x_18, 8, x_15); -lean_ctor_set(x_18, 9, x_16); -return x_18; +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId_spec__0___redArg(x_14, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_20); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_17); +lean_ctor_set(x_21, 11, x_18); +lean_ctor_set(x_21, 12, x_19); +return x_21; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/NonCommSemiringM.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/NonCommSemiringM.c new file mode 100644 index 0000000000..5bea4aeb9e --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/NonCommSemiringM.c @@ -0,0 +1,1974 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommSemiringM +// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_shift_right(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_run___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_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___lam__0(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_le(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_run(lean_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_Grind_Arith_CommRing_getTermNonCommSemiringId_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_uint64_to_usize(uint64_t); +lean_object* l_Lean_Meta_Grind_reportIssue(lean_object*, 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*); +size_t lean_usize_mul(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___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_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(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_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget_borrowed(lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_Meta_Grind_getConfig___redArg(lean_object*, lean_object*); +static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_Context_ctorIdx(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___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_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_Grind_Arith_CommRing_ringExt; +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___closed__0; +lean_object* l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM___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_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_usize_to_nat(size_t); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__0; +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___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_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__0; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM; +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkCollisionNode___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___closed__0; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f(lean_object*, lean_object*, lean_object*, lean_object*, 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_Grind_Arith_CommRing_NonCommSemiringM_Context_ctorIdx___boxed(lean_object*); +lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__1; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(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_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM___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_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__1; +size_t lean_usize_sub(size_t, size_t); +lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(lean_object*); +size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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* l_Lean_Meta_Grind_shareCommon___redArg(lean_object*, lean_object*, lean_object*); +size_t lean_usize_shift_left(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg___boxed(lean_object*, lean_object*); +lean_object* lean_grind_canon(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*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +uint64_t l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(lean_object*); +size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___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_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___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_Grind_Arith_CommRing_NonCommSemiringM_Context_ctorIdx(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_unsigned_to_nat(0u); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_Context_ctorIdx___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_Context_ctorIdx(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_run___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) { +_start: +{ +lean_object* x_12; +x_12 = lean_apply_10(x_2, x_1, 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_Meta_Grind_Arith_CommRing_NonCommSemiringM_run(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = lean_apply_10(x_3, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___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) { +_start: +{ +lean_object* x_12; +lean_inc(x_6); +x_12 = lean_grind_canon(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 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_inc(x_14); +lean_dec_ref(x_12); +x_15 = l_Lean_Meta_Grind_shareCommon___redArg(x_13, x_6, x_14); +lean_dec(x_6); +return x_15; +} +else +{ +lean_dec(x_6); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___lam__0___boxed), 11, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___lam__1___boxed), 11, 0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___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: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM___lam__1(x_1, x_2, x_3, 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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc_ref(x_11); +lean_dec(x_9); +x_12 = lean_st_ref_get(x_3, x_10); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_14, 0); +lean_inc_ref(x_15); +lean_dec(x_14); +x_16 = lean_ctor_get(x_2, 2); +x_17 = lean_ctor_get(x_4, 2); +lean_inc(x_17); +lean_inc_ref(x_16); +x_18 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_15); +lean_ctor_set(x_18, 2, x_16); +lean_ctor_set(x_18, 3, x_17); +lean_ctor_set_tag(x_7, 3); +lean_ctor_set(x_7, 1, x_1); +lean_ctor_set(x_7, 0, x_18); +lean_ctor_set(x_12, 0, x_7); +return x_12; +} +else +{ +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; +x_19 = lean_ctor_get(x_12, 0); +x_20 = lean_ctor_get(x_12, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_12); +x_21 = lean_ctor_get(x_19, 0); +lean_inc_ref(x_21); +lean_dec(x_19); +x_22 = lean_ctor_get(x_2, 2); +x_23 = lean_ctor_get(x_4, 2); +lean_inc(x_23); +lean_inc_ref(x_22); +x_24 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_21); +lean_ctor_set(x_24, 2, x_22); +lean_ctor_set(x_24, 3, x_23); +lean_ctor_set_tag(x_7, 3); +lean_ctor_set(x_7, 1, x_1); +lean_ctor_set(x_7, 0, x_24); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_7); +lean_ctor_set(x_25, 1, x_20); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 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_26 = lean_ctor_get(x_7, 0); +x_27 = lean_ctor_get(x_7, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_7); +x_28 = lean_ctor_get(x_26, 0); +lean_inc_ref(x_28); +lean_dec(x_26); +x_29 = lean_st_ref_get(x_3, x_27); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} +x_33 = lean_ctor_get(x_30, 0); +lean_inc_ref(x_33); +lean_dec(x_30); +x_34 = lean_ctor_get(x_2, 2); +x_35 = lean_ctor_get(x_4, 2); +lean_inc(x_35); +lean_inc_ref(x_34); +x_36 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_33); +lean_ctor_set(x_36, 2, x_34); +lean_ctor_set(x_36, 3, x_35); +x_37 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_1); +if (lean_is_scalar(x_32)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_32; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_31); +return x_38; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 5); +x_8 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0___redArg(x_2, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`grind` internal error, invalid semiringId", 42, 42); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_8, x_10); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +x_15 = lean_ctor_get(x_13, 9); +lean_inc_ref(x_15); +lean_dec(x_13); +x_16 = lean_array_get_size(x_15); +x_17 = lean_nat_dec_lt(x_1, x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec_ref(x_15); +lean_free_object(x_11); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__1; +x_19 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0___redArg(x_18, x_6, x_7, x_8, x_9, x_14); +return x_19; +} +else +{ +lean_object* x_20; +x_20 = lean_array_fget(x_15, x_1); +lean_dec_ref(x_15); +lean_ctor_set(x_11, 0, x_20); +return x_11; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_21 = lean_ctor_get(x_11, 0); +x_22 = lean_ctor_get(x_11, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_11); +x_23 = lean_ctor_get(x_21, 9); +lean_inc_ref(x_23); +lean_dec(x_21); +x_24 = lean_array_get_size(x_23); +x_25 = lean_nat_dec_lt(x_1, x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec_ref(x_23); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__1; +x_27 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0___redArg(x_26, x_6, x_7, x_8, x_9, x_22); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_array_fget(x_23, x_1); +lean_dec_ref(x_23); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_22); +return x_29; +} +} +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_11); +if (x_30 == 0) +{ +return x_11; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_11, 0); +x_32 = lean_ctor_get(x_11, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_11); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_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) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring_spec__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); +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(x_4); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec_ref(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); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_ctor_get(x_3, 2); +x_7 = lean_ctor_get(x_3, 3); +x_8 = lean_ctor_get(x_3, 4); +x_9 = lean_ctor_get(x_3, 5); +x_10 = lean_ctor_get(x_3, 6); +x_11 = lean_ctor_get(x_3, 7); +x_12 = lean_ctor_get(x_3, 8); +x_13 = lean_ctor_get(x_3, 9); +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_13); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_dec_ref(x_2); +return x_3; +} +else +{ +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_19 = !lean_is_exclusive(x_3); +if (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; 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; +x_20 = lean_ctor_get(x_3, 12); +lean_dec(x_20); +x_21 = lean_ctor_get(x_3, 11); +lean_dec(x_21); +x_22 = lean_ctor_get(x_3, 10); +lean_dec(x_22); +x_23 = lean_ctor_get(x_3, 9); +lean_dec(x_23); +x_24 = lean_ctor_get(x_3, 8); +lean_dec(x_24); +x_25 = lean_ctor_get(x_3, 7); +lean_dec(x_25); +x_26 = lean_ctor_get(x_3, 6); +lean_dec(x_26); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_13, x_1); +x_34 = lean_box(0); +x_35 = lean_array_fset(x_13, x_1, x_34); +x_36 = lean_apply_1(x_2, x_33); +x_37 = lean_array_fset(x_35, x_1, x_36); +lean_ctor_set(x_3, 9, x_37); +return x_3; +} +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_dec(x_3); +x_38 = lean_array_fget(x_13, x_1); +x_39 = lean_box(0); +x_40 = lean_array_fset(x_13, x_1, x_39); +x_41 = lean_apply_1(x_2, x_38); +x_42 = lean_array_fset(x_40, x_1, x_41); +x_43 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_43, 0, x_4); +lean_ctor_set(x_43, 1, x_5); +lean_ctor_set(x_43, 2, x_6); +lean_ctor_set(x_43, 3, x_7); +lean_ctor_set(x_43, 4, x_8); +lean_ctor_set(x_43, 5, x_9); +lean_ctor_set(x_43, 6, x_10); +lean_ctor_set(x_43, 7, x_11); +lean_ctor_set(x_43, 8, x_12); +lean_ctor_set(x_43, 9, x_42); +lean_ctor_set(x_43, 10, x_14); +lean_ctor_set(x_43, 11, x_15); +lean_ctor_set(x_43, 12, x_16); +return x_43; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_ringExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___lam__0___boxed), 3, 2); +lean_closure_set(x_5, 0, x_2); +lean_closure_set(x_5, 1, x_1); +x_6 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___closed__0; +x_7 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_6, x_5, x_3, x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring(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_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_1, x_2, x_3, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___lam__0(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___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_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +return x_12; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___boxed), 11, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__0; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___boxed), 10, 0); +x_3 = lean_alloc_ctor(0, 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_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__1; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_3, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_3); +x_7 = lean_box(0); +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_fget_borrowed(x_1, x_3); +x_9 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_array_fget_borrowed(x_2, x_3); +lean_dec(x_3); +lean_inc(x_13); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___redArg(x_2, x_3, x_5, x_6); +return x_7; +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__0() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 5; +x_2 = 1; +x_3 = lean_usize_shift_left(x_2, x_1); +return x_3; +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__1() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__0; +x_3 = lean_usize_sub(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_box(2); +x_7 = 5; +x_8 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__1; +x_9 = lean_usize_land(x_2, x_8); +x_10 = lean_usize_to_nat(x_9); +x_11 = lean_array_get(x_6, x_5, x_10); +lean_dec(x_10); +lean_dec_ref(x_5); +switch (lean_obj_tag(x_11)) { +case 0: +{ +lean_object* x_12; lean_object* x_13; uint8_t 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); +x_14 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_12); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_13); +lean_free_object(x_1); +x_15 = lean_box(0); +return x_15; +} +else +{ +lean_ctor_set_tag(x_1, 1); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +case 1: +{ +lean_object* x_16; size_t x_17; +lean_free_object(x_1); +x_16 = lean_ctor_get(x_11, 0); +lean_inc(x_16); +lean_dec_ref(x_11); +x_17 = lean_usize_shift_right(x_2, x_7); +x_1 = x_16; +x_2 = x_17; +goto _start; +} +default: +{ +lean_object* x_19; +lean_free_object(x_1); +x_19 = lean_box(0); +return x_19; +} +} +} +else +{ +lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_1, 0); +lean_inc(x_20); +lean_dec(x_1); +x_21 = lean_box(2); +x_22 = 5; +x_23 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__1; +x_24 = lean_usize_land(x_2, x_23); +x_25 = lean_usize_to_nat(x_24); +x_26 = lean_array_get(x_21, x_20, x_25); +lean_dec(x_25); +lean_dec_ref(x_20); +switch (lean_obj_tag(x_26)) { +case 0: +{ +lean_object* x_27; lean_object* x_28; uint8_t 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); +x_29 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_27); +lean_dec(x_27); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_28); +x_30 = lean_box(0); +return x_30; +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_28); +return x_31; +} +} +case 1: +{ +lean_object* x_32; size_t x_33; +x_32 = lean_ctor_get(x_26, 0); +lean_inc(x_32); +lean_dec_ref(x_26); +x_33 = lean_usize_shift_right(x_2, x_22); +x_1 = x_32; +x_2 = x_33; +goto _start; +} +default: +{ +lean_object* x_35; +x_35 = lean_box(0); +return x_35; +} +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_37); +lean_dec_ref(x_1); +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___redArg(x_36, x_37, x_38, x_3); +lean_dec_ref(x_37); +lean_dec_ref(x_36); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg(x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint64_t x_3; size_t x_4; lean_object* x_5; +x_3 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_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_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg(x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(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_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_7, 10); +lean_inc_ref(x_8); +lean_dec(x_7); +x_9 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg(x_8, x_1); +lean_ctor_set(x_5, 0, x_9); +return x_5; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_5, 0); +x_11 = lean_ctor_get(x_5, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_5); +x_12 = lean_ctor_get(x_10, 10); +lean_inc_ref(x_12); +lean_dec(x_10); +x_13 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg(x_12, x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_11); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_5); +if (x_15 == 0) +{ +return x_5; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_5, 0); +x_17 = lean_ctor_get(x_5, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_5); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_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, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(x_1, x_2, x_8, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec_ref(x_6); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; lean_object* x_5; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg(x_1, x_4, x_3); +lean_dec_ref(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; lean_object* x_6; +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0(x_1, x_2, x_5, x_4); +lean_dec_ref(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___redArg(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0___boxed(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_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0(x_1, x_2, x_3); +lean_dec_ref(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(x_1, x_2, x_3, x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec_ref(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_ref(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_array_get_size(x_6); +x_9 = lean_nat_dec_lt(x_2, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_2); +x_10 = lean_array_push(x_6, x_3); +x_11 = lean_array_push(x_7, x_4); +lean_ctor_set(x_1, 1, x_11); +lean_ctor_set(x_1, 0, x_10); +return x_1; +} +else +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_array_fget_borrowed(x_6, x_2); +x_13 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_2, x_14); +lean_dec(x_2); +x_2 = x_15; +goto _start; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_array_fset(x_6, x_2, x_3); +x_18 = lean_array_fset(x_7, x_2, x_4); +lean_dec(x_2); +lean_ctor_set(x_1, 1, x_18); +lean_ctor_set(x_1, 0, x_17); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_21 = lean_array_get_size(x_19); +x_22 = lean_nat_dec_lt(x_2, x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_2); +x_23 = lean_array_push(x_19, x_3); +x_24 = lean_array_push(x_20, x_4); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +else +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_array_fget_borrowed(x_19, x_2); +x_27 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_20); +x_29 = lean_unsigned_to_nat(1u); +x_30 = lean_nat_add(x_2, x_29); +lean_dec(x_2); +x_1 = x_28; +x_2 = x_30; +goto _start; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_array_fset(x_19, x_2, x_3); +x_33 = lean_array_fset(x_20, x_2, x_4); +lean_dec(x_2); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0_spec__0(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; +x_6 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0_spec__0___redArg(x_1, x_4, x_2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0(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_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0___redArg(x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg(size_t 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; +x_6 = lean_array_get_size(x_2); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; uint64_t x_10; size_t x_11; size_t x_12; lean_object* x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; +x_8 = lean_array_fget_borrowed(x_2, x_4); +x_9 = lean_array_fget_borrowed(x_3, x_4); +x_10 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_8); +x_11 = lean_uint64_to_usize(x_10); +x_12 = 5; +x_13 = lean_unsigned_to_nat(1u); +x_14 = 1; +x_15 = lean_usize_sub(x_1, x_14); +x_16 = lean_usize_mul(x_12, x_15); +x_17 = lean_usize_shift_right(x_11, x_16); +x_18 = lean_nat_add(x_4, x_13); +lean_dec(x_4); +lean_inc(x_9); +lean_inc_ref(x_8); +x_19 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(x_5, x_17, x_1, x_8, x_9); +x_4 = x_18; +x_5 = x_19; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2(lean_object* x_1, size_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; +x_8 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg(x_2, x_3, x_4, x_6, x_7); +return x_8; +} +} +static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_6 = lean_ctor_get(x_1, 0); +x_7 = 5; +x_8 = 1; +x_9 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__1; +x_10 = lean_usize_land(x_2, x_9); +x_11 = lean_usize_to_nat(x_10); +x_12 = lean_array_get_size(x_6); +x_13 = lean_nat_dec_lt(x_11, x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_dec(x_11); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_1; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_inc_ref(x_6); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + x_14 = x_1; +} else { + lean_dec_ref(x_1); + x_14 = lean_box(0); +} +x_15 = lean_array_fget(x_6, x_11); +x_16 = lean_box(0); +x_17 = lean_array_fset(x_6, x_11, x_16); +switch (lean_obj_tag(x_15)) { +case 0: +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_15); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_15, 0); +x_24 = lean_ctor_get(x_15, 1); +x_25 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_15); +x_26 = l_Lean_PersistentHashMap_mkCollisionNode___redArg(x_23, x_24, x_4, x_5); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_18 = x_27; +goto block_21; +} +else +{ +lean_dec(x_24); +lean_dec(x_23); +lean_ctor_set(x_15, 1, x_5); +lean_ctor_set(x_15, 0, x_4); +x_18 = x_15; +goto block_21; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_15, 0); +x_29 = lean_ctor_get(x_15, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_15); +x_30 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = l_Lean_PersistentHashMap_mkCollisionNode___redArg(x_28, x_29, x_4, x_5); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_18 = x_32; +goto block_21; +} +else +{ +lean_object* x_33; +lean_dec(x_29); +lean_dec(x_28); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_4); +lean_ctor_set(x_33, 1, x_5); +x_18 = x_33; +goto block_21; +} +} +} +case 1: +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_15); +if (x_34 == 0) +{ +lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_usize_shift_right(x_2, x_7); +x_37 = lean_usize_add(x_3, x_8); +x_38 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(x_35, x_36, x_37, x_4, x_5); +lean_ctor_set(x_15, 0, x_38); +x_18 = x_15; +goto block_21; +} +else +{ +lean_object* x_39; size_t x_40; size_t x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_15, 0); +lean_inc(x_39); +lean_dec(x_15); +x_40 = lean_usize_shift_right(x_2, x_7); +x_41 = lean_usize_add(x_3, x_8); +x_42 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(x_39, x_40, x_41, x_4, x_5); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_18 = x_43; +goto block_21; +} +} +default: +{ +lean_object* x_44; +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_4); +lean_ctor_set(x_44, 1, x_5); +x_18 = x_44; +goto block_21; +} +} +block_21: +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_array_fset(x_17, x_11, x_18); +lean_dec(x_11); +if (lean_is_scalar(x_14)) { + x_20 = lean_alloc_ctor(0, 1, 0); +} else { + x_20 = x_14; +} +lean_ctor_set(x_20, 0, x_19); +return x_20; +} +} +} +else +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_1); +if (x_45 == 0) +{ +lean_object* x_46; uint8_t x_47; size_t x_54; uint8_t x_55; +x_46 = l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0___redArg(x_1, x_4, x_5); +x_54 = 7; +x_55 = lean_usize_dec_le(x_54, x_3); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(x_46); +x_57 = lean_unsigned_to_nat(4u); +x_58 = lean_nat_dec_lt(x_56, x_57); +lean_dec(x_56); +x_47 = x_58; +goto block_53; +} +else +{ +x_47 = x_55; +goto block_53; +} +block_53: +{ +if (x_47 == 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_46, 0); +lean_inc_ref(x_48); +x_49 = lean_ctor_get(x_46, 1); +lean_inc_ref(x_49); +lean_dec_ref(x_46); +x_50 = lean_unsigned_to_nat(0u); +x_51 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___closed__0; +x_52 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg(x_3, x_48, x_49, x_50, x_51); +lean_dec_ref(x_49); +lean_dec_ref(x_48); +return x_52; +} +else +{ +return x_46; +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; size_t x_70; uint8_t x_71; +x_59 = lean_ctor_get(x_1, 0); +x_60 = lean_ctor_get(x_1, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_1); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__0___redArg(x_61, x_4, x_5); +x_70 = 7; +x_71 = lean_usize_dec_le(x_70, x_3); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_72 = l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(x_62); +x_73 = lean_unsigned_to_nat(4u); +x_74 = lean_nat_dec_lt(x_72, x_73); +lean_dec(x_72); +x_63 = x_74; +goto block_69; +} +else +{ +x_63 = x_71; +goto block_69; +} +block_69: +{ +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_62, 0); +lean_inc_ref(x_64); +x_65 = lean_ctor_get(x_62, 1); +lean_inc_ref(x_65); +lean_dec_ref(x_62); +x_66 = lean_unsigned_to_nat(0u); +x_67 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___closed__0; +x_68 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg(x_3, x_64, x_65, x_66, x_67); +lean_dec_ref(x_65); +lean_dec_ref(x_64); +return x_68; +} +else +{ +return x_62; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint64_t x_4; size_t x_5; size_t x_6; lean_object* x_7; +x_4 = l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(x_2); +x_5 = lean_uint64_to_usize(x_4); +x_6 = 1; +x_7 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(x_1, x_5, x_6, x_2, x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0(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_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0___redArg(x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 10); +x_6 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0___redArg(x_5, x_1, x_2); +lean_ctor_set(x_3, 10, x_6); +return x_3; +} +else +{ +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; +x_7 = lean_ctor_get(x_3, 0); +x_8 = lean_ctor_get(x_3, 1); +x_9 = lean_ctor_get(x_3, 2); +x_10 = lean_ctor_get(x_3, 3); +x_11 = lean_ctor_get(x_3, 4); +x_12 = lean_ctor_get(x_3, 5); +x_13 = lean_ctor_get(x_3, 6); +x_14 = lean_ctor_get(x_3, 7); +x_15 = lean_ctor_get(x_3, 8); +x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_3); +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0___redArg(x_17, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_20); +lean_ctor_set(x_21, 11, x_18); +lean_ctor_set(x_21, 12, x_19); +return x_21; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("expression in two different semirings", 37, 37); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(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; lean_object* x_16; +x_16 = l_Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f___redArg(x_1, x_3, x_9, x_11); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +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_16, 1); +lean_inc(x_18); +lean_dec_ref(x_16); +x_19 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___lam__0), 3, 2); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, x_2); +x_20 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___closed__0; +x_21 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_20, x_19, x_3, x_18); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_dec_ref(x_16); +x_23 = lean_ctor_get(x_17, 0); +lean_inc(x_23); +lean_dec_ref(x_17); +x_24 = lean_nat_dec_eq(x_23, x_2); +lean_dec(x_2); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = l_Lean_Meta_Grind_getConfig___redArg(x_5, x_22); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get_uint8(x_26, sizeof(void*)*8 + 11); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec_ref(x_1); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec_ref(x_25); +x_12 = x_28; +goto block_15; +} +else +{ +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_25, 1); +lean_inc(x_29); +lean_dec_ref(x_25); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__1; +x_31 = l_Lean_indentExpr(x_1); +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_Meta_Grind_reportIssue(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_29); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec_ref(x_33); +x_12 = x_34; +goto block_15; +} +else +{ +return x_33; +} +} +} +else +{ +uint8_t x_35; +lean_dec_ref(x_1); +x_35 = !lean_is_exclusive(x_25); +if (x_35 == 0) +{ +return x_25; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_25, 0); +x_37 = lean_ctor_get(x_25, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_25); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_dec_ref(x_1); +x_12 = x_22; +goto block_15; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_2); +lean_dec_ref(x_1); +x_39 = !lean_is_exclusive(x_16); +if (x_39 == 0) +{ +return x_16; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_16, 0); +x_41 = lean_ctor_get(x_16, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_16); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +block_15: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; lean_object* x_7; +x_6 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_7 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2___redArg(x_6, x_2, x_3, x_4, x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_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) { +_start: +{ +size_t x_8; lean_object* x_9; +x_8 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_9 = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0_spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_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) { +_start: +{ +size_t x_6; size_t x_7; lean_object* x_8; +x_6 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg(x_1, x_6, x_7, x_4, x_5); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_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) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_9 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0(x_1, x_2, x_7, x_8, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___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_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM___lam__0___boxed), 11, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM___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: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +return x_12; +} +} +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommSemiringM(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonNonCommSemiringM); +l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadSemiringNonCommSemiringM); +l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__0(); +l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermNonCommSemiringId_x3f_spec__0_spec__0___redArg___closed__1(); +l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___closed__0(); +lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId_spec__0_spec__0___redArg___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdNonCommSemiringM); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/PP.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/PP.c index 0e643d7dcd..03c46c4099 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/PP.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/PP.c @@ -9056,7 +9056,7 @@ x_8 = lean_ctor_get(x_6, 0); x_9 = lean_ctor_get(x_2, 5); lean_inc(x_9); lean_dec_ref(x_2); -x_10 = lean_ctor_get(x_8, 9); +x_10 = lean_ctor_get(x_8, 12); lean_inc(x_10); lean_dec(x_8); x_11 = lean_nat_dec_le(x_9, x_10); @@ -9112,7 +9112,7 @@ lean_dec(x_6); x_28 = lean_ctor_get(x_2, 5); lean_inc(x_28); lean_dec_ref(x_2); -x_29 = lean_ctor_get(x_26, 9); +x_29 = lean_ctor_get(x_26, 12); lean_inc(x_29); lean_dec(x_26); x_30 = lean_nat_dec_le(x_28, x_29); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Proof.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Proof.c index 60cee303cf..ba02f78df4 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Proof.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Proof.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Arith.CommRing.Proof -// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.RingId Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommRingM Init.Grind.Ring.CommSemiringAdapter Lean.Data.RArray Lean.Meta.Tactic.Grind.Diseq Lean.Meta.Tactic.Grind.ProofUtil Lean.Meta.Tactic.Grind.Arith.CommRing.DenoteExpr Lean.Meta.Tactic.Grind.Arith.CommRing.SafePoly Lean.Meta.Tactic.Grind.Arith.CommRing.ToExpr Lean.Meta.Tactic.Grind.VarRename Lean.Meta.Tactic.Grind.Arith.CommRing.VarRename Lean.Meta.Tactic.Grind.Arith.CommRing.Functions +// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.RingId Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommRingM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommSemiringM Init.Grind.Ring.CommSemiringAdapter Lean.Data.RArray Lean.Meta.Tactic.Grind.Diseq Lean.Meta.Tactic.Grind.ProofUtil Lean.Meta.Tactic.Grind.Arith.CommRing.DenoteExpr Lean.Meta.Tactic.Grind.Arith.CommRing.SafePoly Lean.Meta.Tactic.Grind.Arith.CommRing.ToExpr Lean.Meta.Tactic.Grind.VarRename Lean.Meta.Tactic.Grind.Arith.CommRing.VarRename Lean.Meta.Tactic.Grind.Arith.CommRing.Functions #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -15,6 +15,7 @@ extern "C" { #endif static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__53; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getContext___redArg(lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0_spec__0_spec__0___redArg___closed__0; @@ -30,6 +31,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_DiseqCnstr_setUnsat(le static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__6; uint8_t l_Lean_Grind_CommRing_instBEqPoly_beq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0___boxed(lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6; lean_object* l_Lean_mkNatLit(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__9_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__1; @@ -38,12 +41,12 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___ extern lean_object* l_Lean_instMonadExceptOfExceptionCoreM; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__22; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___lam__0___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkMonDecl_spec__2_spec__3(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__8; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkMonDecl_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_instMonadCoreM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_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_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_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*); @@ -62,11 +65,11 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__35; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__19; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__7; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__0; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__5___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__24; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__0_spec__1_spec__1_spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_caching___redArg___closed__0; @@ -77,6 +80,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__9_spec__10(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Int_instInhabited; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_getMultiplier(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__100; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___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_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_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_object*, lean_object*, lean_object*, lean_object*); @@ -89,7 +93,6 @@ lean_object* l_Array_reverse___redArg(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0_spec__0_spec__0___redArg___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__89; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6___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_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__8_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__48; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -98,14 +101,9 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_L lean_object* l_Lean_mkApp9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Grind_CommRing_instInhabitedPoly_default; -uint8_t l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2; lean_object* l_Lean_Grind_CommRing_Poly_renameVars(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__22; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_getMultiplier___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__87; lean_object* l_Lean_mkApp8(lean_object*, lean_object*, 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*); @@ -117,17 +115,16 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____priv size_t lean_uint64_to_usize(uint64_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__98; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__6___redArg(lean_object*, uint64_t); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__4_spec__5_spec__5_spec__5(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__3(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__28; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__126; lean_object* l_Lean_Level_succ___override(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getContext(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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__15; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_spec__0___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__12; lean_object* lean_array_push(lean_object*, lean_object*); @@ -136,6 +133,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_mkEq___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__17___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_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__21; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_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_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__9_spec__11(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__6_spec__6_spec__6_spec__6___closed__0; LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_throwNoNatZeroDivisors_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -145,12 +143,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___Lean_mkFreshFVarId___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__2_spec__2___redArg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_FoundVars_toArray(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__14___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_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___redArg(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); -lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__0_spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__97; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instFunctorOfMonad___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__8_spec__8_spec__8_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*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__2; @@ -159,13 +154,13 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHa LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_propagateEq(lean_object*, lean_object*, lean_object*, lean_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_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19_spec__21___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__58; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0; lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__108; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__2; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__9_spec__12(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__12_spec__12___closed__7; LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__61; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__6; @@ -184,11 +179,9 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L lean_object* l_Lean_Meta_Grind_pushEqCore(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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_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_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__0(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__8; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__5; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__5(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__4_spec__4___redArg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__14; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__92; @@ -225,6 +218,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Mon_denoteExpr_go___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__8_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*); 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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setSemiringDiseqUnsat(lean_object*, lean_object*, 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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; @@ -266,6 +260,7 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind lean_object* l_Lean_Level_ofNat(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__25; lean_object* l_id___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instMonad___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf___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_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__8_spec__8_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*); @@ -274,7 +269,6 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkStepBasicPrefix(lean_object*, lean_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_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__25; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_nonzeroCharInst_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkStepPrefix_spec__0___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__88; @@ -307,6 +301,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lea static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__44; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__20; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__6_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_of_nat(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__18; @@ -315,9 +310,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Gri static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__7; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__64; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_mkEq___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__17(lean_object*, lean_object*, lean_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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_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_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__9; @@ -332,9 +325,9 @@ LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Mon_denoteExpr___at_____private_L static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__27; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__17; -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__6___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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__119; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7; lean_object* l_Lean_Grind_CommRing_Expr_renameVars(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__8; @@ -357,6 +350,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__6_spec__6_spec__6_spec__6___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__14; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; uint64_t lean_uint64_shift_right(uint64_t, uint64_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___lam__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*); @@ -365,7 +359,7 @@ lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); uint64_t lean_usize_to_uint64(size_t); lean_object* lean_nat_to_int(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1; 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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__27; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__13; @@ -373,7 +367,6 @@ lean_object* lean_nat_div(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__93; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_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_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__6; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext(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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__4; LEAN_EXPORT uint64_t l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_caching_unsafe__1___redArg(lean_object*); @@ -385,14 +378,12 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__67; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__112; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__46; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__8; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__12_spec__12___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__4; lean_object* l_Lean_throwError___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_spec__0___lam__0(lean_object*, lean_object*); lean_object* l_instMonadEIO(lean_object*); @@ -400,13 +391,11 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__0___redArg(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__20; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__14_spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__46; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___Lean_mkFreshFVarId___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_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 uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__0_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__15; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -414,7 +403,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__26; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__23; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__12; lean_object* l_ReaderT_instApplicativeOfMonad___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getContext___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*); @@ -431,12 +419,15 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__30; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__9; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_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_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__4_spec__5(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__17; @@ -457,7 +448,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19_spec__21(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__107; lean_object* l_instBEqOfDecidableEq___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_Grind_Arith_CommRing_ringExt; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_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* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__43; @@ -477,7 +468,6 @@ LEAN_EXPORT uint64_t l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__33; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__4; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__19; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__0_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__9_spec__9(size_t, size_t, lean_object*); @@ -487,16 +477,11 @@ lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__16; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__12; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext(lean_object*, lean_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_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__28; lean_object* l_Lean_mkFreshFVarId___redArg(lean_object*, lean_object*); @@ -506,6 +491,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__6___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkStepBasicPrefix___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__101; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__12_spec__12___closed__6; lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -516,7 +502,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__6_spec__6_spec__6_spec__6___closed__3; lean_object* l_Lean_Meta_Grind_mkVarRename(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl(lean_object*, lean_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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__14; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__21; @@ -525,14 +511,15 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__75; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__83; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_spec__0_spec__0___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__12; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__45; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__23; LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_throwNoNatZeroDivisors_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__0_spec__4___redArg(uint64_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__2; LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_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_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(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_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__0_spec__4(lean_object*, uint64_t, lean_object*, lean_object*); lean_object* l_Lean_instAddMessageContextOfMonadLift___redArg(lean_object*, lean_object*); @@ -543,31 +530,28 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Me static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__11; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__7; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_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* l_ReaderT_instMonadExceptOf___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__3_spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__70; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_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_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__1; lean_object* l_Lean_RArray_ofFn___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_caching(lean_object*, lean_object*, lean_object*, 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_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__18; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__116; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ProofM_State_ctorIdx___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__62; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__6; LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ProofM_Context_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___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* l_StateRefT_x27_lift___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__6(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19_spec__19(size_t, size_t, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19_spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19_spec__20(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__18; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___lam__6___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -585,11 +569,11 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__69; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__7; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2_spec__3(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__0(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringAddRightCancelPrefix___redArg___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__7; lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_getMultiplier___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__6_spec__6_spec__6_spec__6___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_name_append_index_after(lean_object*, lean_object*); @@ -601,6 +585,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__22; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkMonDecl_spec__2___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat(lean_object*, lean_object*, lean_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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__6_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__11; @@ -611,16 +596,14 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___close static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0_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_object* lean_grind_mk_eq_proof(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_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__125; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__9_spec__9___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2_spec__6___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__23; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___lam__2(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3___redArg(lean_object*); lean_object* lean_nat_abs(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__48; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_caching_unsafe__1___redArg___boxed(lean_object*); @@ -639,6 +622,7 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__4; lean_object* lean_int_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___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_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__4_spec__5_spec__5___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__59; lean_object* l_Lean_Meta_instMonadMetaM___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -657,8 +641,9 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lea uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__120; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__21; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_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_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Core_instMonadNameGeneratorCoreM; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__34; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkMonDecl_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -696,7 +681,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__19; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___lam__0(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__5; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__27; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___Lean_mkFreshFVarId___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_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*, lean_object*); @@ -708,22 +692,22 @@ uint64_t l_Lean_Grind_CommRing_instHashableMon_hash(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__1; lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instFunctorOfMonad___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_DiseqCnstr_setUnsat___lam__0___boxed(lean_object**); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__14_spec__15(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringIdOf___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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___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_StateRefT_x27_instMonadExceptOf___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringIdOf___closed__0; uint64_t l_Lean_Grind_CommRing_instHashablePoly_hash(lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); lean_object* l_Int_toNat(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__104; -lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__38; lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___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*); @@ -746,6 +730,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L lean_object* l_Lean_Grind_CommRing_Mon_renameVars(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__110; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__3___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__114; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkMonDecl_spec__2_spec__3___redArg(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__4_spec__5___redArg(lean_object*); @@ -794,9 +779,9 @@ uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f(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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_throwNoNatZeroDivisors___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_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__6(lean_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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__45; size_t lean_usize_sub(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_spec__0_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__34; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__14_spec__14(size_t, size_t, lean_object*); @@ -813,17 +798,13 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__47; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__3; -uint64_t l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__84; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkPolyDecl_spec__4_spec__8___redArg(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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__36; lean_object* l_Lean_instToExprInt_mkNat(lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ProofM_Context_ctorIdx___boxed(lean_object*); -lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiring(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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__121; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__42; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__10; @@ -860,7 +841,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkMonDecl_spec__2_spec__6___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__7; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__12_spec__12___closed__2; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__16; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_mkEq___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__17___redArg___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19_spec__22(lean_object*, size_t, size_t, lean_object*); @@ -883,7 +863,6 @@ LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHas lean_object* lean_grind_canon(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_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__31; -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_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_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -905,13 +884,11 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instAddMessageContextMetaM; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__31; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__14(lean_object*, lean_object*, lean_object*, 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_Grind_Arith_CommRing_getNatCastFn_x27(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_lt(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_throwNoNatZeroDivisors___redArg___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof_spec__0(lean_object*, lean_object*, uint64_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkMonDecl_spec__2_spec__2___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__6_spec__8_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -943,7 +920,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__L static lean_object* l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__0; lean_object* l_String_toSubstring_x27(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__29; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_nonzeroCharInst_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkStepPrefix_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__2_spec__2_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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -955,7 +931,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof lean_object* l_Lean_Meta_instMonadMetaM___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__12_spec__12___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__40; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext(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_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__51; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__5; @@ -978,15 +953,14 @@ size_t lean_usize_land(size_t, size_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringAddRightCancelPrefix___redArg___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__95; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_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* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__21; extern lean_object* l_Lean_eagerReflBoolTrue; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_throwNoNatZeroDivisors(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_Grind_Ring_OfSemiring_Expr_collectVars(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_DiseqCnstr_setUnsat___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_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__0(lean_object* x_1, lean_object* x_2) { _start: { @@ -1121,14 +1095,865 @@ lean_dec_ref(x_1); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_5); +lean_dec_ref(x_1); +x_6 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__1___closed__0; +x_7 = l_Lean_mkNatLit(x_2); +x_8 = l_Lean_Expr_app___override(x_4, x_7); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = lean_alloc_closure((void*)(l_Lean_RArray_toExpr), 9, 4); +lean_closure_set(x_10, 0, lean_box(0)); +lean_closure_set(x_10, 1, x_5); +lean_closure_set(x_10, 2, x_6); +lean_closure_set(x_10, 3, x_9); +x_11 = lean_apply_2(x_3, lean_box(0), x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_array_get_size(x_1); +x_11 = lean_nat_dec_lt(x_9, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +lean_dec_ref(x_7); +lean_inc(x_2); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg___lam__1), 4, 3); +lean_closure_set(x_12, 0, x_8); +lean_closure_set(x_12, 1, x_9); +lean_closure_set(x_12, 2, x_2); +x_13 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(x_2, x_3, x_4, x_5); +x_14 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_13, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +x_15 = lean_ctor_get(x_8, 1); +lean_inc_ref(x_15); +lean_dec_ref(x_8); +x_16 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__1___closed__0; +x_17 = l_Lean_RArray_ofFn___redArg(x_10, x_7); +lean_dec(x_10); +x_18 = lean_alloc_closure((void*)(l_Lean_RArray_toExpr), 9, 4); +lean_closure_set(x_18, 0, lean_box(0)); +lean_closure_set(x_18, 1, x_15); +lean_closure_set(x_18, 2, x_16); +lean_closure_set(x_18, 3, x_17); +x_19 = lean_apply_2(x_2, lean_box(0), x_18); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +lean_inc_ref(x_5); +x_8 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__0___boxed), 2, 1); +lean_closure_set(x_8, 0, x_5); +lean_inc(x_6); +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg___lam__0___boxed), 8, 7); +lean_closure_set(x_9, 0, x_5); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_1); +lean_closure_set(x_9, 3, x_3); +lean_closure_set(x_9, 4, x_4); +lean_closure_set(x_9, 5, x_6); +lean_closure_set(x_9, 6, x_8); +x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___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: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec_ref(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_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, 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; +x_16 = l_Lean_Name_mkStr2(x_1, x_2); +x_17 = l_Lean_mkConst(x_16, x_3); +x_18 = l_Lean_mkAppB(x_17, x_4, x_5); +lean_inc(x_10); +x_19 = lean_grind_canon(x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_19) == 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_inc(x_21); +lean_dec_ref(x_19); +x_22 = l_Lean_Meta_Grind_shareCommon___redArg(x_20, x_10, x_21); +lean_dec(x_10); +return x_22; +} +else +{ +lean_dec(x_10); +return x_19; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("NatCast", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Grind", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Semiring", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("natCast", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__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_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___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_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Name_mkStr2(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0; +x_17 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1; +lean_inc_ref(x_15); +x_18 = l_Lean_mkConst(x_17, x_15); +lean_inc_ref(x_2); +x_19 = l_Lean_Expr_app___override(x_18, x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_20 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_19, x_9, x_10, x_11, x_12, x_13); +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; +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 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5; +x_24 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6; +lean_inc_ref(x_15); +x_25 = l_Lean_mkConst(x_24, x_15); +lean_inc_ref(x_2); +x_26 = l_Lean_mkAppB(x_25, x_2, x_3); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_27; +x_27 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +lean_inc(x_28); +lean_dec_ref(x_21); +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_28); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_28, x_26, x_9, x_10, x_11, x_12, x_22); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_28); +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_2); +x_33 = !lean_is_exclusive(x_30); +if (x_33 == 0) +{ +return x_30; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_30); +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; +} +} +} +} +else +{ +uint8_t x_37; +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +return x_20; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_20, 0); +x_39 = lean_ctor_get(x_20, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_20); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_ctor_get(x_3, 2); +x_7 = lean_ctor_get(x_3, 3); +x_8 = lean_ctor_get(x_3, 4); +x_9 = lean_ctor_get(x_3, 5); +x_10 = lean_ctor_get(x_3, 6); +x_11 = lean_ctor_get(x_3, 7); +x_12 = lean_ctor_get(x_3, 8); +x_13 = lean_ctor_get(x_3, 9); +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_dec_ref(x_2); +return x_3; +} +else +{ +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_19 = !lean_is_exclusive(x_3); +if (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; 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_20 = lean_ctor_get(x_3, 12); +lean_dec(x_20); +x_21 = lean_ctor_get(x_3, 11); +lean_dec(x_21); +x_22 = lean_ctor_get(x_3, 10); +lean_dec(x_22); +x_23 = lean_ctor_get(x_3, 9); +lean_dec(x_23); +x_24 = lean_ctor_get(x_3, 8); +lean_dec(x_24); +x_25 = lean_ctor_get(x_3, 7); +lean_dec(x_25); +x_26 = lean_ctor_get(x_3, 6); +lean_dec(x_26); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_33, 0); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_35, 7); +lean_dec(x_37); +x_38 = lean_box(0); +x_39 = lean_array_fset(x_7, x_1, x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_2); +lean_ctor_set(x_35, 7, x_40); +x_41 = lean_array_fset(x_39, x_1, x_33); +lean_ctor_set(x_3, 3, x_41); +return x_3; +} +else +{ +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; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +x_44 = lean_ctor_get(x_35, 2); +x_45 = lean_ctor_get(x_35, 3); +x_46 = lean_ctor_get(x_35, 4); +x_47 = lean_ctor_get(x_35, 5); +x_48 = lean_ctor_get(x_35, 6); +x_49 = lean_ctor_get(x_35, 8); +x_50 = lean_ctor_get(x_35, 9); +x_51 = lean_ctor_get(x_35, 10); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +x_52 = lean_box(0); +x_53 = lean_array_fset(x_7, x_1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_2); +x_55 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_55, 0, x_42); +lean_ctor_set(x_55, 1, x_43); +lean_ctor_set(x_55, 2, x_44); +lean_ctor_set(x_55, 3, x_45); +lean_ctor_set(x_55, 4, x_46); +lean_ctor_set(x_55, 5, x_47); +lean_ctor_set(x_55, 6, x_48); +lean_ctor_set(x_55, 7, x_54); +lean_ctor_set(x_55, 8, x_49); +lean_ctor_set(x_55, 9, x_50); +lean_ctor_set(x_55, 10, x_51); +lean_ctor_set(x_33, 0, x_55); +x_56 = lean_array_fset(x_53, x_1, x_33); +lean_ctor_set(x_3, 3, x_56); +return x_3; +} +} +else +{ +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; +x_57 = lean_ctor_get(x_33, 0); +x_58 = lean_ctor_get(x_33, 1); +x_59 = lean_ctor_get(x_33, 2); +x_60 = lean_ctor_get(x_33, 3); +x_61 = lean_ctor_get(x_33, 4); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_33); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_57, 1); +lean_inc_ref(x_63); +x_64 = lean_ctor_get(x_57, 2); +lean_inc(x_64); +x_65 = lean_ctor_get(x_57, 3); +lean_inc_ref(x_65); +x_66 = lean_ctor_get(x_57, 4); +lean_inc(x_66); +x_67 = lean_ctor_get(x_57, 5); +lean_inc(x_67); +x_68 = lean_ctor_get(x_57, 6); +lean_inc(x_68); +x_69 = lean_ctor_get(x_57, 8); +lean_inc_ref(x_69); +x_70 = lean_ctor_get(x_57, 9); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_57, 10); +lean_inc_ref(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + lean_ctor_release(x_57, 2); + lean_ctor_release(x_57, 3); + lean_ctor_release(x_57, 4); + lean_ctor_release(x_57, 5); + lean_ctor_release(x_57, 6); + lean_ctor_release(x_57, 7); + lean_ctor_release(x_57, 8); + lean_ctor_release(x_57, 9); + lean_ctor_release(x_57, 10); + x_72 = x_57; +} else { + lean_dec_ref(x_57); + x_72 = lean_box(0); +} +x_73 = lean_box(0); +x_74 = lean_array_fset(x_7, x_1, x_73); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_2); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(0, 11, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_62); +lean_ctor_set(x_76, 1, x_63); +lean_ctor_set(x_76, 2, x_64); +lean_ctor_set(x_76, 3, x_65); +lean_ctor_set(x_76, 4, x_66); +lean_ctor_set(x_76, 5, x_67); +lean_ctor_set(x_76, 6, x_68); +lean_ctor_set(x_76, 7, x_75); +lean_ctor_set(x_76, 8, x_69); +lean_ctor_set(x_76, 9, x_70); +lean_ctor_set(x_76, 10, x_71); +x_77 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_58); +lean_ctor_set(x_77, 2, x_59); +lean_ctor_set(x_77, 3, x_60); +lean_ctor_set(x_77, 4, x_61); +x_78 = lean_array_fset(x_74, x_1, x_77); +lean_ctor_set(x_3, 3, x_78); +return x_3; +} +} +else +{ +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_dec(x_3); +x_79 = lean_array_fget(x_7, x_1); +x_80 = lean_ctor_get(x_79, 0); +lean_inc_ref(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 2); +lean_inc_ref(x_82); +x_83 = lean_ctor_get(x_79, 3); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 4); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + lean_ctor_release(x_79, 2); + lean_ctor_release(x_79, 3); + lean_ctor_release(x_79, 4); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_80, 1); +lean_inc_ref(x_87); +x_88 = lean_ctor_get(x_80, 2); +lean_inc(x_88); +x_89 = lean_ctor_get(x_80, 3); +lean_inc_ref(x_89); +x_90 = lean_ctor_get(x_80, 4); +lean_inc(x_90); +x_91 = lean_ctor_get(x_80, 5); +lean_inc(x_91); +x_92 = lean_ctor_get(x_80, 6); +lean_inc(x_92); +x_93 = lean_ctor_get(x_80, 8); +lean_inc_ref(x_93); +x_94 = lean_ctor_get(x_80, 9); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_80, 10); +lean_inc_ref(x_95); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + lean_ctor_release(x_80, 3); + lean_ctor_release(x_80, 4); + lean_ctor_release(x_80, 5); + lean_ctor_release(x_80, 6); + lean_ctor_release(x_80, 7); + lean_ctor_release(x_80, 8); + lean_ctor_release(x_80, 9); + lean_ctor_release(x_80, 10); + x_96 = x_80; +} else { + lean_dec_ref(x_80); + x_96 = lean_box(0); +} +x_97 = lean_box(0); +x_98 = lean_array_fset(x_7, x_1, x_97); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_2); +if (lean_is_scalar(x_96)) { + x_100 = lean_alloc_ctor(0, 11, 0); +} else { + x_100 = x_96; +} +lean_ctor_set(x_100, 0, x_86); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_100, 2, x_88); +lean_ctor_set(x_100, 3, x_89); +lean_ctor_set(x_100, 4, x_90); +lean_ctor_set(x_100, 5, x_91); +lean_ctor_set(x_100, 6, x_92); +lean_ctor_set(x_100, 7, x_99); +lean_ctor_set(x_100, 8, x_93); +lean_ctor_set(x_100, 9, x_94); +lean_ctor_set(x_100, 10, x_95); +if (lean_is_scalar(x_85)) { + x_101 = lean_alloc_ctor(0, 5, 0); +} else { + x_101 = x_85; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_81); +lean_ctor_set(x_101, 2, x_82); +lean_ctor_set(x_101, 3, x_83); +lean_ctor_set(x_101, 4, x_84); +x_102 = lean_array_fset(x_98, x_1, x_101); +x_103 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_103, 0, x_4); +lean_ctor_set(x_103, 1, x_5); +lean_ctor_set(x_103, 2, x_6); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_8); +lean_ctor_set(x_103, 5, x_9); +lean_ctor_set(x_103, 6, x_10); +lean_ctor_set(x_103, 7, x_11); +lean_ctor_set(x_103, 8, x_12); +lean_ctor_set(x_103, 9, x_13); +lean_ctor_set(x_103, 10, x_14); +lean_ctor_set(x_103, 11, x_15); +lean_ctor_set(x_103, 12, x_16); +return x_103; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_ringExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_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_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 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_12, 0); +lean_inc_ref(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 7); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec_ref(x_11); +x_16 = lean_ctor_get(x_13, 1); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_13, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_13, 3); +lean_inc_ref(x_18); +lean_dec_ref(x_13); +lean_inc(x_2); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0(x_17, x_16, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +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; +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); +lean_inc(x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___lam__0___boxed), 3, 2); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_20); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___closed__0; +x_24 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_23, x_22, x_2, x_21); +lean_dec(x_2); +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; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_20); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_20); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +return x_24; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_24); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_19; +} +} +else +{ +uint8_t x_33; +lean_inc_ref(x_14); +lean_dec_ref(x_13); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_11); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_11, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_14, 0); +lean_inc(x_35); +lean_dec_ref(x_14); +lean_ctor_set(x_11, 0, x_35); +return x_11; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_11, 1); +lean_inc(x_36); +lean_dec(x_11); +x_37 = lean_ctor_get(x_14, 0); +lean_inc(x_37); +lean_dec_ref(x_14); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +} +else +{ +uint8_t x_39; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_11); +if (x_39 == 0) +{ +return x_11; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_11, 0); +x_41 = lean_ctor_get(x_11, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_11); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0(lean_object* x_1) { _start: { lean_inc_ref(x_1); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0() { _start: { lean_object* x_1; lean_object* x_2; @@ -1137,84 +1962,87 @@ x_2 = l_Lean_mkNatLit(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_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_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +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_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_unsigned_to_nat(0u); -x_16 = lean_array_get_size(x_1); -x_17 = lean_nat_dec_lt(x_15, x_16); -if (x_17 == 0) +x_15 = lean_ctor_get(x_13, 0); +lean_inc_ref(x_15); +lean_dec(x_13); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_get_size(x_1); +x_18 = lean_nat_dec_lt(x_16, x_17); +if (x_18 == 0) { -lean_object* x_18; -lean_dec(x_16); +lean_object* x_19; +lean_dec(x_17); lean_dec_ref(x_1); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); lean_inc_ref(x_7); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_19) == 0) { -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; -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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec_ref(x_18); -x_21 = lean_ctor_get(x_13, 2); -lean_inc_ref(x_21); -lean_dec(x_13); -x_22 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0___boxed), 1, 0); -x_23 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0; -x_24 = l_Lean_Expr_app___override(x_19, x_23); -x_25 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_RArray_toExpr___redArg(x_21, x_22, x_25, x_7, x_8, x_9, x_10, x_20); -return x_26; +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec_ref(x_19); +x_22 = lean_ctor_get(x_15, 1); +lean_inc_ref(x_22); +lean_dec_ref(x_15); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0___boxed), 1, 0); +x_24 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0; +x_25 = l_Lean_Expr_app___override(x_20, x_24); +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = l_Lean_RArray_toExpr___redArg(x_22, x_23, x_26, x_7, x_8, x_9, x_10, x_21); +return x_27; } else { -lean_dec(x_13); +lean_dec_ref(x_15); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); lean_dec_ref(x_7); -return x_18; +return x_19; } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_27 = lean_ctor_get(x_13, 2); -lean_inc_ref(x_27); -lean_dec(x_13); -x_28 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__0___boxed), 2, 1); -lean_closure_set(x_28, 0, x_1); -x_29 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0___boxed), 1, 0); -x_30 = l_Lean_RArray_ofFn___redArg(x_16, x_28); -lean_dec(x_16); -x_31 = l_Lean_RArray_toExpr___redArg(x_27, x_29, x_30, x_7, x_8, x_9, x_10, x_14); -return x_31; +x_28 = lean_ctor_get(x_15, 1); +lean_inc_ref(x_28); +lean_dec_ref(x_15); +x_29 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__0___boxed), 2, 1); +lean_closure_set(x_29, 0, x_1); +x_30 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0___boxed), 1, 0); +x_31 = l_Lean_RArray_ofFn___redArg(x_17, x_29); +lean_dec(x_17); +x_32 = l_Lean_RArray_toExpr___redArg(x_28, x_30, x_31, x_7, x_8, x_9, x_10, x_14); +return x_32; } } else { -uint8_t x_32; +uint8_t x_33; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -1225,41 +2053,32 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_32 = !lean_is_exclusive(x_12); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_12); +if (x_33 == 0) { return x_12; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_12, 0); -x_34 = lean_ctor_get(x_12, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_12, 0); +x_35 = lean_ctor_get(x_12, 1); +lean_inc(x_35); lean_inc(x_34); -lean_inc(x_33); lean_dec(x_12); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; +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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0(x_1); -lean_dec_ref(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr___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) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_12; } } @@ -1267,10 +2086,46 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof _start: { lean_object* x_13; -x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(x_2, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0(x_2, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_13; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_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, 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; +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___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); +lean_dec(x_6); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__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); +lean_dec(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___lam__0(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0(x_1); +lean_dec_ref(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr___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: { @@ -2116,7 +2971,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean", 4, 4); +x_1 = lean_mk_string_unchecked("Ring", 4, 4); return x_1; } } @@ -2124,39 +2979,23 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Grind", 5, 5); +x_1 = lean_mk_string_unchecked("toNeg", 5, 5); return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Ring", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("toNeg", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__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_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__3; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___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_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__3() { _start: { lean_object* x_1; @@ -2164,16 +3003,16 @@ x_1 = lean_mk_string_unchecked("Neg", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__5; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__3; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__7() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__5() { _start: { lean_object* x_1; @@ -2181,12 +3020,12 @@ x_1 = lean_mk_string_unchecked("neg", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__7; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__5; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__5; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__3; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } @@ -2218,7 +3057,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_13, 3); lean_inc_ref(x_18); lean_dec_ref(x_13); -x_19 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__4; +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2; x_20 = lean_box(0); lean_inc(x_17); x_21 = lean_alloc_ctor(1, 2, 0); @@ -2227,8 +3066,8 @@ lean_ctor_set(x_21, 1, x_20); x_22 = l_Lean_mkConst(x_19, x_21); lean_inc_ref(x_16); x_23 = l_Lean_mkAppB(x_22, x_16, x_18); -x_24 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6; -x_25 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8; +x_24 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__4; +x_25 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6; lean_inc(x_2); x_26 = l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0_spec__0(x_16, x_17, x_24, x_25, x_23, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); if (lean_obj_tag(x_26) == 0) @@ -2378,31 +3217,23 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Semiring", 8, 8); +x_1 = lean_mk_string_unchecked("ofNat", 5, 5); return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("ofNat", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___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_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___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_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__2() { _start: { lean_object* x_1; @@ -2410,17 +3241,17 @@ x_1 = lean_mk_string_unchecked("OfNat", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__2; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -2458,7 +3289,7 @@ lean_inc_ref(x_20); lean_dec_ref(x_14); x_21 = lean_nat_abs(x_1); x_22 = l_Lean_mkRawNatLit(x_21); -x_23 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__2; +x_23 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1; x_24 = lean_box(0); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_19); @@ -2468,10 +3299,10 @@ x_26 = l_Lean_mkConst(x_23, x_25); lean_inc_ref(x_22); lean_inc_ref(x_18); x_27 = l_Lean_mkApp3(x_26, x_18, x_20, x_22); -x_28 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; +x_28 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3; x_29 = l_Lean_mkConst(x_28, x_25); x_30 = l_Lean_mkApp3(x_29, x_18, x_22, x_27); -x_31 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_31 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_32 = lean_int_dec_lt(x_1, x_31); if (x_32 == 0) { @@ -2541,7 +3372,7 @@ lean_inc_ref(x_44); lean_dec_ref(x_14); x_45 = lean_nat_abs(x_1); x_46 = l_Lean_mkRawNatLit(x_45); -x_47 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__2; +x_47 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1; x_48 = lean_box(0); x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_43); @@ -2551,10 +3382,10 @@ x_50 = l_Lean_mkConst(x_47, x_49); lean_inc_ref(x_46); lean_inc_ref(x_42); x_51 = l_Lean_mkApp3(x_50, x_42, x_44, x_46); -x_52 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; +x_52 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3; x_53 = l_Lean_mkConst(x_52, x_49); x_54 = l_Lean_mkApp3(x_53, x_42, x_46, x_51); -x_55 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_55 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_56 = lean_int_dec_lt(x_1, x_55); if (x_56 == 0) { @@ -3012,9 +3843,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_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -3289,9 +4120,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_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Grind_CommRing_Power_denoteExpr___at___Lean_Grind_CommRing_Mon_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__6_spec__6_spec__6_spec__6___closed__4; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -4514,9 +5345,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_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_go___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__12_spec__12___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -4753,7 +5584,7 @@ lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_ctor_get(x_1, 0); lean_inc(x_13); lean_dec_ref(x_1); -x_14 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_15 = lean_int_dec_eq(x_13, x_14); if (x_15 == 0) { @@ -7163,7 +7994,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__1; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; @@ -7209,7 +8040,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__6; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; @@ -7283,7 +8114,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__14; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; @@ -7303,7 +8134,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__16; x_3 = l_Lean_Name_str___override(x_2, x_1); return x_3; @@ -7490,7 +8321,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__2; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7510,7 +8341,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__4; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7547,7 +8378,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__8; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7567,7 +8398,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__10; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7595,7 +8426,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__13; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7623,7 +8454,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__16; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7737,7 +8568,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__28; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7782,7 +8613,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__33; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7802,7 +8633,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__35; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7822,7 +8653,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__37; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -7875,9 +8706,9 @@ _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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__8; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__3; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -7919,7 +8750,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__47; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8088,7 +8919,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__66; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8116,7 +8947,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__69; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8136,7 +8967,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__71; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8156,7 +8987,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__73; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8176,7 +9007,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__75; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8212,7 +9043,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__77; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } @@ -8272,7 +9103,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__83; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } @@ -8324,7 +9155,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__90; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8394,7 +9225,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__97; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8414,7 +9245,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__99; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8468,7 +9299,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__105; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8504,7 +9335,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__109; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8524,7 +9355,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__111; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8544,7 +9375,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__113; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8564,7 +9395,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__115; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8652,7 +9483,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__124; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__1; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -10930,494 +11761,6 @@ lean_dec_ref(x_2); return x_14; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 2); -x_7 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(x_4, x_1); -if (x_7 == 0) -{ -x_2 = x_6; -goto _start; -} -else -{ -lean_object* x_9; -lean_inc(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_5); -return x_9; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___redArg(x_2, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint64_t x_5; uint64_t x_6; uint64_t x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; -x_3 = lean_ctor_get(x_1, 1); -x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_2); -x_6 = 32; -x_7 = lean_uint64_shift_right(x_5, x_6); -x_8 = lean_uint64_xor(x_5, x_7); -x_9 = 16; -x_10 = lean_uint64_shift_right(x_8, x_9); -x_11 = lean_uint64_xor(x_8, x_10); -x_12 = lean_uint64_to_usize(x_11); -x_13 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_14 = 1; -x_15 = lean_usize_sub(x_13, x_14); -x_16 = lean_usize_land(x_12, x_15); -x_17 = lean_array_uget(x_3, x_16); -x_18 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___redArg(x_2, x_17); -lean_dec(x_17); -return x_18; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg(x_2, x_3); -return x_4; -} -} -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(x_4, x_1); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -return x_6; -} -} -} -} -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg(x_2, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_array_get_size(x_1); -x_7 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_4); -x_8 = 32; -x_9 = lean_uint64_shift_right(x_7, x_8); -x_10 = lean_uint64_xor(x_7, x_9); -x_11 = 16; -x_12 = lean_uint64_shift_right(x_10, x_11); -x_13 = lean_uint64_xor(x_10, x_12); -x_14 = lean_uint64_to_usize(x_13); -x_15 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_16 = 1; -x_17 = lean_usize_sub(x_15, x_16); -x_18 = lean_usize_land(x_14, x_17); -x_19 = lean_array_uget(x_1, x_18); -lean_ctor_set(x_2, 2, x_19); -x_20 = lean_array_uset(x_1, x_18, x_2); -x_1 = x_20; -x_2 = x_5; -goto _start; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; size_t x_33; size_t x_34; size_t x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_22 = lean_ctor_get(x_2, 0); -x_23 = lean_ctor_get(x_2, 1); -x_24 = lean_ctor_get(x_2, 2); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_2); -x_25 = lean_array_get_size(x_1); -x_26 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_22); -x_27 = 32; -x_28 = lean_uint64_shift_right(x_26, x_27); -x_29 = lean_uint64_xor(x_26, x_28); -x_30 = 16; -x_31 = lean_uint64_shift_right(x_29, x_30); -x_32 = lean_uint64_xor(x_29, x_31); -x_33 = lean_uint64_to_usize(x_32); -x_34 = lean_usize_of_nat(x_25); -lean_dec(x_25); -x_35 = 1; -x_36 = lean_usize_sub(x_34, x_35); -x_37 = lean_usize_land(x_33, x_36); -x_38 = lean_array_uget(x_1, x_37); -x_39 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_39, 0, x_22); -lean_ctor_set(x_39, 1, x_23); -lean_ctor_set(x_39, 2, x_38); -x_40 = lean_array_uset(x_1, x_37, x_39); -x_1 = x_40; -x_2 = x_24; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3_spec__3___redArg(x_2, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_dec_ref(x_2); -lean_dec(x_1); -return x_3; -} -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; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_box(0); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3_spec__3___redArg(x_3, x_6); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -lean_dec(x_1); -x_1 = x_11; -x_2 = x_8; -x_3 = x_9; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3___redArg(x_2, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3___redArg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_2 = lean_array_get_size(x_1); -x_3 = lean_unsigned_to_nat(2u); -x_4 = lean_nat_mul(x_2, x_3); -lean_dec(x_2); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_box(0); -x_7 = lean_mk_array(x_4, x_6); -x_8 = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3_spec__3___redArg(x_5, x_1, x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3___redArg(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_2); -lean_dec_ref(x_1); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(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_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_3, 1); -x_7 = lean_ctor_get(x_3, 2); -x_8 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(x_5, x_1); -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6___redArg(x_1, x_2, x_7); -lean_ctor_set(x_3, 2, x_9); -return x_3; -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 0, x_1); -return x_3; -} -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_3, 0); -x_11 = lean_ctor_get(x_3, 1); -x_12 = lean_ctor_get(x_3, 2); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_3); -x_13 = l_Lean_Grind_Ring_OfSemiring_instBEqExpr_beq(x_10, x_1); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6___redArg(x_1, x_2, x_12); -x_15 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set(x_15, 1, x_11); -lean_ctor_set(x_15, 2, x_14); -return x_15; -} -else -{ -lean_object* x_16; -lean_dec(x_11); -lean_dec(x_10); -x_16 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_2); -lean_ctor_set(x_16, 2, x_12); -return x_16; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6___redArg(x_2, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t 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; size_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; lean_object* x_20; uint8_t x_21; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_array_get_size(x_6); -x_8 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_2); -x_9 = 32; -x_10 = lean_uint64_shift_right(x_8, x_9); -x_11 = lean_uint64_xor(x_8, x_10); -x_12 = 16; -x_13 = lean_uint64_shift_right(x_11, x_12); -x_14 = lean_uint64_xor(x_11, x_13); -x_15 = lean_uint64_to_usize(x_14); -x_16 = lean_usize_of_nat(x_7); -lean_dec(x_7); -x_17 = 1; -x_18 = lean_usize_sub(x_16, x_17); -x_19 = lean_usize_land(x_15, x_18); -x_20 = lean_array_uget(x_6, x_19); -x_21 = l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg(x_2, x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_5, x_22); -lean_dec(x_5); -x_24 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_24, 0, x_2); -lean_ctor_set(x_24, 1, x_3); -lean_ctor_set(x_24, 2, x_20); -x_25 = lean_array_uset(x_6, x_19, x_24); -x_26 = lean_unsigned_to_nat(4u); -x_27 = lean_nat_mul(x_23, x_26); -x_28 = lean_unsigned_to_nat(3u); -x_29 = lean_nat_div(x_27, x_28); -lean_dec(x_27); -x_30 = lean_array_get_size(x_25); -x_31 = lean_nat_dec_le(x_29, x_30); -lean_dec(x_30); -lean_dec(x_29); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3___redArg(x_25); -lean_ctor_set(x_1, 1, x_32); -lean_ctor_set(x_1, 0, x_23); -return x_1; -} -else -{ -lean_ctor_set(x_1, 1, x_25); -lean_ctor_set(x_1, 0, x_23); -return x_1; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_box(0); -x_34 = lean_array_uset(x_6, x_19, x_33); -x_35 = l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6___redArg(x_2, x_3, x_20); -x_36 = lean_array_uset(x_34, x_19, x_35); -lean_ctor_set(x_1, 1, x_36); -return x_1; -} -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint64_t x_40; uint64_t x_41; uint64_t x_42; uint64_t x_43; uint64_t x_44; uint64_t x_45; uint64_t x_46; size_t x_47; size_t x_48; size_t x_49; size_t x_50; size_t x_51; lean_object* x_52; uint8_t x_53; -x_37 = lean_ctor_get(x_1, 0); -x_38 = lean_ctor_get(x_1, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_1); -x_39 = lean_array_get_size(x_38); -x_40 = l_Lean_Grind_Ring_OfSemiring_instHashableExpr_hash(x_2); -x_41 = 32; -x_42 = lean_uint64_shift_right(x_40, x_41); -x_43 = lean_uint64_xor(x_40, x_42); -x_44 = 16; -x_45 = lean_uint64_shift_right(x_43, x_44); -x_46 = lean_uint64_xor(x_43, x_45); -x_47 = lean_uint64_to_usize(x_46); -x_48 = lean_usize_of_nat(x_39); -lean_dec(x_39); -x_49 = 1; -x_50 = lean_usize_sub(x_48, x_49); -x_51 = lean_usize_land(x_47, x_50); -x_52 = lean_array_uget(x_38, x_51); -x_53 = l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg(x_2, x_52); -if (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; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_54 = lean_unsigned_to_nat(1u); -x_55 = lean_nat_add(x_37, x_54); -lean_dec(x_37); -x_56 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_56, 0, x_2); -lean_ctor_set(x_56, 1, x_3); -lean_ctor_set(x_56, 2, x_52); -x_57 = lean_array_uset(x_38, x_51, x_56); -x_58 = lean_unsigned_to_nat(4u); -x_59 = lean_nat_mul(x_55, x_58); -x_60 = lean_unsigned_to_nat(3u); -x_61 = lean_nat_div(x_59, x_60); -lean_dec(x_59); -x_62 = lean_array_get_size(x_57); -x_63 = lean_nat_dec_le(x_61, x_62); -lean_dec(x_62); -lean_dec(x_61); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -x_64 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__3___redArg(x_57); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_55); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -else -{ -lean_object* x_66; -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_55); -lean_ctor_set(x_66, 1, x_57); -return x_66; -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_67 = lean_box(0); -x_68 = lean_array_uset(x_38, x_51, x_67); -x_69 = l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__6___redArg(x_2, x_3, x_52); -x_70 = lean_array_uset(x_68, x_51, x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_37); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2___redArg(x_2, x_3, x_4); -return x_5; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl(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: { @@ -11432,7 +11775,7 @@ x_17 = lean_ctor_get(x_14, 1); x_18 = lean_ctor_get(x_16, 4); lean_inc_ref(x_18); lean_dec(x_16); -x_19 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg(x_18, x_1); +x_19 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__0___redArg(x_18, x_1); lean_dec_ref(x_18); if (lean_obj_tag(x_19) == 0) { @@ -11457,7 +11800,7 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint x_27 = lean_ctor_get(x_24, 4); x_28 = l_Lean_mkFVar(x_21); lean_inc_ref(x_28); -x_29 = l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2___redArg(x_27, x_1, x_28); +x_29 = l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2___redArg(x_27, x_1, x_28); lean_ctor_set(x_24, 4, x_29); x_30 = lean_st_ref_set(x_3, x_24, x_25); x_31 = !lean_is_exclusive(x_30); @@ -11497,7 +11840,7 @@ lean_inc(x_35); lean_dec(x_24); x_40 = l_Lean_mkFVar(x_21); lean_inc_ref(x_40); -x_41 = l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2___redArg(x_39, x_1, x_40); +x_41 = l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2___redArg(x_39, x_1, x_40); x_42 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_42, 0, x_35); lean_ctor_set(x_42, 1, x_36); @@ -11547,7 +11890,7 @@ lean_dec(x_14); x_50 = lean_ctor_get(x_48, 4); lean_inc_ref(x_50); lean_dec(x_48); -x_51 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg(x_50, x_1); +x_51 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__0___redArg(x_50, x_1); lean_dec_ref(x_50); if (lean_obj_tag(x_51) == 0) { @@ -11587,7 +11930,7 @@ if (lean_is_exclusive(x_56)) { } x_64 = l_Lean_mkFVar(x_53); lean_inc_ref(x_64); -x_65 = l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2___redArg(x_62, x_1, x_64); +x_65 = l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkExprDecl_spec__2___redArg(x_62, x_1, x_64); if (lean_is_scalar(x_63)) { x_66 = lean_alloc_ctor(0, 5, 0); } else { @@ -11633,68 +11976,6 @@ return x_72; } } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___redArg(x_1, x_2); -lean_dec(x_2); -lean_dec_ref(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0_spec__0(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec_ref(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___redArg(x_1, x_2); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__0(x_1, x_2, x_3); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___redArg(x_1, x_2); -lean_dec(x_2); -lean_dec_ref(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2___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_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl_spec__2_spec__2(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec_ref(x_2); -x_5 = lean_box(x_4); -return x_5; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSExprDecl___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: { @@ -13170,7 +13451,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_14 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_12); return x_14; } @@ -13290,165 +13571,172 @@ lean_dec_ref(x_15); x_20 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_20) == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_21, 0); +lean_inc_ref(x_22); +lean_dec(x_21); +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 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; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_22, 2); -lean_inc_ref(x_23); -x_24 = lean_ctor_get(x_22, 3); -lean_inc(x_24); -x_25 = lean_ctor_get(x_22, 4); +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); +lean_dec(x_24); +x_25 = lean_ctor_get(x_22, 1); lean_inc_ref(x_25); -lean_dec(x_22); -x_26 = lean_box(0); +x_26 = lean_ctor_get(x_22, 2); +lean_inc(x_26); +x_27 = lean_ctor_get(x_22, 3); +lean_inc_ref(x_27); +lean_dec_ref(x_22); +x_28 = lean_box(0); lean_ctor_set_tag(x_2, 1); -lean_ctor_set(x_2, 1, x_26); -lean_ctor_set(x_2, 0, x_24); -x_27 = l_Lean_mkConst(x_1, x_2); -x_28 = l_Lean_mkApp3(x_27, x_23, x_25, x_19); -lean_ctor_set(x_20, 0, x_28); +lean_ctor_set(x_2, 1, x_28); +lean_ctor_set(x_2, 0, x_26); +x_29 = l_Lean_mkConst(x_1, x_2); +x_30 = l_Lean_mkApp3(x_29, x_25, x_27, x_19); +lean_ctor_set(x_20, 0, x_30); return x_20; } else { -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; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_inc(x_29); +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; +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); lean_dec(x_20); -x_31 = lean_ctor_get(x_29, 2); -lean_inc_ref(x_31); -x_32 = lean_ctor_get(x_29, 3); -lean_inc(x_32); -x_33 = lean_ctor_get(x_29, 4); -lean_inc_ref(x_33); -lean_dec(x_29); -x_34 = lean_box(0); +x_32 = lean_ctor_get(x_22, 1); +lean_inc_ref(x_32); +x_33 = lean_ctor_get(x_22, 2); +lean_inc(x_33); +x_34 = lean_ctor_get(x_22, 3); +lean_inc_ref(x_34); +lean_dec_ref(x_22); +x_35 = lean_box(0); lean_ctor_set_tag(x_2, 1); -lean_ctor_set(x_2, 1, x_34); -lean_ctor_set(x_2, 0, x_32); -x_35 = l_Lean_mkConst(x_1, x_2); -x_36 = l_Lean_mkApp3(x_35, x_31, x_33, x_19); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_ctor_set(x_2, 1, x_35); +lean_ctor_set(x_2, 0, x_33); +x_36 = l_Lean_mkConst(x_1, x_2); +x_37 = l_Lean_mkApp3(x_36, x_32, x_34, x_19); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_31); +return x_38; } } else { -uint8_t x_38; +uint8_t x_39; lean_dec(x_19); lean_free_object(x_2); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_20); -if (x_38 == 0) +x_39 = !lean_is_exclusive(x_20); +if (x_39 == 0) { return x_20; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_20, 0); -x_40 = lean_ctor_get(x_20, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_20, 0); +x_41 = lean_ctor_get(x_20, 1); +lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); lean_dec(x_20); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } } else { -lean_object* x_42; -x_42 = lean_ctor_get(x_2, 1); -lean_inc(x_42); +lean_object* x_43; +x_43 = lean_ctor_get(x_2, 1); +lean_inc(x_43); lean_dec(x_2); -if (lean_obj_tag(x_42) == 0) +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; +lean_object* x_44; lean_object* x_45; lean_dec(x_1); -x_43 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__53; -x_44 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_spec__0___redArg(x_43, x_9, x_10, x_11, x_12, x_13); -return x_44; +x_44 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__53; +x_45 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_spec__0___redArg(x_44, x_9, x_10, x_11, x_12, x_13); +return x_45; } else { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_42, 0); -lean_inc(x_45); -lean_dec_ref(x_42); -x_46 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_46) == 0) +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_43, 0); +lean_inc(x_46); +lean_dec_ref(x_43); +x_47 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_47) == 0) { -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; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); +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_48 = lean_ctor_get(x_47, 0); 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; +x_49 = lean_ctor_get(x_48, 0); +lean_inc_ref(x_49); +lean_dec(x_48); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_51 = x_47; } else { - lean_dec_ref(x_46); - x_49 = lean_box(0); + lean_dec_ref(x_47); + x_51 = lean_box(0); } -x_50 = lean_ctor_get(x_47, 2); -lean_inc_ref(x_50); -x_51 = lean_ctor_get(x_47, 3); -lean_inc(x_51); -x_52 = lean_ctor_get(x_47, 4); +x_52 = lean_ctor_get(x_49, 1); lean_inc_ref(x_52); -lean_dec(x_47); -x_53 = lean_box(0); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_mkConst(x_1, x_54); -x_56 = l_Lean_mkApp3(x_55, x_50, x_52, x_45); -if (lean_is_scalar(x_49)) { - x_57 = lean_alloc_ctor(0, 2, 0); +x_53 = lean_ctor_get(x_49, 2); +lean_inc(x_53); +x_54 = lean_ctor_get(x_49, 3); +lean_inc_ref(x_54); +lean_dec_ref(x_49); +x_55 = lean_box(0); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Lean_mkConst(x_1, x_56); +x_58 = l_Lean_mkApp3(x_57, x_52, x_54, x_46); +if (lean_is_scalar(x_51)) { + x_59 = lean_alloc_ctor(0, 2, 0); } else { - x_57 = x_49; + x_59 = x_51; } -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_48); -return x_57; +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_50); +return x_59; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_45); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_46); lean_dec(x_1); -x_58 = lean_ctor_get(x_46, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_46, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_60 = x_46; +x_60 = lean_ctor_get(x_47, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_47, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_62 = x_47; } else { - lean_dec_ref(x_46); - x_60 = lean_box(0); + lean_dec_ref(x_47); + x_62 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_60; + x_63 = x_62; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; } } } @@ -13598,68 +13886,71 @@ return x_29; } else { -uint8_t x_30; +lean_object* x_30; uint8_t x_31; lean_dec(x_11); lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); -x_30 = !lean_is_exclusive(x_25); -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; -x_31 = lean_ctor_get(x_25, 0); -lean_dec(x_31); -x_32 = lean_ctor_get(x_26, 0); -lean_inc(x_32); -lean_dec_ref(x_26); -x_33 = lean_ctor_get(x_20, 2); -lean_inc_ref(x_33); -x_34 = lean_ctor_get(x_20, 3); -lean_inc(x_34); -x_35 = lean_ctor_get(x_20, 4); -lean_inc_ref(x_35); +x_30 = lean_ctor_get(x_20, 0); +lean_inc_ref(x_30); lean_dec(x_20); -x_36 = lean_box(0); +x_31 = !lean_is_exclusive(x_25); +if (x_31 == 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; lean_object* x_39; +x_32 = lean_ctor_get(x_25, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_26, 0); +lean_inc(x_33); +lean_dec_ref(x_26); +x_34 = lean_ctor_get(x_30, 1); +lean_inc_ref(x_34); +x_35 = lean_ctor_get(x_30, 2); +lean_inc(x_35); +x_36 = lean_ctor_get(x_30, 3); +lean_inc_ref(x_36); +lean_dec_ref(x_30); +x_37 = lean_box(0); lean_ctor_set_tag(x_2, 1); -lean_ctor_set(x_2, 1, x_36); -lean_ctor_set(x_2, 0, x_34); -x_37 = l_Lean_mkConst(x_1, x_2); -x_38 = l_Lean_mkApp4(x_37, x_33, x_35, x_32, x_18); -lean_ctor_set(x_25, 0, x_38); +lean_ctor_set(x_2, 1, x_37); +lean_ctor_set(x_2, 0, x_35); +x_38 = l_Lean_mkConst(x_1, x_2); +x_39 = l_Lean_mkApp4(x_38, x_34, x_36, x_33, x_18); +lean_ctor_set(x_25, 0, x_39); return x_25; } else { -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; -x_39 = lean_ctor_get(x_25, 1); -lean_inc(x_39); -lean_dec(x_25); -x_40 = lean_ctor_get(x_26, 0); +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; +x_40 = lean_ctor_get(x_25, 1); lean_inc(x_40); +lean_dec(x_25); +x_41 = lean_ctor_get(x_26, 0); +lean_inc(x_41); lean_dec_ref(x_26); -x_41 = lean_ctor_get(x_20, 2); -lean_inc_ref(x_41); -x_42 = lean_ctor_get(x_20, 3); -lean_inc(x_42); -x_43 = lean_ctor_get(x_20, 4); -lean_inc_ref(x_43); -lean_dec(x_20); -x_44 = lean_box(0); +x_42 = lean_ctor_get(x_30, 1); +lean_inc_ref(x_42); +x_43 = lean_ctor_get(x_30, 2); +lean_inc(x_43); +x_44 = lean_ctor_get(x_30, 3); +lean_inc_ref(x_44); +lean_dec_ref(x_30); +x_45 = lean_box(0); lean_ctor_set_tag(x_2, 1); -lean_ctor_set(x_2, 1, x_44); -lean_ctor_set(x_2, 0, x_42); -x_45 = l_Lean_mkConst(x_1, x_2); -x_46 = l_Lean_mkApp4(x_45, x_41, x_43, x_40, x_18); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_39); -return x_47; +lean_ctor_set(x_2, 1, x_45); +lean_ctor_set(x_2, 0, x_43); +x_46 = l_Lean_mkConst(x_1, x_2); +x_47 = l_Lean_mkApp4(x_46, x_42, x_44, x_41, x_18); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_40); +return x_48; } } } else { -uint8_t x_48; +uint8_t x_49; lean_dec(x_20); lean_dec(x_18); lean_free_object(x_2); @@ -13668,29 +13959,29 @@ lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_25); -if (x_48 == 0) +x_49 = !lean_is_exclusive(x_25); +if (x_49 == 0) { return x_25; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_25, 0); -x_50 = lean_ctor_get(x_25, 1); +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_inc(x_49); lean_dec(x_25); -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; +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; } } } else { -uint8_t x_52; +uint8_t x_53; lean_dec(x_20); lean_dec(x_18); lean_free_object(x_2); @@ -13699,29 +13990,29 @@ lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_1); -x_52 = !lean_is_exclusive(x_22); -if (x_52 == 0) +x_53 = !lean_is_exclusive(x_22); +if (x_53 == 0) { return x_22; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_22, 0); -x_54 = lean_ctor_get(x_22, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_22, 0); +x_55 = lean_ctor_get(x_22, 1); +lean_inc(x_55); lean_inc(x_54); -lean_inc(x_53); lean_dec(x_22); -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; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -uint8_t x_56; +uint8_t x_57; lean_dec(x_18); lean_free_object(x_2); lean_dec(x_11); @@ -13729,232 +14020,235 @@ lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_19); -if (x_56 == 0) +x_57 = !lean_is_exclusive(x_19); +if (x_57 == 0) { return x_19; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_19, 0); -x_58 = lean_ctor_get(x_19, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_19, 0); +x_59 = lean_ctor_get(x_19, 1); +lean_inc(x_59); lean_inc(x_58); -lean_inc(x_57); lean_dec(x_19); -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_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_60; -x_60 = lean_ctor_get(x_2, 1); -lean_inc(x_60); +lean_object* x_61; +x_61 = lean_ctor_get(x_2, 1); +lean_inc(x_61); lean_dec(x_2); -if (lean_obj_tag(x_60) == 0) +if (lean_obj_tag(x_61) == 0) { -lean_object* x_61; lean_object* x_62; +lean_object* x_62; lean_object* x_63; lean_dec(x_1); -x_61 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__53; -x_62 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_spec__0___redArg(x_61, x_8, x_9, x_10, x_11, x_12); +x_62 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSContext___closed__53; +x_63 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_spec__0___redArg(x_62, 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); -return x_62; +return x_63; } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -lean_dec_ref(x_60); -x_64 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_64) == 0) +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 0); +lean_inc(x_64); +lean_dec_ref(x_61); +x_65 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_65) == 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_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec_ref(x_64); -x_67 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringIdOf(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_66); -if (lean_obj_tag(x_67) == 0) +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec_ref(x_65); +x_68 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringIdOf(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_67); +if (lean_obj_tag(x_68) == 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_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec_ref(x_67); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec_ref(x_68); lean_inc(x_11); lean_inc_ref(x_10); lean_inc(x_9); lean_inc_ref(x_8); -x_70 = l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f(x_68, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_69); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); +x_71 = l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f(x_69, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_70); if (lean_obj_tag(x_71) == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_65); -lean_dec(x_63); -lean_dec(x_1); -x_72 = lean_ctor_get(x_70, 1); +lean_object* x_72; +x_72 = lean_ctor_get(x_71, 0); lean_inc(x_72); -lean_dec_ref(x_70); -x_73 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringAddRightCancelPrefix___redArg___closed__1; -x_74 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_spec__0___redArg(x_73, x_8, x_9, x_10, x_11, x_72); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -return x_74; -} -else +if (lean_obj_tag(x_72) == 0) { -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_dec(x_11); -lean_dec_ref(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_76 = x_70; -} else { - lean_dec_ref(x_70); - x_76 = lean_box(0); -} -x_77 = lean_ctor_get(x_71, 0); -lean_inc(x_77); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_66); +lean_dec(x_64); +lean_dec(x_1); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); lean_dec_ref(x_71); -x_78 = lean_ctor_get(x_65, 2); -lean_inc_ref(x_78); -x_79 = lean_ctor_get(x_65, 3); +x_74 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringAddRightCancelPrefix___redArg___closed__1; +x_75 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringPrefix_spec__0___redArg(x_74, x_8, x_9, x_10, x_11, x_73); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +return x_75; +} +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; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +x_76 = lean_ctor_get(x_66, 0); +lean_inc_ref(x_76); +lean_dec(x_66); +x_77 = lean_ctor_get(x_71, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_78 = x_71; +} else { + lean_dec_ref(x_71); + x_78 = lean_box(0); +} +x_79 = lean_ctor_get(x_72, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_65, 4); +lean_dec_ref(x_72); +x_80 = lean_ctor_get(x_76, 1); lean_inc_ref(x_80); -lean_dec(x_65); -x_81 = lean_box(0); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_mkConst(x_1, x_82); -x_84 = l_Lean_mkApp4(x_83, x_78, x_80, x_77, x_63); -if (lean_is_scalar(x_76)) { - x_85 = lean_alloc_ctor(0, 2, 0); +x_81 = lean_ctor_get(x_76, 2); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 3); +lean_inc_ref(x_82); +lean_dec_ref(x_76); +x_83 = lean_box(0); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_83); +x_85 = l_Lean_mkConst(x_1, x_84); +x_86 = l_Lean_mkApp4(x_85, x_80, x_82, x_79, x_64); +if (lean_is_scalar(x_78)) { + x_87 = lean_alloc_ctor(0, 2, 0); } else { - x_85 = x_76; + x_87 = x_78; } -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_75); -return x_85; +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_77); +return x_87; } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_65); -lean_dec(x_63); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_66); +lean_dec(x_64); lean_dec(x_11); lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_1); -x_86 = lean_ctor_get(x_70, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_70, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_88 = x_70; +x_88 = lean_ctor_get(x_71, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_71, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_90 = x_71; } else { - lean_dec_ref(x_70); - x_88 = lean_box(0); + lean_dec_ref(x_71); + x_90 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; + x_91 = x_90; } -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_65); -lean_dec(x_63); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_66); +lean_dec(x_64); lean_dec(x_11); lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_1); -x_90 = lean_ctor_get(x_67, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_67, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_92 = x_67; +x_92 = lean_ctor_get(x_68, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_68, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_94 = x_68; } else { - lean_dec_ref(x_67); - x_92 = lean_box(0); + lean_dec_ref(x_68); + x_94 = lean_box(0); } -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_93 = x_92; + x_95 = x_94; } -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -return x_93; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_63); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_64); lean_dec(x_11); lean_dec_ref(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_1); -x_94 = lean_ctor_get(x_64, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_64, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_96 = x_64; +x_96 = lean_ctor_get(x_65, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_65, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_98 = x_65; } else { - lean_dec_ref(x_64); - x_96 = lean_box(0); + lean_dec_ref(x_65); + x_98 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_99 = x_98; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; } } } @@ -14513,8 +14807,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__1; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14534,8 +14828,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__3; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14570,9 +14864,9 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__7; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__6; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14592,8 +14886,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__9; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14613,8 +14907,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__11; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14636,7 +14930,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__13; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6; x_3 = l_Lean_Expr_const___override(x_2, x_1); return x_3; } @@ -14711,8 +15005,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__21; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14732,8 +15026,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__23; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14753,8 +15047,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__25; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14774,8 +15068,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__27; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14795,8 +15089,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__29; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14816,8 +15110,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__31; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -14836,8 +15130,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_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__33; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -14856,8 +15150,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_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__35; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -15239,7 +15533,7 @@ lean_inc(x_145); x_146 = lean_ctor_get(x_144, 1); lean_inc(x_146); lean_dec_ref(x_144); -x_165 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_165 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_166 = lean_int_dec_le(x_165, x_113); if (x_166 == 0) { @@ -15277,7 +15571,7 @@ goto block_44; block_164: { lean_object* x_153; uint8_t x_154; -x_153 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_153 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_154 = lean_int_dec_le(x_153, x_116); if (x_154 == 0) { @@ -15452,7 +15746,7 @@ lean_inc(x_205); x_206 = lean_ctor_get(x_204, 1); lean_inc(x_206); lean_dec_ref(x_204); -x_225 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_225 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_226 = lean_int_dec_le(x_225, x_177); if (x_226 == 0) { @@ -15490,7 +15784,7 @@ goto block_44; block_224: { lean_object* x_213; uint8_t x_214; -x_213 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_213 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_214 = lean_int_dec_le(x_213, x_179); if (x_214 == 0) { @@ -15624,7 +15918,7 @@ lean_inc(x_252); x_253 = lean_ctor_get(x_251, 1); lean_inc(x_253); lean_dec_ref(x_251); -x_258 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_258 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_259 = lean_int_dec_le(x_258, x_237); if (x_259 == 0) { @@ -15772,7 +16066,7 @@ lean_inc(x_291); x_292 = lean_ctor_get(x_290, 1); lean_inc(x_292); lean_dec_ref(x_290); -x_297 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_297 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_298 = lean_int_dec_le(x_297, x_270); if (x_298 == 0) { @@ -15949,7 +16243,7 @@ lean_inc(x_336); x_337 = lean_ctor_get(x_335, 1); lean_inc(x_337); lean_dec_ref(x_335); -x_356 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_356 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_357 = lean_int_dec_le(x_356, x_313); if (x_357 == 0) { @@ -15987,7 +16281,7 @@ goto block_44; block_355: { lean_object* x_344; uint8_t x_345; -x_344 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_344 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_345 = lean_int_dec_le(x_344, x_314); if (x_345 == 0) { @@ -16700,7 +16994,7 @@ lean_inc(x_518); x_519 = lean_ctor_get(x_517, 1); lean_inc(x_519); lean_dec_ref(x_517); -x_538 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_538 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_539 = lean_int_dec_le(x_538, x_486); if (x_539 == 0) { @@ -16738,7 +17032,7 @@ goto block_417; block_537: { lean_object* x_526; uint8_t x_527; -x_526 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_526 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_527 = lean_int_dec_le(x_526, x_489); if (x_527 == 0) { @@ -16913,7 +17207,7 @@ lean_inc(x_578); x_579 = lean_ctor_get(x_577, 1); lean_inc(x_579); lean_dec_ref(x_577); -x_598 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_598 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_599 = lean_int_dec_le(x_598, x_550); if (x_599 == 0) { @@ -16951,7 +17245,7 @@ goto block_417; block_597: { lean_object* x_586; uint8_t x_587; -x_586 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_586 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_587 = lean_int_dec_le(x_586, x_552); if (x_587 == 0) { @@ -17085,7 +17379,7 @@ lean_inc(x_625); x_626 = lean_ctor_get(x_624, 1); lean_inc(x_626); lean_dec_ref(x_624); -x_631 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_631 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_632 = lean_int_dec_le(x_631, x_610); if (x_632 == 0) { @@ -17233,7 +17527,7 @@ lean_inc(x_664); x_665 = lean_ctor_get(x_663, 1); lean_inc(x_665); lean_dec_ref(x_663); -x_670 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_670 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_671 = lean_int_dec_le(x_670, x_643); if (x_671 == 0) { @@ -17412,7 +17706,7 @@ lean_inc(x_709); x_710 = lean_ctor_get(x_708, 1); lean_inc(x_710); lean_dec_ref(x_708); -x_729 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_729 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_730 = lean_int_dec_le(x_729, x_686); if (x_730 == 0) { @@ -17450,7 +17744,7 @@ goto block_417; block_728: { lean_object* x_717; uint8_t x_718; -x_717 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_717 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_718 = lean_int_dec_le(x_717, x_687); if (x_718 == 0) { @@ -18404,8 +18698,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__0; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -18425,8 +18719,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__2; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -18446,8 +18740,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__4; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -18467,8 +18761,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__6; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -18488,8 +18782,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__8; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -18508,8 +18802,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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__10; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -18544,7 +18838,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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__14; x_2 = lean_unsigned_to_nat(24u); -x_3 = lean_unsigned_to_nat(215u); +x_3 = lean_unsigned_to_nat(216u); x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__13; x_5 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__12; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -18762,7 +19056,7 @@ lean_inc(x_139); x_140 = lean_ctor_get(x_138, 1); lean_inc(x_140); lean_dec_ref(x_138); -x_144 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_144 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_145 = lean_int_dec_le(x_144, x_38); if (x_145 == 0) { @@ -18934,7 +19228,7 @@ block_71: { 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_65 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__5; -x_66 = l_Lean_mkApp10(x_59, x_57, x_63, x_62, x_64, x_56, x_60, x_61, x_65, x_50, x_53); +x_66 = l_Lean_mkApp10(x_63, x_58, x_57, x_59, x_64, x_62, x_56, x_61, x_65, x_50, x_53); x_67 = lean_int_mul(x_38, x_47); lean_dec(x_47); lean_dec(x_38); @@ -18958,13 +19252,13 @@ if (lean_is_scalar(x_55)) { x_70 = x_55; } lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_58); +lean_ctor_set(x_70, 1, x_60); return x_70; } block_91: { lean_object* x_80; uint8_t x_81; -x_80 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_80 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_81 = lean_int_dec_le(x_80, x_40); if (x_81 == 0) { @@ -18979,12 +19273,12 @@ lean_dec(x_85); x_87 = l_Lean_instToExprInt_mkNat(x_86); x_88 = l_Lean_mkApp3(x_82, x_83, x_84, x_87); x_56 = x_72; -x_57 = x_79; -x_58 = x_73; +x_57 = x_73; +x_58 = x_79; x_59 = x_74; x_60 = x_75; -x_61 = x_76; -x_62 = x_77; +x_61 = x_77; +x_62 = x_76; x_63 = x_78; x_64 = x_88; goto block_71; @@ -18996,12 +19290,12 @@ x_89 = l_Int_toNat(x_40); lean_dec(x_40); x_90 = l_Lean_instToExprInt_mkNat(x_89); x_56 = x_72; -x_57 = x_79; -x_58 = x_73; +x_57 = x_73; +x_58 = x_79; x_59 = x_74; x_60 = x_75; -x_61 = x_76; -x_62 = x_77; +x_61 = x_77; +x_62 = x_76; x_63 = x_78; x_64 = x_90; goto block_71; @@ -19057,7 +19351,7 @@ lean_inc(x_120); x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); lean_dec_ref(x_119); -x_122 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_122 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_123 = lean_int_dec_le(x_122, x_47); if (x_123 == 0) { @@ -19070,13 +19364,13 @@ x_128 = l_Int_toNat(x_127); lean_dec(x_127); x_129 = l_Lean_instToExprInt_mkNat(x_128); x_130 = l_Lean_mkApp3(x_124, x_125, x_126, x_129); -x_72 = x_113; -x_73 = x_121; -x_74 = x_92; -x_75 = x_117; -x_76 = x_120; -x_77 = x_110; -x_78 = x_106; +x_72 = x_117; +x_73 = x_106; +x_74 = x_110; +x_75 = x_121; +x_76 = x_113; +x_77 = x_120; +x_78 = x_92; x_79 = x_130; goto block_91; } @@ -19085,13 +19379,13 @@ else lean_object* x_131; lean_object* x_132; x_131 = l_Int_toNat(x_47); x_132 = l_Lean_instToExprInt_mkNat(x_131); -x_72 = x_113; -x_73 = x_121; -x_74 = x_92; -x_75 = x_117; -x_76 = x_120; -x_77 = x_110; -x_78 = x_106; +x_72 = x_117; +x_73 = x_106; +x_74 = x_110; +x_75 = x_121; +x_76 = x_113; +x_77 = x_120; +x_78 = x_92; x_79 = x_132; goto block_91; } @@ -19302,7 +19596,7 @@ if (lean_is_exclusive(x_203)) { lean_dec_ref(x_203); x_206 = lean_box(0); } -x_216 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_216 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_217 = lean_int_dec_le(x_216, x_179); if (x_217 == 0) { @@ -19972,7 +20266,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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__1; x_2 = lean_unsigned_to_nat(2u); -x_3 = lean_unsigned_to_nat(227u); +x_3 = lean_unsigned_to_nat(228u); x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__0; x_5 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_derivToExprProof___closed__12; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -19994,8 +20288,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__3; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -20015,8 +20309,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__5; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -20036,8 +20330,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__7; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -20057,8 +20351,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__9; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -20073,7 +20367,7 @@ if (lean_obj_tag(x_19) == 0) lean_object* x_20; lean_object* x_21; uint8_t x_22; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -x_21 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_21 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_22 = lean_int_dec_eq(x_20, x_21); lean_dec(x_20); if (x_22 == 0) @@ -21523,53 +21817,6 @@ return x_21; } } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("NatCast", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("natCast", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__3() { -_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_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___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_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25(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: { @@ -21578,8 +21825,8 @@ x_16 = lean_box(0); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_1); lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0; -x_19 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__1; +x_18 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0; +x_19 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1; lean_inc_ref(x_17); x_20 = l_Lean_mkConst(x_19, x_17); lean_inc_ref(x_2); @@ -21597,8 +21844,8 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec_ref(x_22); -x_25 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2; -x_26 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__3; +x_25 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5; +x_26 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6; lean_inc_ref(x_17); x_27 = l_Lean_mkConst(x_26, x_17); lean_inc_ref(x_2); @@ -21615,7 +21862,7 @@ lean_object* x_30; lean_object* x_31; lean_object* x_32; x_30 = lean_ctor_get(x_23, 0); lean_inc(x_30); lean_dec_ref(x_23); -x_31 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__4; +x_31 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7; lean_inc(x_14); lean_inc_ref(x_13); lean_inc(x_12); @@ -22094,7 +22341,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proo _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___lam__0___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___lam__0___boxed), 1, 0); return x_1; } } @@ -22139,7 +22386,7 @@ x_24 = lean_ctor_get(x_17, 1); lean_inc_ref(x_24); lean_dec_ref(x_17); x_25 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___closed__0; -x_26 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0; +x_26 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0; x_27 = l_Lean_Expr_app___override(x_22, x_26); x_28 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_28, 0, x_27); @@ -22355,8 +22602,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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__7; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -22402,8 +22649,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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__12; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -22449,8 +22696,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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__17; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -22487,7 +22734,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__21; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } @@ -23514,338 +23761,7 @@ lean_dec_ref(x_1); return x_14; } } -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; -lean_dec_ref(x_1); -x_4 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_4, 0, x_3); -return x_4; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 2); -lean_inc(x_6); -lean_dec_ref(x_2); -lean_inc_ref(x_1); -x_7 = lean_apply_2(x_1, x_5, x_3); -x_2 = x_6; -x_3 = x_7; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__0___redArg(x_2, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1___redArg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; -x_6 = lean_usize_dec_lt(x_4, x_3); -if (x_6 == 0) -{ -lean_dec_ref(x_1); -return x_5; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; -x_7 = lean_array_uget(x_2, x_4); -lean_inc_ref(x_1); -x_8 = l___private_Std_Data_DHashMap_Internal_AssocList_Basic_0__Std_DHashMap_Internal_AssocList_forInStep_go___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__0___redArg(x_1, x_7, x_5); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -lean_dec_ref(x_8); -x_10 = 1; -x_11 = lean_usize_add(x_4, x_10); -x_4 = x_11; -x_5 = x_9; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1___redArg(x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_1, 1); -x_5 = lean_array_size(x_4); -x_6 = 0; -x_7 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1___redArg(x_2, x_4, x_5, x_6, x_3); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(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_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(x_2, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__3(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_5 = lean_array_uget(x_3, x_2); -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_dec(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_uset(x_3, x_2, x_7); -x_9 = 1; -x_10 = lean_usize_add(x_2, x_9); -x_11 = lean_array_uset(x_8, x_2, x_6); -x_2 = x_10; -x_3 = x_11; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; -x_9 = lean_usize_dec_lt(x_7, x_6); -if (x_9 == 0) -{ -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -return x_8; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_array_uget(x_5, x_7); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec_ref(x_10); -x_12 = !lean_is_exclusive(x_8); -if (x_12 == 0) -{ -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; size_t x_20; size_t x_21; -x_13 = lean_ctor_get(x_8, 0); -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -lean_inc(x_1); -x_15 = lean_name_append_index_after(x_1, x_14); -lean_inc_ref(x_2); -x_16 = lean_apply_1(x_2, x_11); -lean_inc_ref(x_3); -x_17 = l_Lean_Expr_letE___override(x_15, x_3, x_16, x_13, x_4); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_sub(x_14, x_18); -lean_dec(x_14); -lean_ctor_set(x_8, 1, x_19); -lean_ctor_set(x_8, 0, x_17); -x_20 = 1; -x_21 = lean_usize_add(x_7, x_20); -x_7 = x_21; -goto _start; -} -else -{ -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; size_t x_31; size_t x_32; -x_23 = lean_ctor_get(x_8, 0); -x_24 = lean_ctor_get(x_8, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_8); -lean_inc(x_24); -lean_inc(x_1); -x_25 = lean_name_append_index_after(x_1, x_24); -lean_inc_ref(x_2); -x_26 = lean_apply_1(x_2, x_11); -lean_inc_ref(x_3); -x_27 = l_Lean_Expr_letE___override(x_25, x_3, x_26, x_23, x_4); -x_28 = lean_unsigned_to_nat(1u); -x_29 = lean_nat_sub(x_24, x_28); -lean_dec(x_24); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_27); -lean_ctor_set(x_30, 1, x_29); -x_31 = 1; -x_32 = lean_usize_add(x_7, x_31); -x_7 = x_32; -x_8 = x_30; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_2, 1); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_4); -lean_inc(x_3); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_3); -lean_ctor_set(x_6, 1, x_4); -x_7 = lean_array_push(x_1, x_6); -x_1 = x_7; -x_2 = x_5; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_usize_dec_eq(x_2, x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; -x_6 = lean_array_uget(x_1, x_2); -x_7 = l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__5(x_4, x_6); -lean_dec(x_6); -x_8 = 1; -x_9 = lean_usize_add(x_2, x_8); -x_2 = x_9; -x_4 = x_7; -goto _start; -} -else -{ -return x_4; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3(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; -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_7); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_8 = x_1; -} else { - lean_dec_ref(x_1); - x_8 = lean_box(0); -} -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_eq(x_6, x_9); -if (x_10 == 0) -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_mk_empty_array_with_capacity(x_6); -lean_dec(x_6); -x_24 = lean_array_get_size(x_7); -x_25 = lean_nat_dec_lt(x_9, x_24); -if (x_25 == 0) -{ -lean_dec(x_24); -lean_dec_ref(x_7); -x_11 = x_23; -goto block_22; -} -else -{ -uint8_t x_26; -x_26 = lean_nat_dec_le(x_24, x_24); -if (x_26 == 0) -{ -lean_dec(x_24); -lean_dec_ref(x_7); -x_11 = x_23; -goto block_22; -} -else -{ -size_t x_27; size_t x_28; lean_object* x_29; -x_27 = 0; -x_28 = lean_usize_of_nat(x_24); -lean_dec(x_24); -x_29 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__6(x_7, x_27, x_28, x_23); -lean_dec_ref(x_7); -x_11 = x_29; -goto block_22; -} -} -} -else -{ -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_inc_ref(x_2); -return x_2; -} -block_22: -{ -size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; lean_object* x_20; lean_object* x_21; -x_12 = lean_array_size(x_11); -x_13 = 0; -lean_inc_ref(x_11); -x_14 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__3(x_12, x_13, x_11); -x_15 = lean_expr_abstract(x_2, x_14); -lean_dec_ref(x_14); -x_16 = lean_array_get_size(x_11); -x_17 = l_Array_reverse___redArg(x_11); -if (lean_is_scalar(x_8)) { - x_18 = lean_alloc_ctor(0, 2, 0); -} else { - x_18 = x_8; -} -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_array_size(x_17); -x_20 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__4(x_3, x_5, x_4, x_10, x_17, x_19, x_13, x_18); -lean_dec_ref(x_17); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec_ref(x_20); -return x_21; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -23858,98 +23774,76 @@ return x_5; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_18; -x_7 = lean_ctor_get(x_1, 13); -x_8 = lean_ctor_get(x_7, 2); -x_9 = lean_array_uget(x_5, x_4); -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_array_uset(x_5, x_4, x_10); -x_18 = lean_nat_dec_lt(x_9, x_8); -if (x_18 == 0) -{ -lean_object* x_19; -lean_dec(x_9); -lean_inc_ref(x_2); -x_19 = l_outOfBounds___redArg(x_2); -x_12 = x_19; -goto block_17; -} -else +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; uint8_t x_19; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_7, 9); +x_9 = lean_ctor_get(x_8, 2); +x_10 = lean_array_uget(x_5, x_4); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_array_uset(x_5, x_4, x_11); +x_19 = lean_nat_dec_lt(x_10, x_9); +if (x_19 == 0) { lean_object* x_20; -lean_inc_ref(x_7); +lean_dec(x_10); lean_inc_ref(x_2); -x_20 = l_Lean_PersistentArray_get_x21___redArg(x_2, x_7, x_9); -lean_dec(x_9); -x_12 = x_20; -goto block_17; +x_20 = l_outOfBounds___redArg(x_2); +x_13 = x_20; +goto block_18; } -block_17: +else { -size_t x_13; size_t x_14; lean_object* x_15; -x_13 = 1; -x_14 = lean_usize_add(x_4, x_13); -x_15 = lean_array_uset(x_11, x_4, x_12); -x_4 = x_14; -x_5 = x_15; +lean_object* x_21; +lean_inc_ref(x_8); +lean_inc_ref(x_2); +x_21 = l_Lean_PersistentArray_get_x21___redArg(x_2, x_8, x_10); +lean_dec(x_10); +x_13 = x_21; +goto block_18; +} +block_18: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = 1; +x_15 = lean_usize_add(x_4, x_14); +x_16 = lean_array_uset(x_12, x_4, x_13); +x_4 = x_15; +x_5 = x_16; goto _start; } } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__0(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_collectVars(x_1, x_2); -return x_3; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_2, x_1); -x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_3); +x_3 = l_Lean_Grind_CommRing_Expr_renameVars(x_2, x_1); +x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr(x_3); return x_4; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__0() { _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_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__17; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__6; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; -x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); -return x_6; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___lam__1), 2, 0); +return x_1; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__0; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string_unchecked("sctx", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__1; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } @@ -24066,9 +23960,9 @@ lean_dec(x_32); x_39 = lean_ctor_get(x_36, 4); lean_inc_ref(x_39); lean_dec(x_36); -x_40 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__0), 2, 0); +x_40 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__0; x_41 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; -x_42 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(x_38, x_40, x_41); +x_42 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__6___redArg(x_38, x_40, x_41); lean_dec_ref(x_38); x_43 = l_Lean_Meta_Grind_FoundVars_toArray(x_42); lean_dec_ref(x_42); @@ -24077,8 +23971,8 @@ x_45 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommR lean_closure_set(x_45, 0, x_44); x_46 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__103; x_47 = lean_box(0); -x_48 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__1; -x_49 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3(x_39, x_1, x_46, x_48, x_45); +x_48 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__19; +x_49 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19(x_39, x_1, x_46, x_48, x_45); lean_dec_ref(x_1); x_50 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; x_51 = lean_array_push(x_50, x_17); @@ -24111,59 +24005,62 @@ x_54 = l_Lean_instInhabitedExpr; x_55 = lean_array_size(x_43); x_56 = 0; lean_inc(x_28); -x_57 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8(x_28, x_54, x_55, x_56, x_43); -x_58 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(x_57, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +x_57 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(x_28, x_54, x_55, x_56, x_43); +x_58 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0(x_57, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); if (lean_obj_tag(x_58) == 0) { -uint8_t x_59; -x_59 = !lean_is_exclusive(x_58); -if (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; uint8_t x_67; lean_object* x_68; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_28, 2); -lean_inc_ref(x_61); -x_62 = lean_ctor_get(x_28, 3); -lean_inc(x_62); +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_28, 0); +lean_inc_ref(x_59); lean_dec(x_28); -x_63 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; +x_60 = !lean_is_exclusive(x_58); +if (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; uint8_t x_68; lean_object* x_69; +x_61 = lean_ctor_get(x_58, 0); +x_62 = lean_ctor_get(x_59, 1); +lean_inc_ref(x_62); +x_63 = lean_ctor_get(x_59, 2); +lean_inc(x_63); +lean_dec_ref(x_59); +x_64 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; lean_ctor_set_tag(x_30, 1); lean_ctor_set(x_30, 1, x_47); -lean_ctor_set(x_30, 0, x_62); -x_64 = l_Lean_mkConst(x_63, x_30); -x_65 = l_Lean_Expr_app___override(x_64, x_61); -x_66 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3; -x_67 = 0; -x_68 = l_Lean_Expr_letE___override(x_66, x_65, x_60, x_52, x_67); -lean_ctor_set(x_58, 0, x_68); +lean_ctor_set(x_30, 0, x_63); +x_65 = l_Lean_mkConst(x_64, x_30); +x_66 = l_Lean_Expr_app___override(x_65, x_62); +x_67 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2; +x_68 = 0; +x_69 = l_Lean_Expr_letE___override(x_67, x_66, x_61, x_52, x_68); +lean_ctor_set(x_58, 0, x_69); return x_58; } else { -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; uint8_t x_77; lean_object* x_78; lean_object* x_79; -x_69 = lean_ctor_get(x_58, 0); -x_70 = lean_ctor_get(x_58, 1); +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; +x_70 = lean_ctor_get(x_58, 0); +x_71 = lean_ctor_get(x_58, 1); +lean_inc(x_71); lean_inc(x_70); -lean_inc(x_69); lean_dec(x_58); -x_71 = lean_ctor_get(x_28, 2); -lean_inc_ref(x_71); -x_72 = lean_ctor_get(x_28, 3); -lean_inc(x_72); -lean_dec(x_28); -x_73 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; +x_72 = lean_ctor_get(x_59, 1); +lean_inc_ref(x_72); +x_73 = lean_ctor_get(x_59, 2); +lean_inc(x_73); +lean_dec_ref(x_59); +x_74 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; lean_ctor_set_tag(x_30, 1); lean_ctor_set(x_30, 1, x_47); -lean_ctor_set(x_30, 0, x_72); -x_74 = l_Lean_mkConst(x_73, x_30); -x_75 = l_Lean_Expr_app___override(x_74, x_71); -x_76 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3; -x_77 = 0; -x_78 = l_Lean_Expr_letE___override(x_76, x_75, x_69, x_52, x_77); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_70); -return x_79; +lean_ctor_set(x_30, 0, x_73); +x_75 = l_Lean_mkConst(x_74, x_30); +x_76 = l_Lean_Expr_app___override(x_75, x_72); +x_77 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2; +x_78 = 0; +x_79 = l_Lean_Expr_letE___override(x_77, x_76, x_70, x_52, x_78); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_71); +return x_80; } } else @@ -24177,166 +24074,43 @@ return x_58; } else { -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; uint8_t x_97; -x_80 = lean_ctor_get(x_34, 0); -x_81 = lean_ctor_get(x_34, 1); +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; uint8_t x_98; +x_81 = lean_ctor_get(x_34, 0); +x_82 = lean_ctor_get(x_34, 1); +lean_inc(x_82); lean_inc(x_81); -lean_inc(x_80); lean_dec(x_34); -x_82 = lean_ctor_get(x_32, 4); -lean_inc_ref(x_82); -lean_dec(x_32); -x_83 = lean_ctor_get(x_80, 4); +x_83 = lean_ctor_get(x_32, 4); lean_inc_ref(x_83); -lean_dec(x_80); -x_84 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__0), 2, 0); -x_85 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; -x_86 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(x_82, x_84, x_85); -lean_dec_ref(x_82); -x_87 = l_Lean_Meta_Grind_FoundVars_toArray(x_86); -lean_dec_ref(x_86); -x_88 = l_Lean_Meta_Grind_mkVarRename(x_87); -x_89 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1___boxed), 2, 1); -lean_closure_set(x_89, 0, x_88); -x_90 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__103; -x_91 = lean_box(0); -x_92 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__1; -x_93 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3(x_83, x_1, x_90, x_92, x_89); -lean_dec_ref(x_1); -x_94 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; -x_95 = lean_array_push(x_94, x_17); -x_96 = lean_expr_abstract(x_93, x_95); -lean_dec_ref(x_95); -lean_dec_ref(x_93); -x_97 = l_Lean_Expr_hasLooseBVars(x_96); -if (x_97 == 0) -{ -lean_object* x_98; +lean_dec(x_32); +x_84 = lean_ctor_get(x_81, 4); +lean_inc_ref(x_84); +lean_dec(x_81); +x_85 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__0; +x_86 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; +x_87 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__6___redArg(x_83, x_85, x_86); +lean_dec_ref(x_83); +x_88 = l_Lean_Meta_Grind_FoundVars_toArray(x_87); lean_dec_ref(x_87); -lean_free_object(x_30); -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_81); -return x_98; -} -else -{ -lean_object* x_99; size_t x_100; size_t x_101; lean_object* x_102; lean_object* x_103; -x_99 = l_Lean_instInhabitedExpr; -x_100 = lean_array_size(x_87); -x_101 = 0; -lean_inc(x_28); -x_102 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8(x_28, x_99, x_100, x_101, x_87); -x_103 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(x_102, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_81); -if (lean_obj_tag(x_103) == 0) -{ -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; uint8_t x_113; lean_object* x_114; lean_object* x_115; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; -} else { - lean_dec_ref(x_103); - x_106 = lean_box(0); -} -x_107 = lean_ctor_get(x_28, 2); -lean_inc_ref(x_107); -x_108 = lean_ctor_get(x_28, 3); -lean_inc(x_108); -lean_dec(x_28); -x_109 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 1, x_91); -lean_ctor_set(x_30, 0, x_108); -x_110 = l_Lean_mkConst(x_109, x_30); -x_111 = l_Lean_Expr_app___override(x_110, x_107); -x_112 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3; -x_113 = 0; -x_114 = l_Lean_Expr_letE___override(x_112, x_111, x_104, x_96, x_113); -if (lean_is_scalar(x_106)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { - x_115 = x_106; -} -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_105); -return x_115; -} -else -{ -lean_dec_ref(x_96); -lean_free_object(x_30); -lean_dec(x_28); -return x_103; -} -} -} -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; 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; uint8_t x_137; -x_116 = lean_ctor_get(x_30, 0); -x_117 = lean_ctor_get(x_30, 1); -lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_30); -x_118 = lean_st_ref_get(x_3, x_117); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_121 = x_118; -} else { - lean_dec_ref(x_118); - x_121 = lean_box(0); -} -x_122 = lean_ctor_get(x_116, 4); -lean_inc_ref(x_122); -lean_dec(x_116); -x_123 = lean_ctor_get(x_119, 4); -lean_inc_ref(x_123); -lean_dec(x_119); -x_124 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__0), 2, 0); -x_125 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; -x_126 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(x_122, x_124, x_125); -lean_dec_ref(x_122); -x_127 = l_Lean_Meta_Grind_FoundVars_toArray(x_126); -lean_dec_ref(x_126); -x_128 = l_Lean_Meta_Grind_mkVarRename(x_127); -x_129 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1___boxed), 2, 1); -lean_closure_set(x_129, 0, x_128); -x_130 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__103; -x_131 = lean_box(0); -x_132 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__1; -x_133 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3(x_123, x_1, x_130, x_132, x_129); +x_89 = l_Lean_Meta_Grind_mkVarRename(x_88); +x_90 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1___boxed), 2, 1); +lean_closure_set(x_90, 0, x_89); +x_91 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__103; +x_92 = lean_box(0); +x_93 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__19; +x_94 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19(x_84, x_1, x_91, x_93, x_90); lean_dec_ref(x_1); -x_134 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; -x_135 = lean_array_push(x_134, x_17); -x_136 = lean_expr_abstract(x_133, x_135); -lean_dec_ref(x_135); -lean_dec_ref(x_133); -x_137 = l_Lean_Expr_hasLooseBVars(x_136); -if (x_137 == 0) +x_95 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; +x_96 = lean_array_push(x_95, x_17); +x_97 = lean_expr_abstract(x_94, x_96); +lean_dec_ref(x_96); +lean_dec_ref(x_94); +x_98 = l_Lean_Expr_hasLooseBVars(x_97); +if (x_98 == 0) { -lean_object* x_138; -lean_dec_ref(x_127); +lean_object* x_99; +lean_dec_ref(x_88); +lean_free_object(x_30); lean_dec(x_28); lean_dec(x_26); lean_dec(x_12); @@ -24347,75 +24121,204 @@ lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_5); -if (lean_is_scalar(x_121)) { - x_138 = lean_alloc_ctor(0, 2, 0); -} else { - x_138 = x_121; -} -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_120); -return x_138; +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_82); +return x_99; } else { -lean_object* x_139; size_t x_140; size_t x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_121); -x_139 = l_Lean_instInhabitedExpr; -x_140 = lean_array_size(x_127); -x_141 = 0; +lean_object* x_100; size_t x_101; size_t x_102; lean_object* x_103; lean_object* x_104; +x_100 = l_Lean_instInhabitedExpr; +x_101 = lean_array_size(x_88); +x_102 = 0; lean_inc(x_28); -x_142 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8(x_28, x_139, x_140, x_141, x_127); -x_143 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(x_142, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_120); -if (lean_obj_tag(x_143) == 0) +x_103 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(x_28, x_100, x_101, x_102, x_88); +x_104 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0(x_103, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_82); +if (lean_obj_tag(x_104) == 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; lean_object* x_152; lean_object* x_153; uint8_t x_154; lean_object* x_155; lean_object* x_156; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_146 = x_143; +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; +x_105 = lean_ctor_get(x_28, 0); +lean_inc_ref(x_105); +lean_dec(x_28); +x_106 = lean_ctor_get(x_104, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_104, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_108 = x_104; } else { - lean_dec_ref(x_143); - x_146 = lean_box(0); + lean_dec_ref(x_104); + x_108 = lean_box(0); } -x_147 = lean_ctor_get(x_28, 2); -lean_inc_ref(x_147); -x_148 = lean_ctor_get(x_28, 3); +x_109 = lean_ctor_get(x_105, 1); +lean_inc_ref(x_109); +x_110 = lean_ctor_get(x_105, 2); +lean_inc(x_110); +lean_dec_ref(x_105); +x_111 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 1, x_92); +lean_ctor_set(x_30, 0, x_110); +x_112 = l_Lean_mkConst(x_111, x_30); +x_113 = l_Lean_Expr_app___override(x_112, x_109); +x_114 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2; +x_115 = 0; +x_116 = l_Lean_Expr_letE___override(x_114, x_113, x_106, x_97, x_115); +if (lean_is_scalar(x_108)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_108; +} +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_107); +return x_117; +} +else +{ +lean_dec_ref(x_97); +lean_free_object(x_30); +lean_dec(x_28); +return x_104; +} +} +} +} +else +{ +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; uint8_t x_139; +x_118 = lean_ctor_get(x_30, 0); +x_119 = lean_ctor_get(x_30, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_30); +x_120 = lean_st_ref_get(x_3, x_119); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_123 = x_120; +} else { + lean_dec_ref(x_120); + x_123 = lean_box(0); +} +x_124 = lean_ctor_get(x_118, 4); +lean_inc_ref(x_124); +lean_dec(x_118); +x_125 = lean_ctor_get(x_121, 4); +lean_inc_ref(x_125); +lean_dec(x_121); +x_126 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__0; +x_127 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; +x_128 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__6___redArg(x_124, x_126, x_127); +lean_dec_ref(x_124); +x_129 = l_Lean_Meta_Grind_FoundVars_toArray(x_128); +lean_dec_ref(x_128); +x_130 = l_Lean_Meta_Grind_mkVarRename(x_129); +x_131 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1___boxed), 2, 1); +lean_closure_set(x_131, 0, x_130); +x_132 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__103; +x_133 = lean_box(0); +x_134 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__19; +x_135 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19(x_125, x_1, x_132, x_134, x_131); +lean_dec_ref(x_1); +x_136 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; +x_137 = lean_array_push(x_136, x_17); +x_138 = lean_expr_abstract(x_135, x_137); +lean_dec_ref(x_137); +lean_dec_ref(x_135); +x_139 = l_Lean_Expr_hasLooseBVars(x_138); +if (x_139 == 0) +{ +lean_object* x_140; +lean_dec_ref(x_129); +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_123)) { + x_140 = lean_alloc_ctor(0, 2, 0); +} else { + x_140 = x_123; +} +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_122); +return x_140; +} +else +{ +lean_object* x_141; size_t x_142; size_t x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_123); +x_141 = l_Lean_instInhabitedExpr; +x_142 = lean_array_size(x_129); +x_143 = 0; +lean_inc(x_28); +x_144 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(x_28, x_141, x_142, x_143, x_129); +x_145 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0(x_144, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_122); +if (lean_obj_tag(x_145) == 0) +{ +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; uint8_t x_157; lean_object* x_158; lean_object* x_159; +x_146 = lean_ctor_get(x_28, 0); +lean_inc_ref(x_146); +lean_dec(x_28); +x_147 = lean_ctor_get(x_145, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_145, 1); lean_inc(x_148); -lean_dec(x_28); -x_149 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_131); -x_151 = l_Lean_mkConst(x_149, x_150); -x_152 = l_Lean_Expr_app___override(x_151, x_147); -x_153 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3; -x_154 = 0; -x_155 = l_Lean_Expr_letE___override(x_153, x_152, x_144, x_136, x_154); -if (lean_is_scalar(x_146)) { - x_156 = lean_alloc_ctor(0, 2, 0); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_149 = x_145; } else { - x_156 = x_146; + lean_dec_ref(x_145); + x_149 = lean_box(0); } -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_145); -return x_156; +x_150 = lean_ctor_get(x_146, 1); +lean_inc_ref(x_150); +x_151 = lean_ctor_get(x_146, 2); +lean_inc(x_151); +lean_dec_ref(x_146); +x_152 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_133); +x_154 = l_Lean_mkConst(x_152, x_153); +x_155 = l_Lean_Expr_app___override(x_154, x_150); +x_156 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2; +x_157 = 0; +x_158 = l_Lean_Expr_letE___override(x_156, x_155, x_147, x_138, x_157); +if (lean_is_scalar(x_149)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_149; +} +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_148); +return x_159; } else { -lean_dec_ref(x_136); +lean_dec_ref(x_138); lean_dec(x_28); -return x_143; +return x_145; } } } } else { -uint8_t x_157; +uint8_t x_160; lean_dec(x_26); lean_dec(x_17); lean_dec(x_12); @@ -24427,30 +24330,30 @@ lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec_ref(x_1); -x_157 = !lean_is_exclusive(x_27); -if (x_157 == 0) +x_160 = !lean_is_exclusive(x_27); +if (x_160 == 0) { return x_27; } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_27, 0); -x_159 = lean_ctor_get(x_27, 1); -lean_inc(x_159); -lean_inc(x_158); +lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_161 = lean_ctor_get(x_27, 0); +x_162 = lean_ctor_get(x_27, 1); +lean_inc(x_162); +lean_inc(x_161); lean_dec(x_27); -x_160 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); -return x_160; +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_162); +return x_163; } } } } else { -uint8_t x_161; +uint8_t x_164; lean_dec(x_17); lean_dec(x_12); lean_dec_ref(x_11); @@ -24461,68 +24364,36 @@ lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec_ref(x_1); -x_161 = !lean_is_exclusive(x_18); -if (x_161 == 0) +x_164 = !lean_is_exclusive(x_18); +if (x_164 == 0) { return x_18; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = lean_ctor_get(x_18, 0); -x_163 = lean_ctor_get(x_18, 1); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_18); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set(x_164, 1, x_163); -return x_164; -} -} -} -} -else -{ -lean_object* x_165; -x_165 = lean_ctor_get(x_2, 1); +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_18, 0); +x_166 = lean_ctor_get(x_18, 1); +lean_inc(x_166); lean_inc(x_165); -lean_dec(x_2); -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_166; -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_166 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_166, 0, x_1); -lean_ctor_set(x_166, 1, x_13); -return x_166; +lean_dec(x_18); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +return x_167; +} +} +} } else { -lean_object* x_167; lean_object* x_168; -x_167 = lean_ctor_get(x_165, 0); -lean_inc(x_167); -lean_dec_ref(x_165); -x_168 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_object* x_168; +x_168 = lean_ctor_get(x_2, 1); +lean_inc(x_168); +lean_dec(x_2); if (lean_obj_tag(x_168) == 0) { -lean_object* x_169; lean_object* x_170; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_169, 2); -lean_inc(x_170); -lean_dec(x_169); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; lean_object* x_172; lean_object* x_173; -lean_dec(x_167); +lean_object* x_169; lean_dec(x_12); lean_dec_ref(x_11); lean_dec(x_10); @@ -24531,186 +24402,134 @@ lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_5); -x_171 = lean_ctor_get(x_168, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_172 = x_168; -} else { - lean_dec_ref(x_168); - x_172 = lean_box(0); -} -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(0, 2, 0); -} else { - x_173 = x_172; -} -lean_ctor_set(x_173, 0, x_1); -lean_ctor_set(x_173, 1, x_171); -return x_173; +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_1); +lean_ctor_set(x_169, 1, x_13); +return x_169; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_168, 1); -lean_inc(x_174); +lean_object* x_170; lean_object* x_171; +x_170 = lean_ctor_get(x_168, 0); +lean_inc(x_170); lean_dec_ref(x_168); -x_175 = lean_ctor_get(x_170, 0); -lean_inc(x_175); -lean_dec_ref(x_170); -x_176 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_174); -if (lean_obj_tag(x_176) == 0) +x_171 = l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_171) == 0) { -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; uint8_t x_202; -x_177 = lean_ctor_get(x_176, 0); +lean_object* x_172; lean_object* x_173; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_172, 2); +lean_inc(x_173); +lean_dec(x_172); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_170); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_174 = lean_ctor_get(x_171, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_175 = x_171; +} else { + lean_dec_ref(x_171); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(0, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_1); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_171, 1); lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); +lean_dec_ref(x_171); +x_178 = lean_ctor_get(x_173, 0); lean_inc(x_178); -lean_dec_ref(x_176); -x_179 = lean_st_ref_get(x_3, x_178); +lean_dec_ref(x_173); +x_179 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getSemiringOf(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_177); +if (lean_obj_tag(x_179) == 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; 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; uint8_t x_205; x_180 = lean_ctor_get(x_179, 0); lean_inc(x_180); x_181 = lean_ctor_get(x_179, 1); lean_inc(x_181); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_182 = x_179; -} else { - lean_dec_ref(x_179); - x_182 = lean_box(0); -} -x_183 = lean_st_ref_get(x_3, x_181); -x_184 = lean_ctor_get(x_183, 0); +lean_dec_ref(x_179); +x_182 = lean_st_ref_get(x_3, x_181); +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); 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; +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_183); - x_186 = lean_box(0); + lean_dec_ref(x_182); + x_185 = lean_box(0); } -x_187 = lean_ctor_get(x_180, 4); -lean_inc_ref(x_187); -lean_dec(x_180); -x_188 = lean_ctor_get(x_184, 4); -lean_inc_ref(x_188); -lean_dec(x_184); -x_189 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__0), 2, 0); -x_190 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; -x_191 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(x_187, x_189, x_190); -lean_dec_ref(x_187); -x_192 = l_Lean_Meta_Grind_FoundVars_toArray(x_191); -lean_dec_ref(x_191); -x_193 = l_Lean_Meta_Grind_mkVarRename(x_192); -x_194 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1___boxed), 2, 1); -lean_closure_set(x_194, 0, x_193); -x_195 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__103; -x_196 = lean_box(0); -x_197 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__1; -x_198 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3(x_188, x_1, x_195, x_197, x_194); +x_186 = lean_st_ref_get(x_3, x_184); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_189 = x_186; +} else { + lean_dec_ref(x_186); + x_189 = lean_box(0); +} +x_190 = lean_ctor_get(x_183, 4); +lean_inc_ref(x_190); +lean_dec(x_183); +x_191 = lean_ctor_get(x_187, 4); +lean_inc_ref(x_191); +lean_dec(x_187); +x_192 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__0; +x_193 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; +x_194 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__6___redArg(x_190, x_192, x_193); +lean_dec_ref(x_190); +x_195 = l_Lean_Meta_Grind_FoundVars_toArray(x_194); +lean_dec_ref(x_194); +x_196 = l_Lean_Meta_Grind_mkVarRename(x_195); +x_197 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___lam__1___boxed), 2, 1); +lean_closure_set(x_197, 0, x_196); +x_198 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing___aux__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof______macroRules____private__Lean__Meta__Tactic__Grind__Arith__CommRing__Proof__0__Lean__Meta__Grind__Arith__CommRing__termDeclare_x21______1___closed__103; +x_199 = lean_box(0); +x_200 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__19; +x_201 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__19(x_191, x_1, x_198, x_200, x_197); lean_dec_ref(x_1); -x_199 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; -x_200 = lean_array_push(x_199, x_167); -x_201 = lean_expr_abstract(x_198, x_200); -lean_dec_ref(x_200); -lean_dec_ref(x_198); -x_202 = l_Lean_Expr_hasLooseBVars(x_201); -if (x_202 == 0) -{ -lean_object* x_203; -lean_dec_ref(x_192); -lean_dec(x_182); -lean_dec(x_177); -lean_dec(x_175); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec(x_5); -if (lean_is_scalar(x_186)) { - x_203 = lean_alloc_ctor(0, 2, 0); -} else { - x_203 = x_186; -} -lean_ctor_set(x_203, 0, x_201); -lean_ctor_set(x_203, 1, x_185); -return x_203; -} -else -{ -lean_object* x_204; size_t x_205; size_t x_206; lean_object* x_207; lean_object* x_208; -lean_dec(x_186); -x_204 = l_Lean_instInhabitedExpr; -x_205 = lean_array_size(x_192); -x_206 = 0; -lean_inc(x_177); -x_207 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8(x_177, x_204, x_205, x_206, x_192); -x_208 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(x_207, x_175, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_185); -if (lean_obj_tag(x_208) == 0) -{ -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_object* x_221; -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_211 = x_208; -} else { - lean_dec_ref(x_208); - x_211 = lean_box(0); -} -x_212 = lean_ctor_get(x_177, 2); -lean_inc_ref(x_212); -x_213 = lean_ctor_get(x_177, 3); -lean_inc(x_213); -lean_dec(x_177); -x_214 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; -if (lean_is_scalar(x_182)) { - x_215 = lean_alloc_ctor(1, 2, 0); -} else { - x_215 = x_182; - lean_ctor_set_tag(x_215, 1); -} -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_196); -x_216 = l_Lean_mkConst(x_214, x_215); -x_217 = l_Lean_Expr_app___override(x_216, x_212); -x_218 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3; -x_219 = 0; -x_220 = l_Lean_Expr_letE___override(x_218, x_217, x_209, x_201, x_219); -if (lean_is_scalar(x_211)) { - x_221 = lean_alloc_ctor(0, 2, 0); -} else { - x_221 = x_211; -} -lean_ctor_set(x_221, 0, x_220); -lean_ctor_set(x_221, 1, x_210); -return x_221; -} -else -{ +x_202 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__20; +x_203 = lean_array_push(x_202, x_170); +x_204 = lean_expr_abstract(x_201, x_203); +lean_dec_ref(x_203); lean_dec_ref(x_201); -lean_dec(x_182); -lean_dec(x_177); -return x_208; -} -} -} -else +x_205 = l_Lean_Expr_hasLooseBVars(x_204); +if (x_205 == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -lean_dec(x_175); -lean_dec(x_167); +lean_object* x_206; +lean_dec_ref(x_195); +lean_dec(x_185); +lean_dec(x_180); +lean_dec(x_178); lean_dec(x_12); lean_dec_ref(x_11); lean_dec(x_10); @@ -24719,34 +24538,85 @@ lean_dec(x_8); lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec_ref(x_1); -x_222 = lean_ctor_get(x_176, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_176, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_224 = x_176; +if (lean_is_scalar(x_189)) { + x_206 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_176); - x_224 = lean_box(0); + x_206 = x_189; } -if (lean_is_scalar(x_224)) { - x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_188); +return x_206; +} +else +{ +lean_object* x_207; size_t x_208; size_t x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_189); +x_207 = l_Lean_instInhabitedExpr; +x_208 = lean_array_size(x_195); +x_209 = 0; +lean_inc(x_180); +x_210 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(x_180, x_207, x_208, x_209, x_195); +x_211 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0(x_210, x_178, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_188); +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; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; lean_object* x_224; lean_object* x_225; +x_212 = lean_ctor_get(x_180, 0); +lean_inc_ref(x_212); +lean_dec(x_180); +x_213 = lean_ctor_get(x_211, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_211, 1); +lean_inc(x_214); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_215 = x_211; } else { - x_225 = x_224; + lean_dec_ref(x_211); + x_215 = lean_box(0); } -lean_ctor_set(x_225, 0, x_222); -lean_ctor_set(x_225, 1, x_223); +x_216 = lean_ctor_get(x_212, 1); +lean_inc_ref(x_216); +x_217 = lean_ctor_get(x_212, 2); +lean_inc(x_217); +lean_dec_ref(x_212); +x_218 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__22; +if (lean_is_scalar(x_185)) { + x_219 = lean_alloc_ctor(1, 2, 0); +} else { + x_219 = x_185; + lean_ctor_set_tag(x_219, 1); +} +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_199); +x_220 = l_Lean_mkConst(x_218, x_219); +x_221 = l_Lean_Expr_app___override(x_220, x_216); +x_222 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2; +x_223 = 0; +x_224 = l_Lean_Expr_letE___override(x_222, x_221, x_213, x_204, x_223); +if (lean_is_scalar(x_215)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_215; +} +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_214); return x_225; } +else +{ +lean_dec_ref(x_204); +lean_dec(x_185); +lean_dec(x_180); +return x_211; +} } } else { lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -lean_dec(x_167); +lean_dec(x_178); +lean_dec(x_170); lean_dec(x_12); lean_dec_ref(x_11); lean_dec(x_10); @@ -24756,16 +24626,16 @@ lean_dec_ref(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec_ref(x_1); -x_226 = lean_ctor_get(x_168, 0); +x_226 = lean_ctor_get(x_179, 0); lean_inc(x_226); -x_227 = lean_ctor_get(x_168, 1); +x_227 = lean_ctor_get(x_179, 1); lean_inc(x_227); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_228 = x_168; +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_228 = x_179; } else { - lean_dec_ref(x_168); + lean_dec_ref(x_179); x_228 = lean_box(0); } if (lean_is_scalar(x_228)) { @@ -24779,110 +24649,45 @@ return x_229; } } } -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_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: +else { -size_t x_6; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1___redArg(x_1, x_2, x_6, x_7, x_5); -lean_dec_ref(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_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: -{ -size_t x_7; size_t x_8; lean_object* x_9; -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___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0_spec__1(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec_ref(x_3); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___redArg(x_1, x_2, x_3); -lean_dec_ref(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Meta_Grind_collectMapVars___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(x_1, x_2, x_3, x_4); -lean_dec_ref(x_2); -return x_5; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__3___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; -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___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__3(x_4, x_5, x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_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) { -_start: -{ -uint8_t x_9; size_t x_10; size_t x_11; lean_object* x_12; -x_9 = lean_unbox(x_4); -x_10 = lean_unbox_usize(x_6); +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +lean_dec(x_170); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); lean_dec(x_6); -x_11 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_12 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__4(x_1, x_2, x_3, x_9, x_5, x_10, x_11, x_8); -lean_dec_ref(x_5); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__5___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__5(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__6___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; lean_object* x_7; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3_spec__6(x_1, x_5, x_6, x_4); +lean_dec(x_5); lean_dec_ref(x_1); -return x_7; +x_230 = lean_ctor_get(x_171, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_171, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_232 = x_171; +} else { + lean_dec_ref(x_171); + x_232 = lean_box(0); +} +if (lean_is_scalar(x_232)) { + x_233 = lean_alloc_ctor(1, 2, 0); +} else { + x_233 = x_232; +} +lean_ctor_set(x_233, 0, x_230); +lean_ctor_set(x_233, 1, x_231); +return x_233; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3___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_6; -x_6 = l_Lean_Meta_Grind_mkLetOfMap___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__3(x_1, x_2, x_3, x_4, x_5); -lean_dec_ref(x_2); -return x_6; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8___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___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { size_t x_6; size_t x_7; lean_object* x_8; @@ -24890,7 +24695,7 @@ x_6 = lean_unbox_usize(x_3); lean_dec(x_3); x_7 = lean_unbox_usize(x_4); lean_dec(x_4); -x_8 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__8(x_1, x_2, x_6, x_7, x_5); +x_8 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext_spec__0(x_1, x_2, x_6, x_7, x_5); return x_8; } } @@ -27473,7 +27278,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_15, 3); lean_inc_ref(x_20); lean_dec_ref(x_15); -x_21 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__4; +x_21 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2; x_22 = lean_box(0); lean_inc(x_19); x_23 = lean_alloc_ctor(1, 2, 0); @@ -27482,8 +27287,8 @@ lean_ctor_set(x_23, 1, x_22); x_24 = l_Lean_mkConst(x_21, x_23); lean_inc_ref(x_18); x_25 = l_Lean_mkAppB(x_24, x_18, x_20); -x_26 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6; -x_27 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8; +x_26 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__4; +x_27 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6; lean_inc(x_4); x_28 = l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___at___Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat_spec__2_spec__2_spec__2_spec__2_spec__2(x_18, x_19, x_26, x_27, x_25, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); if (lean_obj_tag(x_28) == 0) @@ -27658,7 +27463,7 @@ lean_inc_ref(x_22); lean_dec_ref(x_16); x_23 = lean_nat_abs(x_1); x_24 = l_Lean_mkRawNatLit(x_23); -x_25 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__2; +x_25 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1; x_26 = lean_box(0); x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_21); @@ -27668,10 +27473,10 @@ x_28 = l_Lean_mkConst(x_25, x_27); lean_inc_ref(x_24); lean_inc_ref(x_20); x_29 = l_Lean_mkApp3(x_28, x_20, x_22, x_24); -x_30 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; +x_30 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3; x_31 = l_Lean_mkConst(x_30, x_27); x_32 = l_Lean_mkApp3(x_31, x_20, x_24, x_29); -x_33 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_33 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_34 = lean_int_dec_lt(x_1, x_33); if (x_34 == 0) { @@ -27741,7 +27546,7 @@ lean_inc_ref(x_46); lean_dec_ref(x_16); x_47 = lean_nat_abs(x_1); x_48 = l_Lean_mkRawNatLit(x_47); -x_49 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__2; +x_49 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1; x_50 = lean_box(0); x_51 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_51, 0, x_45); @@ -27751,10 +27556,10 @@ x_52 = l_Lean_mkConst(x_49, x_51); lean_inc_ref(x_48); lean_inc_ref(x_44); x_53 = l_Lean_mkApp3(x_52, x_44, x_46, x_48); -x_54 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; +x_54 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3; x_55 = l_Lean_mkConst(x_54, x_51); x_56 = l_Lean_mkApp3(x_55, x_44, x_48, x_53); -x_57 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_57 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_58 = lean_int_dec_lt(x_1, x_57); if (x_58 == 0) { @@ -29086,7 +28891,7 @@ lean_object* x_15; lean_object* x_16; uint8_t x_17; x_15 = lean_ctor_get(x_1, 0); lean_inc(x_15); lean_dec_ref(x_1); -x_16 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_16 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_17 = lean_int_dec_eq(x_15, x_16); if (x_17 == 0) { @@ -29468,7 +29273,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec_ref(x_15); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_18 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; lean_inc(x_12); lean_inc_ref(x_11); lean_inc(x_10); @@ -29560,8 +29365,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_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__2; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -29581,8 +29386,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__4; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -29602,8 +29407,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_setUnsat___lam__0___closed__6; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__0; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -29916,7 +29721,7 @@ lean_inc(x_109); x_110 = lean_ctor_get(x_108, 1); lean_inc(x_110); lean_dec_ref(x_108); -x_111 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5; +x_111 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4; x_112 = lean_int_dec_le(x_111, x_103); if (x_112 == 0) { @@ -30695,9 +30500,9 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Grind_Arith_CommRing_DiseqCnstr_setUnsat___lam__0___closed__0; x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__6; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -31672,21 +31477,20 @@ return x_1; static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_setSemiringDiseqUnsat___closed__1() { _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; +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_Grind_Arith_CommRing_setSemiringDiseqUnsat___closed__0; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__6; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__2; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; -x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); -return x_6; +x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setSemiringDiseqUnsat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_15 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_5, x_6, x_7, 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; lean_object* x_17; lean_object* x_18; @@ -31712,30 +31516,33 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec_ref(x_18); -x_21 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +x_21 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, 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; lean_object* x_29; size_t x_30; size_t x_31; lean_object* x_32; lean_object* x_33; +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; size_t x_31; size_t x_32; lean_object* x_33; lean_object* x_34; 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_ctor_get(x_22, 13); -lean_inc_ref(x_24); +x_23 = lean_ctor_get(x_22, 0); +lean_inc_ref(x_23); lean_dec(x_22); -x_25 = l_Lean_instInhabitedExpr; -x_26 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec_ref(x_21); +x_25 = lean_ctor_get(x_23, 9); +lean_inc_ref(x_25); +lean_dec_ref(x_23); +x_26 = l_Lean_instInhabitedExpr; +x_27 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; lean_inc_ref(x_3); -x_27 = l_Lean_Grind_Ring_OfSemiring_Expr_collectVars(x_3, x_26); +x_28 = l_Lean_Grind_CommRing_Expr_collectVars(x_3, x_27); lean_inc_ref(x_4); -x_28 = l_Lean_Grind_Ring_OfSemiring_Expr_collectVars(x_4, x_27); -x_29 = l_Lean_Meta_Grind_FoundVars_toArray(x_28); -lean_dec_ref(x_28); -x_30 = lean_array_size(x_29); -x_31 = 0; -lean_inc_ref(x_29); -x_32 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__24(x_24, x_25, x_30, x_31, x_29); +x_29 = l_Lean_Grind_CommRing_Expr_collectVars(x_4, x_28); +x_30 = l_Lean_Meta_Grind_FoundVars_toArray(x_29); +lean_dec_ref(x_29); +x_31 = lean_array_size(x_30); +x_32 = 0; +lean_inc_ref(x_30); +x_33 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__24(x_25, x_26, x_31, x_32, x_30); lean_inc(x_13); lean_inc_ref(x_12); lean_inc(x_11); @@ -31744,50 +31551,53 @@ lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); lean_inc(x_6); -x_33 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27(x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -if (lean_obj_tag(x_33) == 0) +x_34 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_24); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 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; -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_ctor_get(x_16, 2); -lean_inc_ref(x_36); -x_37 = lean_ctor_get(x_16, 3); +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; +x_35 = lean_ctor_get(x_16, 0); +lean_inc_ref(x_35); +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_34, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_16, 5); +lean_dec_ref(x_34); +x_38 = lean_ctor_get(x_16, 2); lean_inc_ref(x_38); lean_dec(x_16); -x_39 = l_Lean_Meta_Grind_mkVarRename(x_29); -lean_dec_ref(x_29); -x_40 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_3, x_39); -x_41 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_4, x_39); -lean_dec_ref(x_39); -x_42 = l_Lean_Meta_Grind_Arith_CommRing_setSemiringDiseqUnsat___closed__1; -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_37); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_mkConst(x_42, x_44); -x_46 = l_Lean_mkApp3(x_45, x_36, x_38, x_34); -x_47 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_40); -x_48 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_41); -x_49 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__5; -x_50 = l_Lean_mkApp3(x_46, x_47, x_48, x_49); -x_51 = l_Lean_Expr_app___override(x_19, x_50); -x_52 = l_Lean_Meta_Grind_closeGoal(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_35); +x_39 = lean_ctor_get(x_35, 1); +lean_inc_ref(x_39); +x_40 = lean_ctor_get(x_35, 2); +lean_inc(x_40); +lean_dec_ref(x_35); +x_41 = l_Lean_Meta_Grind_mkVarRename(x_30); +lean_dec_ref(x_30); +x_42 = l_Lean_Grind_CommRing_Expr_renameVars(x_3, x_41); +x_43 = l_Lean_Grind_CommRing_Expr_renameVars(x_4, x_41); +lean_dec_ref(x_41); +x_44 = l_Lean_Meta_Grind_Arith_CommRing_setSemiringDiseqUnsat___closed__1; +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_40); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_mkConst(x_44, x_46); +x_48 = l_Lean_mkApp3(x_47, x_39, x_38, x_36); +x_49 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr(x_42); +x_50 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr(x_43); +x_51 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__5; +x_52 = l_Lean_mkApp3(x_48, x_49, x_50, x_51); +x_53 = l_Lean_Expr_app___override(x_19, x_52); +x_54 = l_Lean_Meta_Grind_closeGoal(x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_37); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); lean_dec(x_6); -return x_52; +return x_54; } else { -uint8_t x_53; -lean_dec_ref(x_29); +uint8_t x_55; +lean_dec_ref(x_30); lean_dec(x_19); lean_dec(x_16); lean_dec(x_13); @@ -31800,29 +31610,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec_ref(x_4); lean_dec_ref(x_3); -x_53 = !lean_is_exclusive(x_33); -if (x_53 == 0) +x_55 = !lean_is_exclusive(x_34); +if (x_55 == 0) { -return x_33; +return x_34; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_33, 0); -x_55 = lean_ctor_get(x_33, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_33); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_34, 0); +x_57 = lean_ctor_get(x_34, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_34); +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 { -uint8_t x_57; +uint8_t x_59; lean_dec(x_19); lean_dec(x_16); lean_dec(x_13); @@ -31836,29 +31646,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); -x_57 = !lean_is_exclusive(x_21); -if (x_57 == 0) +x_59 = !lean_is_exclusive(x_21); +if (x_59 == 0) { return x_21; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_21, 0); -x_59 = lean_ctor_get(x_21, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_21, 0); +x_61 = lean_ctor_get(x_21, 1); +lean_inc(x_61); +lean_inc(x_60); lean_dec(x_21); -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; +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } else { -uint8_t x_61; +uint8_t x_63; lean_dec(x_16); lean_dec(x_13); lean_dec_ref(x_12); @@ -31871,29 +31681,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); -x_61 = !lean_is_exclusive(x_18); -if (x_61 == 0) +x_63 = !lean_is_exclusive(x_18); +if (x_63 == 0) { return x_18; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_18, 0); -x_63 = lean_ctor_get(x_18, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_18, 0); +x_65 = lean_ctor_get(x_18, 1); +lean_inc(x_65); +lean_inc(x_64); lean_dec(x_18); -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_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } else { -uint8_t x_65; +uint8_t x_67; lean_dec(x_13); lean_dec_ref(x_12); lean_dec(x_11); @@ -31907,55 +31717,27 @@ lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_65 = !lean_is_exclusive(x_15); -if (x_65 == 0) +x_67 = !lean_is_exclusive(x_15); +if (x_67 == 0) { return x_15; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_15, 0); -x_67 = lean_ctor_get(x_15, 1); -lean_inc(x_67); -lean_inc(x_66); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_15, 0); +x_69 = lean_ctor_get(x_15, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_15); -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_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_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, 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; -x_16 = l_Lean_Name_mkStr2(x_1, x_2); -x_17 = l_Lean_mkConst(x_16, x_3); -x_18 = l_Lean_mkAppB(x_17, x_4, x_5); -lean_inc(x_10); -x_19 = lean_grind_canon(x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_19) == 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_inc(x_21); -lean_dec_ref(x_19); -x_22 = l_Lean_Meta_Grind_shareCommon___redArg(x_20, x_10, x_21); -lean_dec(x_10); -return x_22; -} -else -{ -lean_dec(x_10); -return x_19; -} -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -31964,8 +31746,8 @@ x_14 = lean_box(0); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_1); lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0; -x_17 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__1; +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0; +x_17 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1; lean_inc_ref(x_15); x_18 = l_Lean_mkConst(x_17, x_15); lean_inc_ref(x_2); @@ -31983,8 +31765,8 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec_ref(x_20); -x_23 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2; -x_24 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__3; +x_23 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5; +x_24 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6; lean_inc_ref(x_15); x_25 = l_Lean_mkConst(x_24, x_15); lean_inc_ref(x_2); @@ -31992,7 +31774,7 @@ x_26 = l_Lean_mkAppB(x_25, x_2, x_3); if (lean_obj_tag(x_21) == 0) { lean_object* x_27; -x_27 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +x_27 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); return x_27; } else @@ -32001,7 +31783,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; x_28 = lean_ctor_get(x_21, 0); lean_inc(x_28); lean_dec_ref(x_21); -x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__4; +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7; lean_inc(x_12); lean_inc_ref(x_11); lean_inc(x_10); @@ -32014,7 +31796,7 @@ lean_object* x_31; lean_object* x_32; x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec_ref(x_30); -x_32 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +x_32 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); return x_32; } else @@ -32369,7 +32151,7 @@ x_21 = lean_ctor_get(x_13, 1); lean_inc_ref(x_21); lean_dec(x_13); x_22 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___closed__0; -x_23 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0; +x_23 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0; x_24 = l_Lean_Expr_app___override(x_19, x_23); x_25 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_25, 0, x_24); @@ -32455,8 +32237,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__0; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__17; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -32476,8 +32258,8 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__2; x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__17; x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__0; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -32740,15 +32522,6 @@ return x_81; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_spec__0_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, 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; -x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_spec__0_spec__0___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); -lean_dec(x_6); -return x_16; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at___Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat_spec__0_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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -32758,9 +32531,707 @@ lean_dec(x_4); return x_14; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0; +x_17 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1; +lean_inc_ref(x_15); +x_18 = l_Lean_mkConst(x_17, x_15); +lean_inc_ref(x_2); +x_19 = l_Lean_Expr_app___override(x_18, x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_20 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_19, x_9, x_10, x_11, x_12, x_13); +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; +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 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5; +x_24 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6; +lean_inc_ref(x_15); +x_25 = l_Lean_mkConst(x_24, x_15); +lean_inc_ref(x_2); +x_26 = l_Lean_mkAppB(x_25, x_2, x_3); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_27; +x_27 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +lean_inc(x_28); +lean_dec_ref(x_21); +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_28); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_28, x_26, x_9, x_10, x_11, x_12, x_22); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___lam__0(x_16, x_23, x_15, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_28); +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_2); +x_33 = !lean_is_exclusive(x_30); +if (x_33 == 0) +{ +return x_30; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_30); +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; +} +} +} +} +else +{ +uint8_t x_37; +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +return x_20; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_20, 0); +x_39 = lean_ctor_get(x_20, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_20); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 7); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 7, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 5); +x_12 = lean_ctor_get(x_2, 6); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_10); +lean_ctor_set(x_17, 5, x_11); +lean_ctor_set(x_17, 6, x_12); +lean_ctor_set(x_17, 7, x_16); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_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_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 7); +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; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec_ref(x_11); +x_15 = lean_ctor_get(x_12, 1); +lean_inc_ref(x_15); +x_16 = lean_ctor_get(x_12, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_12, 3); +lean_inc_ref(x_17); +lean_dec(x_12); +lean_inc(x_2); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_spec__0_spec__0(x_16, x_15, x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_18) == 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_inc(x_20); +lean_dec_ref(x_18); +lean_inc(x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_spec__0___lam__0), 2, 1); +lean_closure_set(x_21, 0, x_19); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_21, x_1, x_2, x_20); +lean_dec(x_2); +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; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_19); +return x_22; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_19); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_19); +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) +{ +return x_22; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +else +{ +uint8_t x_31; +lean_inc_ref(x_13); +lean_dec(x_12); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_11); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_11, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_13, 0); +lean_inc(x_33); +lean_dec_ref(x_13); +lean_ctor_set(x_11, 0, x_33); +return x_11; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_11, 1); +lean_inc(x_34); +lean_dec(x_11); +x_35 = lean_ctor_get(x_13, 0); +lean_inc(x_35); +lean_dec_ref(x_13); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +} +else +{ +uint8_t x_37; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_11); +if (x_37 == 0) +{ +return x_11; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_11, 0); +x_39 = lean_ctor_get(x_11, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_11); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +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_unsigned_to_nat(0u); +x_16 = lean_array_get_size(x_1); +x_17 = lean_nat_dec_lt(x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_16); +lean_dec_ref(x_1); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_spec__0(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_18) == 0) +{ +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; +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_ctor_get(x_13, 1); +lean_inc_ref(x_21); +lean_dec(x_13); +x_22 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___closed__0; +x_23 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0; +x_24 = l_Lean_Expr_app___override(x_19, x_23); +x_25 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = l_Lean_RArray_toExpr___redArg(x_21, x_22, x_25, x_7, x_8, x_9, x_10, x_20); +return x_26; +} +else +{ +lean_dec(x_13); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +return x_18; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_27 = lean_ctor_get(x_13, 1); +lean_inc_ref(x_27); +lean_dec(x_13); +x_28 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__0___boxed), 2, 1); +lean_closure_set(x_28, 0, x_1); +x_29 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___closed__0; +x_30 = l_Lean_RArray_ofFn___redArg(x_16, x_28); +lean_dec(x_16); +x_31 = l_Lean_RArray_toExpr___redArg(x_27, x_29, x_30, x_7, x_8, x_9, x_10, x_14); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_32 = !lean_is_exclusive(x_12); +if (x_32 == 0) +{ +return x_12; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_12, 0); +x_34 = lean_ctor_get(x_12, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_12); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("eq_normS_nc", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___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_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__0; +x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_termDeclare_x21_______closed__10; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_5, x_6, x_7, 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; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec_ref(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); +lean_inc(x_7); +lean_inc(x_6); +x_18 = l_Lean_Meta_Grind_mkDiseqProof(x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); +if (lean_obj_tag(x_18) == 0) +{ +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; size_t x_30; size_t x_31; lean_object* x_32; lean_object* x_33; +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_ctor_get(x_16, 1); +lean_inc_ref(x_21); +x_22 = lean_ctor_get(x_16, 2); +lean_inc(x_22); +x_23 = lean_ctor_get(x_16, 3); +lean_inc_ref(x_23); +x_24 = lean_ctor_get(x_16, 9); +lean_inc_ref(x_24); +lean_dec(x_16); +x_25 = l_Lean_instInhabitedExpr; +x_26 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__4; +lean_inc_ref(x_3); +x_27 = l_Lean_Grind_CommRing_Expr_collectVars(x_3, x_26); +lean_inc_ref(x_4); +x_28 = l_Lean_Grind_CommRing_Expr_collectVars(x_4, x_27); +x_29 = l_Lean_Meta_Grind_FoundVars_toArray(x_28); +lean_dec_ref(x_28); +x_30 = lean_array_size(x_29); +x_31 = 0; +lean_inc_ref(x_29); +x_32 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__24(x_24, x_25, x_30, x_31, x_29); +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); +lean_inc(x_7); +lean_inc(x_6); +x_33 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0(x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 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_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 = l_Lean_Meta_Grind_mkVarRename(x_29); +lean_dec_ref(x_29); +x_37 = l_Lean_Grind_CommRing_Expr_renameVars(x_3, x_36); +x_38 = l_Lean_Grind_CommRing_Expr_renameVars(x_4, x_36); +lean_dec_ref(x_36); +x_39 = l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__1; +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_22); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_mkConst(x_39, x_41); +x_43 = l_Lean_mkApp3(x_42, x_21, x_23, x_34); +x_44 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr(x_37); +x_45 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr(x_38); +x_46 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_toExprProof___closed__5; +x_47 = l_Lean_mkApp3(x_43, x_44, x_45, x_46); +x_48 = l_Lean_Expr_app___override(x_19, x_47); +x_49 = l_Lean_Meta_Grind_closeGoal(x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_35); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_49; +} +else +{ +uint8_t x_50; +lean_dec_ref(x_29); +lean_dec_ref(x_23); +lean_dec(x_22); +lean_dec_ref(x_21); +lean_dec(x_19); +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(x_7); +lean_dec(x_6); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +x_50 = !lean_is_exclusive(x_33); +if (x_50 == 0) +{ +return x_33; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_33, 0); +x_52 = lean_ctor_get(x_33, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_33); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_16); +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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +x_54 = !lean_is_exclusive(x_18); +if (x_54 == 0) +{ +return x_18; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_18, 0); +x_56 = lean_ctor_get(x_18, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_18); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_58 = !lean_is_exclusive(x_15); +if (x_58 == 0) +{ +return x_15; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_15, 0); +x_60 = lean_ctor_get(x_15, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_15); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at___Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat_spec__0_spec__0_spec__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); +lean_dec(x_4); +return x_14; +} +} lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommSemiringM(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Ring_CommSemiringAdapter(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Data_RArray(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Diseq(uint8_t builtin, lean_object*); @@ -32785,6 +33256,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommSemiringM(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Init_Grind_Ring_CommSemiringAdapter(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -32817,8 +33291,26 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__1___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__1___closed__0(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___redArg___lam__1___closed__0); -l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__2); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__5); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__6); +l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0_spec__0___closed__7); +l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0_spec__0___closed__0); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toSContextExpr_spec__0___closed__0); l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_getMultiplier___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_getMultiplier___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_getMultiplier___closed__0); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_throwNoNatZeroDivisors___redArg___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_throwNoNatZeroDivisors___redArg___closed__0(); @@ -32843,10 +33335,6 @@ l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_ lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__5); l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__6); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__7); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0_spec__0___closed__8); l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__0); l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__1(); @@ -32857,8 +33345,6 @@ l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denot lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__3); l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__4); -l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__0___closed__5); l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__0); l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm___at___Lean_Grind_CommRing_Poly_denoteExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_getPolyConst_spec__0_spec__4_spec__4___closed__1(); @@ -33481,16 +33967,6 @@ l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__9); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__10(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkImpEqExprProof___closed__10); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25_spec__25_spec__25___closed__4); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___closed__0(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_toContextExpr___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext_spec__25___closed__0); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkContext___closed__0(); @@ -33549,8 +34025,6 @@ l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__1); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__2); -l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_mkSemiringContext___closed__3); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__0(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__0); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Proof_0__Lean_Meta_Grind_Arith_CommRing_withProofContext___closed__1(); @@ -33607,6 +34081,10 @@ l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__2 = _init_l_ lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__2); l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__3(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setNonCommRingDiseqUnsat___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setNonCommSemiringDiseqUnsat___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Reify.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Reify.c index 2dbf558964..f81599ec95 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Reify.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Reify.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Arith.CommRing.Reify -// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.RingM Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommRingM Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Arith.CommRing.Functions +// Imports: Lean.Meta.Tactic.Grind.Arith.CommRing.RingM Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommRingM Lean.Meta.Tactic.Grind.Arith.CommRing.NonCommSemiringM Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Arith.CommRing.Functions #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,11 +13,15 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__18; +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9_spec__9_spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___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* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17___closed__2; @@ -31,31 +35,41 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__23(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNatValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0___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* l_Lean_Meta_Grind_Arith_CommRing_mkSVar(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_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25_spec__25(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_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__16(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_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__26(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_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_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportAppIssue___redArg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___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_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__19; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, size_t, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__24(lean_object*, lean_object*, lean_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_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5(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_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__17(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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15(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_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__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_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__12(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isAddInst___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18___boxed(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_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_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* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27(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_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_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_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__16_spec__16(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_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reify_x3f___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*); uint8_t l_Lean_Expr_isApp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_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_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_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* l_Lean_Meta_Grind_reportIssue(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_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18_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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,6 +78,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__L LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15(lean_object*, lean_object*, lean_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_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3___redArg___closed__0; @@ -71,19 +86,24 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__L LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__9(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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__13_spec__13___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isIntCastInst___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__16_spec__16___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportAppIssue___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_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_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_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_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_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___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_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(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_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__0; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__6___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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__6___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f(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_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__13___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_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0___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_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,6 +114,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__22_spec__22___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__22_spec__22_spec__22___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_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6_spec__6(lean_object*, lean_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_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__22; @@ -103,10 +124,15 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__21; LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9_spec__9___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget_borrowed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6_spec__6(lean_object*, lean_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_Grind_Arith_CommRing_reifyCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isIntCastInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8(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_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__22(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_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -115,26 +141,31 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_G lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_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* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getConfig___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNegInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isSubInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15___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_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isMulInst___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__12(lean_object*, lean_object*, lean_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_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lean_Level_ofNat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__6_spec__6___lam__0(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__10; +lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNatCastInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_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_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27(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_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_spec__1_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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue(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_instantiateMVarsIfMVarApp___redArg(lean_object*, lean_object*, lean_object*); @@ -145,6 +176,7 @@ lean_object* l_instNatCastInt___lam__0(lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermRingId(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_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__14(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__5___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__6(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_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -154,11 +186,13 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_G static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___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_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportAppIssue(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_Grind_Arith_CommRing_isMulInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_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_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__6_spec__6(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_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27(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_Grind_Arith_CommRing_getMulFn_x27(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_Grind_Arith_CommRing_getMulFn___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getIntValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -171,12 +205,15 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__L LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___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* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommRingId(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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_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_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18_spec__18___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_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6(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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__6(lean_object*, 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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__16; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -184,6 +221,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___L static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25_spec__25___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_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_st_ref_get(lean_object*, lean_object*); @@ -192,6 +230,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25___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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__22_spec__22___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9(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_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__6(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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__16(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_Nat_cast___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__30(lean_object*); @@ -208,16 +247,21 @@ extern lean_object* l_Lean_Meta_Grind_Arith_CommRing_ringExt; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15(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_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; lean_object* l_Lean_PersistentArray_push___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__13(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNegInst___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___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*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ncreify_x3f___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_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__7; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_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*); @@ -225,21 +269,24 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at____ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9(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_getNatValue_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17___closed__4; static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_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_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9_spec__9___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(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_Grind_Arith_CommRing_getAddFn___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_internalize___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_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_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* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__3; LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1_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_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_spec__1_spec__1_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__22_spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); @@ -248,6 +295,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____pri LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18_spec__18___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__10_spec__10_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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19___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_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___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_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__1_spec__1_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -258,9 +306,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_M LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__12(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__5(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9(lean_object*, lean_object*, lean_object*, lean_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_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__15(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__5(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_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0___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_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__8_spec__8(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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__6; @@ -268,6 +318,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___L lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isAddInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_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_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17___lam__0(lean_object*, lean_object*); @@ -277,10 +328,16 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__0; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1(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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__12; lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8_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* l_Lean_PersistentHashMap_mkCollisionNode___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9(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_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__2; lean_object* l_Lean_Meta_Grind_Arith_CommRing_NonCommRingM_getRing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -288,6 +345,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__13_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__11(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f(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_Grind_Arith_CommRing_getNatCastFn___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportAppIssue___redArg___closed__0; @@ -295,37 +353,54 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_G lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__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* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__8(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_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__10_spec__10___lam__0(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__25___boxed(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_Grind_Arith_CommRing_mkSVarCore___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25_spec__25___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_object* l_Lean_Meta_Grind_alreadyInternalized___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__5___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNatCastInst___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___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_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_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*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25_spec__25___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___redArg___closed__1; +lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__1(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_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Nat_mkType; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_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*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6(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_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5___lam__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_isNegInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__22_spec__22_spec__22(lean_object*, lean_object*, lean_object*, lean_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_Grind_Arith_CommRing_sreify_x3f___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_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6_spec__6___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_Lean_Meta_Grind_Arith_CommRing_isSubInst___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8(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_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9___closed__0; +lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(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_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27(lean_object*, 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 size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0___redArg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18(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_getCollisionNodeSize___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27(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_Grind_Arith_CommRing_ncreify_x3f(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*); size_t lean_usize_add(size_t, size_t); @@ -334,6 +409,8 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0___lam__2(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_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25_spec__25___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go(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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___redArg(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_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__18(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18___lam__0(lean_object*, lean_object*); @@ -353,19 +430,22 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___boxed( lean_object* l_Lean_Meta_Grind_SolverExtension_markTerm___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_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17(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_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_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_grind_canon(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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__3; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSubFn___at___Lean_Meta_Grind_Arith_CommRing_isSubInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__17_spec__17(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_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f(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_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_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_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_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_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isPowInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27(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_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); @@ -373,21 +453,29 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isPowInst___redArg(lea static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__9(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_Grind_Arith_CommRing_getIntCastFn___at___Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25_spec__25___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__10_spec__10(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_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__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_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_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_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6_spec__6___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_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__6; uint64_t l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__1; lean_object* l_Lean_Meta_Grind_Arith_CommRing_RingM_getCommRing(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_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_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_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15(lean_object*, lean_object*, lean_object*, lean_object*, 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_Grind_Arith_CommRing_getAddFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_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_object*, lean_object*); lean_object* lean_grind_internalize(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); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__13; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__3(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_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_isIntCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -593,7 +681,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reif _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("comm ring term with unexpected instance", 39, 39); +x_1 = lean_mk_string_unchecked("ring term with unexpected instance", 34, 34); return x_1; } } @@ -20872,7 +20960,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reif _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("comm semiring term with unexpected instance", 43, 43); +x_1 = lean_mk_string_unchecked("semiring term with unexpected instance", 38, 38); return x_1; } } @@ -21003,7 +21091,4687 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__4), 3, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_1); +x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Lean_Expr_appArg_x21(x_13); +x_15 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_14, x_1); +lean_dec_ref(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(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_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +x_16 = lean_apply_1(x_2, x_3); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec_ref(x_3); +x_17 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg(x_4, x_5, x_6, x_7, x_8, x_9, x_2, x_10); +x_18 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_17, x_12); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__7), 3, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_1); +x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__6(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: +{ +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +x_14 = lean_apply_1(x_1, x_2); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec_ref(x_13); +x_16 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__12), 3, 2); +lean_closure_set(x_16, 0, x_15); +lean_closure_set(x_16, 1, x_3); +lean_inc(x_12); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__0___boxed), 13, 12); +lean_closure_set(x_17, 0, x_4); +lean_closure_set(x_17, 1, x_5); +lean_closure_set(x_17, 2, x_2); +lean_closure_set(x_17, 3, x_6); +lean_closure_set(x_17, 4, x_7); +lean_closure_set(x_17, 5, x_8); +lean_closure_set(x_17, 6, x_9); +lean_closure_set(x_17, 7, x_10); +lean_closure_set(x_17, 8, x_1); +lean_closure_set(x_17, 9, x_11); +lean_closure_set(x_17, 10, x_12); +lean_closure_set(x_17, 11, x_16); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg(x_6, x_7, x_8, x_9, x_10); +x_19 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_18, x_17); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = l_Lean_Expr_appArg_x21(x_8); +x_10 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_1); +lean_dec_ref(x_9); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +x_11 = lean_apply_1(x_2, x_3); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec_ref(x_3); +lean_dec(x_2); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_getNatValue_x3f___boxed), 6, 1); +lean_closure_set(x_12, 0, x_4); +x_13 = lean_apply_2(x_5, lean_box(0), x_12); +x_14 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_13, x_7); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___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) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Lean_Expr_cleanupAnnotations(x_13); +x_15 = l_Lean_Expr_isApp(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec_ref(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_16 = lean_apply_1(x_1, x_2); +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +lean_inc_ref(x_14); +x_17 = l_Lean_Expr_appFnCleanup___redArg(x_14); +x_18 = l_Lean_Expr_isApp(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec_ref(x_17); +lean_dec_ref(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_19 = lean_apply_1(x_1, x_2); +return x_19; +} +else +{ +lean_object* x_20; uint8_t x_21; +lean_inc_ref(x_17); +x_20 = l_Lean_Expr_appFnCleanup___redArg(x_17); +x_21 = l_Lean_Expr_isApp(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec_ref(x_20); +lean_dec_ref(x_17); +lean_dec_ref(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_22 = lean_apply_1(x_1, x_2); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_17, 1); +lean_inc_ref(x_23); +lean_dec_ref(x_17); +lean_inc_ref(x_20); +x_24 = l_Lean_Expr_appFnCleanup___redArg(x_20); +x_25 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__2; +x_26 = l_Lean_Expr_isConstOf(x_24, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_12); +x_27 = lean_ctor_get(x_14, 1); +lean_inc_ref(x_27); +lean_dec_ref(x_14); +x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; +x_29 = l_Lean_Expr_isConstOf(x_24, x_28); +if (x_29 == 0) +{ +uint8_t x_30; +lean_dec(x_11); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +lean_dec_ref(x_27); +lean_dec_ref(x_24); +lean_dec_ref(x_23); +lean_dec_ref(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_31 = lean_apply_1(x_1, x_2); +return x_31; +} +else +{ +lean_object* x_32; uint8_t x_33; +x_32 = l_Lean_Expr_appFnCleanup___redArg(x_24); +x_33 = l_Lean_Expr_isApp(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec_ref(x_32); +lean_dec_ref(x_27); +lean_dec_ref(x_23); +lean_dec_ref(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_34 = lean_apply_1(x_1, x_2); +return x_34; +} +else +{ +lean_object* x_35; uint8_t x_36; +x_35 = l_Lean_Expr_appFnCleanup___redArg(x_32); +x_36 = l_Lean_Expr_isApp(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +lean_dec_ref(x_35); +lean_dec_ref(x_27); +lean_dec_ref(x_23); +lean_dec_ref(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_37 = lean_apply_1(x_1, x_2); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_20, 1); +lean_inc_ref(x_38); +lean_dec_ref(x_20); +x_39 = l_Lean_Expr_appFnCleanup___redArg(x_35); +x_40 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +x_41 = l_Lean_Expr_isConstOf(x_39, x_40); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_43; +x_42 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; +x_43 = l_Lean_Expr_isConstOf(x_39, x_42); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; +x_45 = l_Lean_Expr_isConstOf(x_39, x_44); +lean_dec_ref(x_39); +if (x_45 == 0) +{ +lean_object* x_46; +lean_dec_ref(x_38); +lean_dec_ref(x_27); +lean_dec_ref(x_23); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_46 = lean_apply_1(x_1, x_2); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_1); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_47 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__3), 11, 10); +lean_closure_set(x_47, 0, x_3); +lean_closure_set(x_47, 1, x_4); +lean_closure_set(x_47, 2, x_5); +lean_closure_set(x_47, 3, x_6); +lean_closure_set(x_47, 4, x_7); +lean_closure_set(x_47, 5, x_8); +lean_closure_set(x_47, 6, x_1); +lean_closure_set(x_47, 7, x_9); +lean_closure_set(x_47, 8, x_27); +lean_closure_set(x_47, 9, x_10); +lean_inc(x_10); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_48 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__0___boxed), 13, 12); +lean_closure_set(x_48, 0, x_38); +lean_closure_set(x_48, 1, x_9); +lean_closure_set(x_48, 2, x_2); +lean_closure_set(x_48, 3, x_4); +lean_closure_set(x_48, 4, x_5); +lean_closure_set(x_48, 5, x_6); +lean_closure_set(x_48, 6, x_7); +lean_closure_set(x_48, 7, x_8); +lean_closure_set(x_48, 8, x_1); +lean_closure_set(x_48, 9, x_23); +lean_closure_set(x_48, 10, x_10); +lean_closure_set(x_48, 11, x_47); +x_49 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg(x_4, x_5, x_6, x_7, x_8); +x_50 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_49, x_48); +return x_50; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec_ref(x_39); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_1); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_51 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__2), 11, 10); +lean_closure_set(x_51, 0, x_3); +lean_closure_set(x_51, 1, x_4); +lean_closure_set(x_51, 2, x_5); +lean_closure_set(x_51, 3, x_6); +lean_closure_set(x_51, 4, x_7); +lean_closure_set(x_51, 5, x_8); +lean_closure_set(x_51, 6, x_1); +lean_closure_set(x_51, 7, x_9); +lean_closure_set(x_51, 8, x_27); +lean_closure_set(x_51, 9, x_10); +lean_inc(x_10); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_52 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__0___boxed), 13, 12); +lean_closure_set(x_52, 0, x_38); +lean_closure_set(x_52, 1, x_9); +lean_closure_set(x_52, 2, x_2); +lean_closure_set(x_52, 3, x_4); +lean_closure_set(x_52, 4, x_5); +lean_closure_set(x_52, 5, x_6); +lean_closure_set(x_52, 6, x_7); +lean_closure_set(x_52, 7, x_8); +lean_closure_set(x_52, 8, x_1); +lean_closure_set(x_52, 9, x_23); +lean_closure_set(x_52, 10, x_10); +lean_closure_set(x_52, 11, x_51); +x_53 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg(x_4, x_5, x_6, x_7, x_8); +x_54 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_53, x_52); +return x_54; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec_ref(x_39); +lean_inc(x_10); +lean_inc(x_4); +x_55 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__6), 13, 12); +lean_closure_set(x_55, 0, x_1); +lean_closure_set(x_55, 1, x_2); +lean_closure_set(x_55, 2, x_3); +lean_closure_set(x_55, 3, x_38); +lean_closure_set(x_55, 4, x_9); +lean_closure_set(x_55, 5, x_4); +lean_closure_set(x_55, 6, x_5); +lean_closure_set(x_55, 7, x_6); +lean_closure_set(x_55, 8, x_7); +lean_closure_set(x_55, 9, x_8); +lean_closure_set(x_55, 10, x_23); +lean_closure_set(x_55, 11, x_10); +x_56 = lean_alloc_closure((void*)(l_Lean_Meta_getNatValue_x3f___boxed), 6, 1); +lean_closure_set(x_56, 0, x_27); +x_57 = lean_apply_2(x_4, lean_box(0), x_56); +x_58 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_57, x_55); +return x_58; +} +} +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec_ref(x_24); +lean_dec_ref(x_20); +lean_dec_ref(x_5); +lean_dec(x_3); +lean_dec(x_1); +lean_inc(x_10); +lean_inc(x_4); +x_59 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__1___boxed), 8, 7); +lean_closure_set(x_59, 0, x_23); +lean_closure_set(x_59, 1, x_9); +lean_closure_set(x_59, 2, x_2); +lean_closure_set(x_59, 3, x_27); +lean_closure_set(x_59, 4, x_4); +lean_closure_set(x_59, 5, x_10); +lean_closure_set(x_59, 6, x_11); +x_60 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(x_4, x_6, x_7, x_8); +x_61 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_60, x_59); +return x_61; +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec_ref(x_24); +lean_dec_ref(x_20); +lean_dec_ref(x_14); +lean_dec(x_11); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_62 = lean_alloc_closure((void*)(l_Lean_Meta_getNatValue_x3f___boxed), 6, 1); +lean_closure_set(x_62, 0, x_23); +x_63 = lean_apply_2(x_4, lean_box(0), x_62); +x_64 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_63, x_12); +return x_64; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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) { +_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; lean_object* x_15; lean_object* x_16; +x_9 = lean_ctor_get(x_3, 0); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_inc_ref(x_8); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_instantiateMVarsIfMVarApp___boxed), 6, 1); +lean_closure_set(x_12, 0, x_8); +lean_inc(x_1); +x_13 = lean_apply_2(x_1, lean_box(0), x_12); +lean_inc(x_11); +lean_inc_ref(x_8); +lean_inc(x_6); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__3), 4, 3); +lean_closure_set(x_14, 0, x_6); +lean_closure_set(x_14, 1, x_8); +lean_closure_set(x_14, 2, x_11); +lean_inc_ref(x_14); +lean_inc(x_10); +x_15 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__4), 13, 12); +lean_closure_set(x_15, 0, x_6); +lean_closure_set(x_15, 1, x_8); +lean_closure_set(x_15, 2, x_11); +lean_closure_set(x_15, 3, x_1); +lean_closure_set(x_15, 4, x_2); +lean_closure_set(x_15, 5, x_3); +lean_closure_set(x_15, 6, x_4); +lean_closure_set(x_15, 7, x_5); +lean_closure_set(x_15, 8, x_7); +lean_closure_set(x_15, 9, x_10); +lean_closure_set(x_15, 10, x_14); +lean_closure_set(x_15, 11, x_14); +x_16 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_15); +return x_16; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go(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; +x_10 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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); +lean_dec_ref(x_13); +lean_dec_ref(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___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) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg___lam__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec_ref(x_8); +lean_dec_ref(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg(x_1, x_2, x_3, x_4, x_5); +x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_9, x_7); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_inc(x_5); +lean_inc_ref(x_7); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__2), 8, 7); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +lean_closure_set(x_8, 2, x_3); +lean_closure_set(x_8, 3, x_4); +lean_closure_set(x_8, 4, x_7); +lean_closure_set(x_8, 5, x_5); +lean_closure_set(x_8, 6, x_6); +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___boxed), 10, 1); +lean_closure_set(x_9, 0, x_7); +x_10 = lean_apply_2(x_1, lean_box(0), x_9); +x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_10, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg(x_1, x_2, x_3, x_4, x_7); +x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_8, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__1(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; +x_5 = lean_apply_1(x_1, x_4); +x_6 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_apply_1(x_1, x_2); +return x_5; +} +else +{ +uint8_t x_6; +lean_dec_ref(x_2); +lean_dec(x_1); +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_4, 0); +x_8 = l_instNatCastInt___lam__0(x_7); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_4, 0, x_9); +x_10 = lean_apply_2(x_3, lean_box(0), x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = l_instNatCastInt___lam__0(x_11); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = lean_apply_2(x_3, lean_box(0), x_14); +return x_15; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_inc_ref(x_4); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__12), 3, 2); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_4); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___boxed), 10, 1); +lean_closure_set(x_6, 0, x_4); +x_7 = lean_apply_2(x_2, lean_box(0), x_6); +x_8 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_7, x_5); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__8(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; lean_object* x_13; lean_object* x_14; +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__15), 3, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_1); +x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; uint8_t x_16; +x_15 = l_Lean_Expr_appArg_x21(x_14); +x_16 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_15, x_1); +lean_dec_ref(x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +x_17 = lean_apply_1(x_2, x_3); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec_ref(x_3); +lean_dec(x_2); +x_18 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_19 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_18, x_13); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__9(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; lean_object* x_13; lean_object* x_14; +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__18), 3, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_1); +x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_13); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +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_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +x_15 = lean_box(0); +x_16 = lean_apply_2(x_1, lean_box(0), x_15); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_17); +lean_dec_ref(x_14); +x_18 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__23), 3, 2); +lean_closure_set(x_18, 0, x_17); +lean_closure_set(x_18, 1, x_1); +lean_inc(x_13); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +x_19 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__5___boxed), 14, 13); +lean_closure_set(x_19, 0, x_2); +lean_closure_set(x_19, 1, x_3); +lean_closure_set(x_19, 2, x_4); +lean_closure_set(x_19, 3, x_5); +lean_closure_set(x_19, 4, x_6); +lean_closure_set(x_19, 5, x_7); +lean_closure_set(x_19, 6, x_8); +lean_closure_set(x_19, 7, x_9); +lean_closure_set(x_19, 8, x_10); +lean_closure_set(x_19, 9, x_11); +lean_closure_set(x_19, 10, x_12); +lean_closure_set(x_19, 11, x_13); +lean_closure_set(x_19, 12, x_18); +x_20 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg(x_5, x_6, x_7, x_8, x_9); +x_21 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_20, x_19); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__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, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = l_Lean_Expr_appArg_x21(x_8); +x_10 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_1); +lean_dec_ref(x_9); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +x_11 = lean_apply_1(x_2, x_3); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec_ref(x_3); +lean_dec(x_2); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_getNatValue_x3f___boxed), 6, 1); +lean_closure_set(x_12, 0, x_4); +x_13 = lean_apply_2(x_5, lean_box(0), x_12); +x_14 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_13, x_7); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__10(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; uint8_t x_17; +x_16 = l_Lean_Expr_cleanupAnnotations(x_15); +x_17 = l_Lean_Expr_isApp(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec_ref(x_16); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_18 = lean_apply_1(x_1, x_2); +return x_18; +} +else +{ +lean_object* x_19; uint8_t x_20; +lean_inc_ref(x_16); +x_19 = l_Lean_Expr_appFnCleanup___redArg(x_16); +x_20 = l_Lean_Expr_isApp(x_19); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec_ref(x_19); +lean_dec_ref(x_16); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_21 = lean_apply_1(x_1, x_2); +return x_21; +} +else +{ +lean_object* x_22; uint8_t x_23; +lean_inc_ref(x_19); +x_22 = l_Lean_Expr_appFnCleanup___redArg(x_19); +x_23 = l_Lean_Expr_isApp(x_22); +if (x_23 == 0) +{ +lean_object* x_24; +lean_dec_ref(x_22); +lean_dec_ref(x_19); +lean_dec_ref(x_16); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_24 = lean_apply_1(x_1, x_2); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_19, 1); +lean_inc_ref(x_25); +lean_dec_ref(x_19); +lean_inc_ref(x_22); +x_26 = l_Lean_Expr_appFnCleanup___redArg(x_22); +x_27 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__2; +x_28 = l_Lean_Expr_isConstOf(x_26, x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +lean_dec(x_14); +x_29 = lean_ctor_get(x_16, 1); +lean_inc_ref(x_29); +lean_dec_ref(x_16); +x_30 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; +x_31 = l_Lean_Expr_isConstOf(x_26, x_30); +if (x_31 == 0) +{ +uint8_t x_32; +lean_dec(x_13); +x_32 = l_Lean_Expr_isApp(x_26); +if (x_32 == 0) +{ +lean_object* x_33; +lean_dec_ref(x_29); +lean_dec_ref(x_26); +lean_dec_ref(x_25); +lean_dec_ref(x_22); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_33 = lean_apply_1(x_1, x_2); +return x_33; +} +else +{ +lean_object* x_34; uint8_t x_35; +x_34 = l_Lean_Expr_appFnCleanup___redArg(x_26); +x_35 = l_Lean_Expr_isApp(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +lean_dec_ref(x_34); +lean_dec_ref(x_29); +lean_dec_ref(x_25); +lean_dec_ref(x_22); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_36 = lean_apply_1(x_1, x_2); +return x_36; +} +else +{ +lean_object* x_37; uint8_t x_38; +x_37 = l_Lean_Expr_appFnCleanup___redArg(x_34); +x_38 = l_Lean_Expr_isApp(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec_ref(x_37); +lean_dec_ref(x_29); +lean_dec_ref(x_25); +lean_dec_ref(x_22); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_39 = lean_apply_1(x_1, x_2); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_22, 1); +lean_inc_ref(x_40); +lean_dec_ref(x_22); +x_41 = l_Lean_Expr_appFnCleanup___redArg(x_37); +x_42 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +x_43 = l_Lean_Expr_isConstOf(x_41, x_42); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; +x_45 = l_Lean_Expr_isConstOf(x_41, x_44); +if (x_45 == 0) +{ +lean_object* x_46; uint8_t x_47; +x_46 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; +x_47 = l_Lean_Expr_isConstOf(x_41, x_46); +lean_dec_ref(x_41); +if (x_47 == 0) +{ +lean_object* x_48; +lean_dec_ref(x_40); +lean_dec_ref(x_29); +lean_dec_ref(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_48 = lean_apply_1(x_1, x_2); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_1); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_49 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__8), 11, 10); +lean_closure_set(x_49, 0, x_3); +lean_closure_set(x_49, 1, x_4); +lean_closure_set(x_49, 2, x_5); +lean_closure_set(x_49, 3, x_6); +lean_closure_set(x_49, 4, x_7); +lean_closure_set(x_49, 5, x_8); +lean_closure_set(x_49, 6, x_9); +lean_closure_set(x_49, 7, x_10); +lean_closure_set(x_49, 8, x_29); +lean_closure_set(x_49, 9, x_11); +lean_inc(x_11); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_50 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__5___boxed), 14, 13); +lean_closure_set(x_50, 0, x_40); +lean_closure_set(x_50, 1, x_12); +lean_closure_set(x_50, 2, x_2); +lean_closure_set(x_50, 3, x_4); +lean_closure_set(x_50, 4, x_5); +lean_closure_set(x_50, 5, x_6); +lean_closure_set(x_50, 6, x_7); +lean_closure_set(x_50, 7, x_8); +lean_closure_set(x_50, 8, x_9); +lean_closure_set(x_50, 9, x_10); +lean_closure_set(x_50, 10, x_25); +lean_closure_set(x_50, 11, x_11); +lean_closure_set(x_50, 12, x_49); +x_51 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg(x_4, x_5, x_6, x_7, x_8); +x_52 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_51, x_50); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec_ref(x_41); +lean_dec(x_1); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_53 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__9), 11, 10); +lean_closure_set(x_53, 0, x_3); +lean_closure_set(x_53, 1, x_4); +lean_closure_set(x_53, 2, x_5); +lean_closure_set(x_53, 3, x_6); +lean_closure_set(x_53, 4, x_7); +lean_closure_set(x_53, 5, x_8); +lean_closure_set(x_53, 6, x_9); +lean_closure_set(x_53, 7, x_10); +lean_closure_set(x_53, 8, x_29); +lean_closure_set(x_53, 9, x_11); +lean_inc(x_11); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +x_54 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__5___boxed), 14, 13); +lean_closure_set(x_54, 0, x_40); +lean_closure_set(x_54, 1, x_12); +lean_closure_set(x_54, 2, x_2); +lean_closure_set(x_54, 3, x_4); +lean_closure_set(x_54, 4, x_5); +lean_closure_set(x_54, 5, x_6); +lean_closure_set(x_54, 6, x_7); +lean_closure_set(x_54, 7, x_8); +lean_closure_set(x_54, 8, x_9); +lean_closure_set(x_54, 9, x_10); +lean_closure_set(x_54, 10, x_25); +lean_closure_set(x_54, 11, x_11); +lean_closure_set(x_54, 12, x_53); +x_55 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg(x_4, x_5, x_6, x_7, x_8); +x_56 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_55, x_54); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec_ref(x_41); +lean_dec(x_1); +lean_inc(x_11); +lean_inc(x_4); +x_57 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__12), 14, 13); +lean_closure_set(x_57, 0, x_3); +lean_closure_set(x_57, 1, x_40); +lean_closure_set(x_57, 2, x_12); +lean_closure_set(x_57, 3, x_2); +lean_closure_set(x_57, 4, x_4); +lean_closure_set(x_57, 5, x_5); +lean_closure_set(x_57, 6, x_6); +lean_closure_set(x_57, 7, x_7); +lean_closure_set(x_57, 8, x_8); +lean_closure_set(x_57, 9, x_9); +lean_closure_set(x_57, 10, x_10); +lean_closure_set(x_57, 11, x_25); +lean_closure_set(x_57, 12, x_11); +x_58 = lean_alloc_closure((void*)(l_Lean_Meta_getNatValue_x3f___boxed), 6, 1); +lean_closure_set(x_58, 0, x_29); +x_59 = lean_apply_2(x_4, lean_box(0), x_58); +x_60 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_59, x_57); +return x_60; +} +} +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec_ref(x_26); +lean_dec_ref(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_5); +lean_dec(x_3); +lean_dec(x_1); +lean_inc(x_11); +lean_inc(x_4); +x_61 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__7___boxed), 8, 7); +lean_closure_set(x_61, 0, x_25); +lean_closure_set(x_61, 1, x_12); +lean_closure_set(x_61, 2, x_2); +lean_closure_set(x_61, 3, x_29); +lean_closure_set(x_61, 4, x_4); +lean_closure_set(x_61, 5, x_11); +lean_closure_set(x_61, 6, x_13); +x_62 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(x_4, x_6, x_7, x_8); +x_63 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_62, x_61); +return x_63; +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec_ref(x_26); +lean_dec_ref(x_22); +lean_dec_ref(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_64 = lean_alloc_closure((void*)(l_Lean_Meta_getNatValue_x3f___boxed), 6, 1); +lean_closure_set(x_64, 0, x_25); +x_65 = lean_apply_2(x_4, lean_box(0), x_64); +x_66 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_65, x_14); +return x_66; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___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) { +_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; 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; +x_9 = lean_ctor_get(x_4, 0); +x_10 = lean_ctor_get(x_4, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__4), 2, 1); +lean_closure_set(x_12, 0, x_11); +lean_inc(x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__5), 2, 1); +lean_closure_set(x_13, 0, x_11); +lean_inc_ref(x_13); +lean_inc(x_10); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_4); +lean_inc(x_2); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__0), 7, 6); +lean_closure_set(x_14, 0, x_2); +lean_closure_set(x_14, 1, x_4); +lean_closure_set(x_14, 2, x_6); +lean_closure_set(x_14, 3, x_7); +lean_closure_set(x_14, 4, x_10); +lean_closure_set(x_14, 5, x_13); +lean_inc(x_10); +lean_inc_ref(x_6); +lean_inc_ref(x_4); +lean_inc(x_2); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__3), 7, 6); +lean_closure_set(x_15, 0, x_2); +lean_closure_set(x_15, 1, x_4); +lean_closure_set(x_15, 2, x_6); +lean_closure_set(x_15, 3, x_7); +lean_closure_set(x_15, 4, x_10); +lean_closure_set(x_15, 5, x_13); +lean_inc(x_10); +lean_inc_ref(x_15); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__1), 4, 3); +lean_closure_set(x_16, 0, x_15); +lean_closure_set(x_16, 1, x_10); +lean_closure_set(x_16, 2, x_12); +lean_inc(x_11); +lean_inc_ref(x_8); +lean_inc_ref(x_16); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__4), 4, 3); +lean_closure_set(x_17, 0, x_16); +lean_closure_set(x_17, 1, x_8); +lean_closure_set(x_17, 2, x_11); +lean_inc(x_10); +lean_inc_ref(x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__6), 4, 3); +lean_closure_set(x_18, 0, x_16); +lean_closure_set(x_18, 1, x_2); +lean_closure_set(x_18, 2, x_10); +lean_inc(x_11); +lean_inc_ref(x_8); +lean_inc_ref(x_18); +x_19 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___redArg___lam__14), 4, 3); +lean_closure_set(x_19, 0, x_18); +lean_closure_set(x_19, 1, x_8); +lean_closure_set(x_19, 2, x_11); +lean_inc(x_10); +lean_inc(x_1); +lean_inc_ref(x_8); +x_20 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__10), 15, 14); +lean_closure_set(x_20, 0, x_16); +lean_closure_set(x_20, 1, x_8); +lean_closure_set(x_20, 2, x_11); +lean_closure_set(x_20, 3, x_1); +lean_closure_set(x_20, 4, x_3); +lean_closure_set(x_20, 5, x_4); +lean_closure_set(x_20, 6, x_5); +lean_closure_set(x_20, 7, x_6); +lean_closure_set(x_20, 8, x_15); +lean_closure_set(x_20, 9, x_14); +lean_closure_set(x_20, 10, x_10); +lean_closure_set(x_20, 11, x_18); +lean_closure_set(x_20, 12, x_17); +lean_closure_set(x_20, 13, x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_instantiateMVarsIfMVarApp___boxed), 6, 1); +lean_closure_set(x_21, 0, x_8); +x_22 = lean_apply_2(x_1, lean_box(0), x_21); +x_23 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_22, x_20); +return x_23; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_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: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___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_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__5(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_ref(x_14); +lean_dec_ref(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___redArg___lam__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec_ref(x_8); +lean_dec_ref(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; 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; uint8_t x_19; +x_5 = lean_ctor_get(x_4, 0); +x_6 = lean_ctor_get(x_4, 1); +x_7 = lean_ctor_get(x_4, 2); +x_8 = lean_ctor_get(x_4, 3); +x_9 = lean_ctor_get(x_4, 4); +x_10 = lean_ctor_get(x_4, 5); +x_11 = lean_ctor_get(x_4, 6); +x_12 = lean_ctor_get(x_4, 7); +x_13 = lean_ctor_get(x_4, 8); +x_14 = lean_ctor_get(x_4, 9); +x_15 = lean_ctor_get(x_4, 10); +x_16 = lean_ctor_get(x_4, 11); +x_17 = lean_ctor_get(x_4, 12); +x_18 = lean_array_get_size(x_8); +x_19 = lean_nat_dec_lt(x_1, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_dec(x_3); +lean_dec_ref(x_2); +return x_4; +} +else +{ +uint8_t x_20; +lean_inc(x_17); +lean_inc_ref(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +x_20 = !lean_is_exclusive(x_4); +if (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; uint8_t x_35; +x_21 = lean_ctor_get(x_4, 12); +lean_dec(x_21); +x_22 = lean_ctor_get(x_4, 11); +lean_dec(x_22); +x_23 = lean_ctor_get(x_4, 10); +lean_dec(x_23); +x_24 = lean_ctor_get(x_4, 9); +lean_dec(x_24); +x_25 = lean_ctor_get(x_4, 8); +lean_dec(x_25); +x_26 = lean_ctor_get(x_4, 7); +lean_dec(x_26); +x_27 = lean_ctor_get(x_4, 6); +lean_dec(x_27); +x_28 = lean_ctor_get(x_4, 5); +lean_dec(x_28); +x_29 = lean_ctor_get(x_4, 4); +lean_dec(x_29); +x_30 = lean_ctor_get(x_4, 3); +lean_dec(x_30); +x_31 = lean_ctor_get(x_4, 2); +lean_dec(x_31); +x_32 = lean_ctor_get(x_4, 1); +lean_dec(x_32); +x_33 = lean_ctor_get(x_4, 0); +lean_dec(x_33); +x_34 = lean_array_fget(x_8, x_1); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_34, 0); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_38 = lean_ctor_get(x_36, 9); +x_39 = lean_ctor_get(x_36, 10); +x_40 = lean_box(0); +x_41 = lean_array_fset(x_8, x_1, x_40); +lean_inc_ref(x_2); +x_42 = l_Lean_PersistentArray_push___redArg(x_38, x_2); +x_43 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3___redArg(x_39, x_2, x_3); +lean_ctor_set(x_36, 10, x_43); +lean_ctor_set(x_36, 9, x_42); +x_44 = lean_array_fset(x_41, x_1, x_34); +lean_ctor_set(x_4, 3, x_44); +return x_4; +} +else +{ +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; +x_45 = lean_ctor_get(x_36, 0); +x_46 = lean_ctor_get(x_36, 1); +x_47 = lean_ctor_get(x_36, 2); +x_48 = lean_ctor_get(x_36, 3); +x_49 = lean_ctor_get(x_36, 4); +x_50 = lean_ctor_get(x_36, 5); +x_51 = lean_ctor_get(x_36, 6); +x_52 = lean_ctor_get(x_36, 7); +x_53 = lean_ctor_get(x_36, 8); +x_54 = lean_ctor_get(x_36, 9); +x_55 = lean_ctor_get(x_36, 10); +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_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_36); +x_56 = lean_box(0); +x_57 = lean_array_fset(x_8, x_1, x_56); +lean_inc_ref(x_2); +x_58 = l_Lean_PersistentArray_push___redArg(x_54, x_2); +x_59 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3___redArg(x_55, x_2, x_3); +x_60 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_60, 0, x_45); +lean_ctor_set(x_60, 1, x_46); +lean_ctor_set(x_60, 2, x_47); +lean_ctor_set(x_60, 3, x_48); +lean_ctor_set(x_60, 4, x_49); +lean_ctor_set(x_60, 5, x_50); +lean_ctor_set(x_60, 6, x_51); +lean_ctor_set(x_60, 7, x_52); +lean_ctor_set(x_60, 8, x_53); +lean_ctor_set(x_60, 9, x_58); +lean_ctor_set(x_60, 10, x_59); +lean_ctor_set(x_34, 0, x_60); +x_61 = lean_array_fset(x_57, x_1, x_34); +lean_ctor_set(x_4, 3, x_61); +return x_4; +} +} +else +{ +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_62 = lean_ctor_get(x_34, 0); +x_63 = lean_ctor_get(x_34, 1); +x_64 = lean_ctor_get(x_34, 2); +x_65 = lean_ctor_get(x_34, 3); +x_66 = lean_ctor_get(x_34, 4); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_34); +x_67 = lean_ctor_get(x_62, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_62, 1); +lean_inc_ref(x_68); +x_69 = lean_ctor_get(x_62, 2); +lean_inc(x_69); +x_70 = lean_ctor_get(x_62, 3); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_62, 4); +lean_inc(x_71); +x_72 = lean_ctor_get(x_62, 5); +lean_inc(x_72); +x_73 = lean_ctor_get(x_62, 6); +lean_inc(x_73); +x_74 = lean_ctor_get(x_62, 7); +lean_inc(x_74); +x_75 = lean_ctor_get(x_62, 8); +lean_inc_ref(x_75); +x_76 = lean_ctor_get(x_62, 9); +lean_inc_ref(x_76); +x_77 = lean_ctor_get(x_62, 10); +lean_inc_ref(x_77); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + lean_ctor_release(x_62, 2); + lean_ctor_release(x_62, 3); + lean_ctor_release(x_62, 4); + lean_ctor_release(x_62, 5); + lean_ctor_release(x_62, 6); + lean_ctor_release(x_62, 7); + lean_ctor_release(x_62, 8); + lean_ctor_release(x_62, 9); + lean_ctor_release(x_62, 10); + x_78 = x_62; +} else { + lean_dec_ref(x_62); + x_78 = lean_box(0); +} +x_79 = lean_box(0); +x_80 = lean_array_fset(x_8, x_1, x_79); +lean_inc_ref(x_2); +x_81 = l_Lean_PersistentArray_push___redArg(x_76, x_2); +x_82 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3___redArg(x_77, x_2, x_3); +if (lean_is_scalar(x_78)) { + x_83 = lean_alloc_ctor(0, 11, 0); +} else { + x_83 = x_78; +} +lean_ctor_set(x_83, 0, x_67); +lean_ctor_set(x_83, 1, x_68); +lean_ctor_set(x_83, 2, x_69); +lean_ctor_set(x_83, 3, x_70); +lean_ctor_set(x_83, 4, x_71); +lean_ctor_set(x_83, 5, x_72); +lean_ctor_set(x_83, 6, x_73); +lean_ctor_set(x_83, 7, x_74); +lean_ctor_set(x_83, 8, x_75); +lean_ctor_set(x_83, 9, x_81); +lean_ctor_set(x_83, 10, x_82); +x_84 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_63); +lean_ctor_set(x_84, 2, x_64); +lean_ctor_set(x_84, 3, x_65); +lean_ctor_set(x_84, 4, x_66); +x_85 = lean_array_fset(x_80, x_1, x_84); +lean_ctor_set(x_4, 3, x_85); +return x_4; +} +} +else +{ +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_dec(x_4); +x_86 = lean_array_fget(x_8, x_1); +x_87 = lean_ctor_get(x_86, 0); +lean_inc_ref(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_86, 2); +lean_inc_ref(x_89); +x_90 = lean_ctor_get(x_86, 3); +lean_inc(x_90); +x_91 = lean_ctor_get(x_86, 4); +lean_inc(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; +} else { + lean_dec_ref(x_86); + x_92 = lean_box(0); +} +x_93 = lean_ctor_get(x_87, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_87, 1); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_87, 2); +lean_inc(x_95); +x_96 = lean_ctor_get(x_87, 3); +lean_inc_ref(x_96); +x_97 = lean_ctor_get(x_87, 4); +lean_inc(x_97); +x_98 = lean_ctor_get(x_87, 5); +lean_inc(x_98); +x_99 = lean_ctor_get(x_87, 6); +lean_inc(x_99); +x_100 = lean_ctor_get(x_87, 7); +lean_inc(x_100); +x_101 = lean_ctor_get(x_87, 8); +lean_inc_ref(x_101); +x_102 = lean_ctor_get(x_87, 9); +lean_inc_ref(x_102); +x_103 = lean_ctor_get(x_87, 10); +lean_inc_ref(x_103); +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); + lean_ctor_release(x_87, 5); + lean_ctor_release(x_87, 6); + lean_ctor_release(x_87, 7); + lean_ctor_release(x_87, 8); + lean_ctor_release(x_87, 9); + lean_ctor_release(x_87, 10); + x_104 = x_87; +} else { + lean_dec_ref(x_87); + x_104 = lean_box(0); +} +x_105 = lean_box(0); +x_106 = lean_array_fset(x_8, x_1, x_105); +lean_inc_ref(x_2); +x_107 = l_Lean_PersistentArray_push___redArg(x_102, x_2); +x_108 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3___redArg(x_103, x_2, x_3); +if (lean_is_scalar(x_104)) { + x_109 = lean_alloc_ctor(0, 11, 0); +} else { + x_109 = x_104; +} +lean_ctor_set(x_109, 0, x_93); +lean_ctor_set(x_109, 1, x_94); +lean_ctor_set(x_109, 2, x_95); +lean_ctor_set(x_109, 3, x_96); +lean_ctor_set(x_109, 4, x_97); +lean_ctor_set(x_109, 5, x_98); +lean_ctor_set(x_109, 6, x_99); +lean_ctor_set(x_109, 7, x_100); +lean_ctor_set(x_109, 8, x_101); +lean_ctor_set(x_109, 9, x_107); +lean_ctor_set(x_109, 10, x_108); +if (lean_is_scalar(x_92)) { + x_110 = lean_alloc_ctor(0, 5, 0); +} else { + x_110 = x_92; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_88); +lean_ctor_set(x_110, 2, x_89); +lean_ctor_set(x_110, 3, x_90); +lean_ctor_set(x_110, 4, x_91); +x_111 = lean_array_fset(x_106, x_1, x_110); +x_112 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_112, 0, x_5); +lean_ctor_set(x_112, 1, x_6); +lean_ctor_set(x_112, 2, x_7); +lean_ctor_set(x_112, 3, x_111); +lean_ctor_set(x_112, 4, x_9); +lean_ctor_set(x_112, 5, x_10); +lean_ctor_set(x_112, 6, x_11); +lean_ctor_set(x_112, 7, x_12); +lean_ctor_set(x_112, 8, x_13); +lean_ctor_set(x_112, 9, x_14); +lean_ctor_set(x_112, 10, x_15); +lean_ctor_set(x_112, 11, x_16); +lean_ctor_set(x_112, 12, x_17); +return x_112; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +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_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_12, 1); +x_17 = lean_ctor_get(x_12, 0); +lean_dec(x_17); +x_18 = lean_ctor_get(x_14, 9); +lean_inc_ref(x_18); +x_19 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_19); +lean_dec_ref(x_14); +x_20 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0___redArg(x_19, x_1); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_free_object(x_12); +x_21 = lean_ctor_get(x_18, 2); +lean_inc(x_21); +lean_dec_ref(x_18); +lean_inc(x_21); +lean_inc_ref(x_1); +lean_inc(x_2); +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0___lam__0___boxed), 4, 3); +lean_closure_set(x_22, 0, x_2); +lean_closure_set(x_22, 1, x_1); +lean_closure_set(x_22, 2, x_21); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_24 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_23, x_22, x_3, x_16); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec_ref(x_24); +lean_inc_ref(x_1); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec_ref(x_26); +x_28 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_23, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +if (lean_obj_tag(x_28) == 0) +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +lean_ctor_set(x_28, 0, x_21); +return x_28; +} +else +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_21); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +else +{ +uint8_t x_33; +lean_dec(x_21); +x_33 = !lean_is_exclusive(x_28); +if (x_33 == 0) +{ +return x_28; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_28, 0); +x_35 = lean_ctor_get(x_28, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_28); +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; +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_21); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_37 = !lean_is_exclusive(x_26); +if (x_37 == 0) +{ +return x_26; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_26, 0); +x_39 = lean_ctor_get(x_26, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_26); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_21); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_41 = !lean_is_exclusive(x_24); +if (x_41 == 0) +{ +return x_24; +} +else +{ +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_dec(x_24); +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 +{ +lean_object* x_45; +lean_dec_ref(x_18); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_45 = lean_ctor_get(x_20, 0); +lean_inc(x_45); +lean_dec_ref(x_20); +lean_ctor_set(x_12, 0, x_45); +return x_12; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_12, 1); +lean_inc(x_46); +lean_dec(x_12); +x_47 = lean_ctor_get(x_14, 9); +lean_inc_ref(x_47); +x_48 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_48); +lean_dec_ref(x_14); +x_49 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0___redArg(x_48, x_1); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_47, 2); +lean_inc(x_50); +lean_dec_ref(x_47); +lean_inc(x_50); +lean_inc_ref(x_1); +lean_inc(x_2); +x_51 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0___lam__0___boxed), 4, 3); +lean_closure_set(x_51, 0, x_2); +lean_closure_set(x_51, 1, x_1); +lean_closure_set(x_51, 2, x_50); +x_52 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_53 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_52, x_51, x_3, x_46); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec_ref(x_53); +lean_inc_ref(x_1); +x_55 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_54); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec_ref(x_55); +x_57 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_52, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_56); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +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_50); +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_dec(x_50); +x_61 = lean_ctor_get(x_57, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_63 = x_57; +} else { + lean_dec_ref(x_57); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_50); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_65 = lean_ctor_get(x_55, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_55, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_67 = x_55; +} else { + lean_dec_ref(x_55); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_50); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_69 = lean_ctor_get(x_53, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_53, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_71 = x_53; +} else { + lean_dec_ref(x_53); + 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_dec_ref(x_47); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_73 = lean_ctor_get(x_49, 0); +lean_inc(x_73); +lean_dec_ref(x_49); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_46); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_75 = !lean_is_exclusive(x_12); +if (x_75 == 0) +{ +return x_12; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_12, 0); +x_77 = lean_ctor_get(x_12, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_12); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_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) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 5); +x_8 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9_spec__9_spec__9(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(x_2, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_1); +x_12 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +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; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec_ref(x_12); +x_15 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9___closed__1; +x_16 = l_Lean_indentExpr(x_1); +x_17 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(x_17, x_7, x_8, x_9, x_10, x_14); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_1); +x_19 = !lean_is_exclusive(x_12); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_12, 0); +lean_dec(x_20); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec_ref(x_13); +lean_ctor_set(x_12, 0, x_21); +return x_12; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_dec(x_12); +x_23 = lean_ctor_get(x_13, 0); +lean_inc(x_23); +lean_dec_ref(x_13); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +return x_24; +} +} +} +else +{ +uint8_t x_25; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_1); +x_25 = !lean_is_exclusive(x_12); +if (x_25 == 0) +{ +return x_12; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_12, 0); +x_27 = lean_ctor_get(x_12, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_12); +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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_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, 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; +x_16 = lean_box(0); +lean_inc(x_2); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_16); +lean_inc(x_2); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_2); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_18); +lean_inc_ref(x_19); +x_20 = l_Lean_mkConst(x_3, x_19); +lean_inc_ref_n(x_1, 3); +x_21 = l_Lean_mkApp3(x_20, x_1, x_1, x_1); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1(x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec_ref(x_22); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_23); +lean_inc(x_4); +x_25 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_4, x_23, x_5, x_11, x_12, x_13, x_14, x_24); +if (lean_obj_tag(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_25, 1); +lean_inc(x_26); +lean_dec_ref(x_25); +x_27 = l_Lean_mkConst(x_4, x_19); +lean_inc_ref_n(x_1, 2); +x_28 = l_Lean_mkApp4(x_27, x_1, x_1, x_1, x_23); +lean_inc(x_10); +x_29 = lean_grind_canon(x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +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_Meta_Grind_shareCommon___redArg(x_30, x_10, x_31); +lean_dec(x_10); +return x_32; +} +else +{ +lean_dec(x_10); +return x_29; +} +} +else +{ +uint8_t x_33; +lean_dec(x_23); +lean_dec_ref(x_19); +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_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec_ref(x_1); +x_33 = !lean_is_exclusive(x_25); +if (x_33 == 0) +{ +return x_25; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_25, 0); +x_35 = lean_ctor_get(x_25, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_25); +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; +} +} +} +else +{ +lean_dec_ref(x_19); +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_8); +lean_dec(x_7); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_1); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_ctor_get(x_3, 2); +x_7 = lean_ctor_get(x_3, 3); +x_8 = lean_ctor_get(x_3, 4); +x_9 = lean_ctor_get(x_3, 5); +x_10 = lean_ctor_get(x_3, 6); +x_11 = lean_ctor_get(x_3, 7); +x_12 = lean_ctor_get(x_3, 8); +x_13 = lean_ctor_get(x_3, 9); +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_dec_ref(x_2); +return x_3; +} +else +{ +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_19 = !lean_is_exclusive(x_3); +if (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; 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_20 = lean_ctor_get(x_3, 12); +lean_dec(x_20); +x_21 = lean_ctor_get(x_3, 11); +lean_dec(x_21); +x_22 = lean_ctor_get(x_3, 10); +lean_dec(x_22); +x_23 = lean_ctor_get(x_3, 9); +lean_dec(x_23); +x_24 = lean_ctor_get(x_3, 8); +lean_dec(x_24); +x_25 = lean_ctor_get(x_3, 7); +lean_dec(x_25); +x_26 = lean_ctor_get(x_3, 6); +lean_dec(x_26); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_33, 0); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_35, 4); +lean_dec(x_37); +x_38 = lean_box(0); +x_39 = lean_array_fset(x_7, x_1, x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_2); +lean_ctor_set(x_35, 4, x_40); +x_41 = lean_array_fset(x_39, x_1, x_33); +lean_ctor_set(x_3, 3, x_41); +return x_3; +} +else +{ +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; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +x_44 = lean_ctor_get(x_35, 2); +x_45 = lean_ctor_get(x_35, 3); +x_46 = lean_ctor_get(x_35, 5); +x_47 = lean_ctor_get(x_35, 6); +x_48 = lean_ctor_get(x_35, 7); +x_49 = lean_ctor_get(x_35, 8); +x_50 = lean_ctor_get(x_35, 9); +x_51 = lean_ctor_get(x_35, 10); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +x_52 = lean_box(0); +x_53 = lean_array_fset(x_7, x_1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_2); +x_55 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_55, 0, x_42); +lean_ctor_set(x_55, 1, x_43); +lean_ctor_set(x_55, 2, x_44); +lean_ctor_set(x_55, 3, x_45); +lean_ctor_set(x_55, 4, x_54); +lean_ctor_set(x_55, 5, x_46); +lean_ctor_set(x_55, 6, x_47); +lean_ctor_set(x_55, 7, x_48); +lean_ctor_set(x_55, 8, x_49); +lean_ctor_set(x_55, 9, x_50); +lean_ctor_set(x_55, 10, x_51); +lean_ctor_set(x_33, 0, x_55); +x_56 = lean_array_fset(x_53, x_1, x_33); +lean_ctor_set(x_3, 3, x_56); +return x_3; +} +} +else +{ +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; +x_57 = lean_ctor_get(x_33, 0); +x_58 = lean_ctor_get(x_33, 1); +x_59 = lean_ctor_get(x_33, 2); +x_60 = lean_ctor_get(x_33, 3); +x_61 = lean_ctor_get(x_33, 4); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_33); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_57, 1); +lean_inc_ref(x_63); +x_64 = lean_ctor_get(x_57, 2); +lean_inc(x_64); +x_65 = lean_ctor_get(x_57, 3); +lean_inc_ref(x_65); +x_66 = lean_ctor_get(x_57, 5); +lean_inc(x_66); +x_67 = lean_ctor_get(x_57, 6); +lean_inc(x_67); +x_68 = lean_ctor_get(x_57, 7); +lean_inc(x_68); +x_69 = lean_ctor_get(x_57, 8); +lean_inc_ref(x_69); +x_70 = lean_ctor_get(x_57, 9); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_57, 10); +lean_inc_ref(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + lean_ctor_release(x_57, 2); + lean_ctor_release(x_57, 3); + lean_ctor_release(x_57, 4); + lean_ctor_release(x_57, 5); + lean_ctor_release(x_57, 6); + lean_ctor_release(x_57, 7); + lean_ctor_release(x_57, 8); + lean_ctor_release(x_57, 9); + lean_ctor_release(x_57, 10); + x_72 = x_57; +} else { + lean_dec_ref(x_57); + x_72 = lean_box(0); +} +x_73 = lean_box(0); +x_74 = lean_array_fset(x_7, x_1, x_73); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_2); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(0, 11, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_62); +lean_ctor_set(x_76, 1, x_63); +lean_ctor_set(x_76, 2, x_64); +lean_ctor_set(x_76, 3, x_65); +lean_ctor_set(x_76, 4, x_75); +lean_ctor_set(x_76, 5, x_66); +lean_ctor_set(x_76, 6, x_67); +lean_ctor_set(x_76, 7, x_68); +lean_ctor_set(x_76, 8, x_69); +lean_ctor_set(x_76, 9, x_70); +lean_ctor_set(x_76, 10, x_71); +x_77 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_58); +lean_ctor_set(x_77, 2, x_59); +lean_ctor_set(x_77, 3, x_60); +lean_ctor_set(x_77, 4, x_61); +x_78 = lean_array_fset(x_74, x_1, x_77); +lean_ctor_set(x_3, 3, x_78); +return x_3; +} +} +else +{ +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_dec(x_3); +x_79 = lean_array_fget(x_7, x_1); +x_80 = lean_ctor_get(x_79, 0); +lean_inc_ref(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 2); +lean_inc_ref(x_82); +x_83 = lean_ctor_get(x_79, 3); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 4); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + lean_ctor_release(x_79, 2); + lean_ctor_release(x_79, 3); + lean_ctor_release(x_79, 4); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_80, 1); +lean_inc_ref(x_87); +x_88 = lean_ctor_get(x_80, 2); +lean_inc(x_88); +x_89 = lean_ctor_get(x_80, 3); +lean_inc_ref(x_89); +x_90 = lean_ctor_get(x_80, 5); +lean_inc(x_90); +x_91 = lean_ctor_get(x_80, 6); +lean_inc(x_91); +x_92 = lean_ctor_get(x_80, 7); +lean_inc(x_92); +x_93 = lean_ctor_get(x_80, 8); +lean_inc_ref(x_93); +x_94 = lean_ctor_get(x_80, 9); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_80, 10); +lean_inc_ref(x_95); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + lean_ctor_release(x_80, 3); + lean_ctor_release(x_80, 4); + lean_ctor_release(x_80, 5); + lean_ctor_release(x_80, 6); + lean_ctor_release(x_80, 7); + lean_ctor_release(x_80, 8); + lean_ctor_release(x_80, 9); + lean_ctor_release(x_80, 10); + x_96 = x_80; +} else { + lean_dec_ref(x_80); + x_96 = lean_box(0); +} +x_97 = lean_box(0); +x_98 = lean_array_fset(x_7, x_1, x_97); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_2); +if (lean_is_scalar(x_96)) { + x_100 = lean_alloc_ctor(0, 11, 0); +} else { + x_100 = x_96; +} +lean_ctor_set(x_100, 0, x_86); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_100, 2, x_88); +lean_ctor_set(x_100, 3, x_89); +lean_ctor_set(x_100, 4, x_99); +lean_ctor_set(x_100, 5, x_90); +lean_ctor_set(x_100, 6, x_91); +lean_ctor_set(x_100, 7, x_92); +lean_ctor_set(x_100, 8, x_93); +lean_ctor_set(x_100, 9, x_94); +lean_ctor_set(x_100, 10, x_95); +if (lean_is_scalar(x_85)) { + x_101 = lean_alloc_ctor(0, 5, 0); +} else { + x_101 = x_85; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_81); +lean_ctor_set(x_101, 2, x_82); +lean_ctor_set(x_101, 3, x_83); +lean_ctor_set(x_101, 4, x_84); +x_102 = lean_array_fset(x_98, x_1, x_101); +x_103 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_103, 0, x_4); +lean_ctor_set(x_103, 1, x_5); +lean_ctor_set(x_103, 2, x_6); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_8); +lean_ctor_set(x_103, 5, x_9); +lean_ctor_set(x_103, 6, x_10); +lean_ctor_set(x_103, 7, x_11); +lean_ctor_set(x_103, 8, x_12); +lean_ctor_set(x_103, 9, x_13); +lean_ctor_set(x_103, 10, x_14); +lean_ctor_set(x_103, 11, x_15); +lean_ctor_set(x_103, 12, x_16); +return x_103; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_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_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 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_12, 0); +lean_inc_ref(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 4); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 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_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec_ref(x_11); +x_16 = lean_ctor_get(x_13, 1); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_13, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_13, 3); +lean_inc_ref(x_18); +lean_dec_ref(x_13); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__1; +x_20 = lean_box(0); +lean_inc(x_17); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_20); +lean_inc_ref(x_21); +x_22 = l_Lean_mkConst(x_19, x_21); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__6; +x_24 = l_Lean_mkConst(x_23, x_21); +lean_inc_ref(x_16); +x_25 = l_Lean_mkAppB(x_24, x_16, x_18); +lean_inc_ref(x_16); +x_26 = l_Lean_mkAppB(x_22, x_16, x_25); +x_27 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__7; +x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; +lean_inc(x_2); +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1(x_16, x_17, x_27, x_28, x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +if (lean_obj_tag(x_29) == 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_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec_ref(x_29); +lean_inc(x_30); +x_32 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1___lam__0___boxed), 3, 2); +lean_closure_set(x_32, 0, x_1); +lean_closure_set(x_32, 1, x_30); +x_33 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_34 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_33, x_32, x_2, x_31); +lean_dec(x_2); +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; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_30); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_30); +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) +{ +return x_34; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_34, 0); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_34); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_29; +} +} +else +{ +uint8_t x_43; +lean_inc_ref(x_14); +lean_dec_ref(x_13); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_11); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_11, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_14, 0); +lean_inc(x_45); +lean_dec_ref(x_14); +lean_ctor_set(x_11, 0, x_45); +return x_11; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_11, 1); +lean_inc(x_46); +lean_dec(x_11); +x_47 = lean_ctor_get(x_14, 0); +lean_inc(x_47); +lean_dec_ref(x_14); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +else +{ +uint8_t x_49; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_49 = !lean_is_exclusive(x_11); +if (x_49 == 0) +{ +return x_11; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_11, 0); +x_51 = lean_ctor_get(x_11, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_11); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_ctor_get(x_3, 2); +x_7 = lean_ctor_get(x_3, 3); +x_8 = lean_ctor_get(x_3, 4); +x_9 = lean_ctor_get(x_3, 5); +x_10 = lean_ctor_get(x_3, 6); +x_11 = lean_ctor_get(x_3, 7); +x_12 = lean_ctor_get(x_3, 8); +x_13 = lean_ctor_get(x_3, 9); +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_dec_ref(x_2); +return x_3; +} +else +{ +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_19 = !lean_is_exclusive(x_3); +if (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; 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_20 = lean_ctor_get(x_3, 12); +lean_dec(x_20); +x_21 = lean_ctor_get(x_3, 11); +lean_dec(x_21); +x_22 = lean_ctor_get(x_3, 10); +lean_dec(x_22); +x_23 = lean_ctor_get(x_3, 9); +lean_dec(x_23); +x_24 = lean_ctor_get(x_3, 8); +lean_dec(x_24); +x_25 = lean_ctor_get(x_3, 7); +lean_dec(x_25); +x_26 = lean_ctor_get(x_3, 6); +lean_dec(x_26); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_33, 0); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_35, 5); +lean_dec(x_37); +x_38 = lean_box(0); +x_39 = lean_array_fset(x_7, x_1, x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_2); +lean_ctor_set(x_35, 5, x_40); +x_41 = lean_array_fset(x_39, x_1, x_33); +lean_ctor_set(x_3, 3, x_41); +return x_3; +} +else +{ +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; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +x_44 = lean_ctor_get(x_35, 2); +x_45 = lean_ctor_get(x_35, 3); +x_46 = lean_ctor_get(x_35, 4); +x_47 = lean_ctor_get(x_35, 6); +x_48 = lean_ctor_get(x_35, 7); +x_49 = lean_ctor_get(x_35, 8); +x_50 = lean_ctor_get(x_35, 9); +x_51 = lean_ctor_get(x_35, 10); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +x_52 = lean_box(0); +x_53 = lean_array_fset(x_7, x_1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_2); +x_55 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_55, 0, x_42); +lean_ctor_set(x_55, 1, x_43); +lean_ctor_set(x_55, 2, x_44); +lean_ctor_set(x_55, 3, x_45); +lean_ctor_set(x_55, 4, x_46); +lean_ctor_set(x_55, 5, x_54); +lean_ctor_set(x_55, 6, x_47); +lean_ctor_set(x_55, 7, x_48); +lean_ctor_set(x_55, 8, x_49); +lean_ctor_set(x_55, 9, x_50); +lean_ctor_set(x_55, 10, x_51); +lean_ctor_set(x_33, 0, x_55); +x_56 = lean_array_fset(x_53, x_1, x_33); +lean_ctor_set(x_3, 3, x_56); +return x_3; +} +} +else +{ +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; +x_57 = lean_ctor_get(x_33, 0); +x_58 = lean_ctor_get(x_33, 1); +x_59 = lean_ctor_get(x_33, 2); +x_60 = lean_ctor_get(x_33, 3); +x_61 = lean_ctor_get(x_33, 4); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_33); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_57, 1); +lean_inc_ref(x_63); +x_64 = lean_ctor_get(x_57, 2); +lean_inc(x_64); +x_65 = lean_ctor_get(x_57, 3); +lean_inc_ref(x_65); +x_66 = lean_ctor_get(x_57, 4); +lean_inc(x_66); +x_67 = lean_ctor_get(x_57, 6); +lean_inc(x_67); +x_68 = lean_ctor_get(x_57, 7); +lean_inc(x_68); +x_69 = lean_ctor_get(x_57, 8); +lean_inc_ref(x_69); +x_70 = lean_ctor_get(x_57, 9); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_57, 10); +lean_inc_ref(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + lean_ctor_release(x_57, 2); + lean_ctor_release(x_57, 3); + lean_ctor_release(x_57, 4); + lean_ctor_release(x_57, 5); + lean_ctor_release(x_57, 6); + lean_ctor_release(x_57, 7); + lean_ctor_release(x_57, 8); + lean_ctor_release(x_57, 9); + lean_ctor_release(x_57, 10); + x_72 = x_57; +} else { + lean_dec_ref(x_57); + x_72 = lean_box(0); +} +x_73 = lean_box(0); +x_74 = lean_array_fset(x_7, x_1, x_73); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_2); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(0, 11, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_62); +lean_ctor_set(x_76, 1, x_63); +lean_ctor_set(x_76, 2, x_64); +lean_ctor_set(x_76, 3, x_65); +lean_ctor_set(x_76, 4, x_66); +lean_ctor_set(x_76, 5, x_75); +lean_ctor_set(x_76, 6, x_67); +lean_ctor_set(x_76, 7, x_68); +lean_ctor_set(x_76, 8, x_69); +lean_ctor_set(x_76, 9, x_70); +lean_ctor_set(x_76, 10, x_71); +x_77 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_58); +lean_ctor_set(x_77, 2, x_59); +lean_ctor_set(x_77, 3, x_60); +lean_ctor_set(x_77, 4, x_61); +x_78 = lean_array_fset(x_74, x_1, x_77); +lean_ctor_set(x_3, 3, x_78); +return x_3; +} +} +else +{ +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_dec(x_3); +x_79 = lean_array_fget(x_7, x_1); +x_80 = lean_ctor_get(x_79, 0); +lean_inc_ref(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 2); +lean_inc_ref(x_82); +x_83 = lean_ctor_get(x_79, 3); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 4); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + lean_ctor_release(x_79, 2); + lean_ctor_release(x_79, 3); + lean_ctor_release(x_79, 4); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_80, 1); +lean_inc_ref(x_87); +x_88 = lean_ctor_get(x_80, 2); +lean_inc(x_88); +x_89 = lean_ctor_get(x_80, 3); +lean_inc_ref(x_89); +x_90 = lean_ctor_get(x_80, 4); +lean_inc(x_90); +x_91 = lean_ctor_get(x_80, 6); +lean_inc(x_91); +x_92 = lean_ctor_get(x_80, 7); +lean_inc(x_92); +x_93 = lean_ctor_get(x_80, 8); +lean_inc_ref(x_93); +x_94 = lean_ctor_get(x_80, 9); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_80, 10); +lean_inc_ref(x_95); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + lean_ctor_release(x_80, 3); + lean_ctor_release(x_80, 4); + lean_ctor_release(x_80, 5); + lean_ctor_release(x_80, 6); + lean_ctor_release(x_80, 7); + lean_ctor_release(x_80, 8); + lean_ctor_release(x_80, 9); + lean_ctor_release(x_80, 10); + x_96 = x_80; +} else { + lean_dec_ref(x_80); + x_96 = lean_box(0); +} +x_97 = lean_box(0); +x_98 = lean_array_fset(x_7, x_1, x_97); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_2); +if (lean_is_scalar(x_96)) { + x_100 = lean_alloc_ctor(0, 11, 0); +} else { + x_100 = x_96; +} +lean_ctor_set(x_100, 0, x_86); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_100, 2, x_88); +lean_ctor_set(x_100, 3, x_89); +lean_ctor_set(x_100, 4, x_90); +lean_ctor_set(x_100, 5, x_99); +lean_ctor_set(x_100, 6, x_91); +lean_ctor_set(x_100, 7, x_92); +lean_ctor_set(x_100, 8, x_93); +lean_ctor_set(x_100, 9, x_94); +lean_ctor_set(x_100, 10, x_95); +if (lean_is_scalar(x_85)) { + x_101 = lean_alloc_ctor(0, 5, 0); +} else { + x_101 = x_85; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_81); +lean_ctor_set(x_101, 2, x_82); +lean_ctor_set(x_101, 3, x_83); +lean_ctor_set(x_101, 4, x_84); +x_102 = lean_array_fset(x_98, x_1, x_101); +x_103 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_103, 0, x_4); +lean_ctor_set(x_103, 1, x_5); +lean_ctor_set(x_103, 2, x_6); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_8); +lean_ctor_set(x_103, 5, x_9); +lean_ctor_set(x_103, 6, x_10); +lean_ctor_set(x_103, 7, x_11); +lean_ctor_set(x_103, 8, x_12); +lean_ctor_set(x_103, 9, x_13); +lean_ctor_set(x_103, 10, x_14); +lean_ctor_set(x_103, 11, x_15); +lean_ctor_set(x_103, 12, x_16); +return x_103; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 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_12, 0); +lean_inc_ref(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 5); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 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_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec_ref(x_11); +x_16 = lean_ctor_get(x_13, 1); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_13, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_13, 3); +lean_inc_ref(x_18); +lean_dec_ref(x_13); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__1; +x_20 = lean_box(0); +lean_inc(x_17); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_20); +lean_inc_ref(x_21); +x_22 = l_Lean_mkConst(x_19, x_21); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__3; +x_24 = l_Lean_mkConst(x_23, x_21); +lean_inc_ref(x_16); +x_25 = l_Lean_mkAppB(x_24, x_16, x_18); +lean_inc_ref(x_16); +x_26 = l_Lean_mkAppB(x_22, x_16, x_25); +x_27 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__4; +x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; +lean_inc(x_2); +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1(x_16, x_17, x_27, x_28, x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +if (lean_obj_tag(x_29) == 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_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec_ref(x_29); +lean_inc(x_30); +x_32 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5___lam__0___boxed), 3, 2); +lean_closure_set(x_32, 0, x_1); +lean_closure_set(x_32, 1, x_30); +x_33 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_34 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_33, x_32, x_2, x_31); +lean_dec(x_2); +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; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_30); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_30); +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) +{ +return x_34; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_34, 0); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_34); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_29; +} +} +else +{ +uint8_t x_43; +lean_inc_ref(x_14); +lean_dec_ref(x_13); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_11); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_11, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_14, 0); +lean_inc(x_45); +lean_dec_ref(x_14); +lean_ctor_set(x_11, 0, x_45); +return x_11; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_11, 1); +lean_inc(x_46); +lean_dec(x_11); +x_47 = lean_ctor_get(x_14, 0); +lean_inc(x_47); +lean_dec_ref(x_14); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +else +{ +uint8_t x_49; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_49 = !lean_is_exclusive(x_11); +if (x_49 == 0) +{ +return x_11; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_11, 0); +x_51 = lean_ctor_get(x_11, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_11); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__0; +x_15 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__1; +x_16 = lean_box(0); +lean_inc(x_1); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +lean_inc_ref(x_17); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_19, 1, x_18); +lean_inc_ref(x_19); +x_20 = l_Lean_mkConst(x_14, x_19); +x_21 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__2; +lean_inc_ref_n(x_2, 2); +x_22 = l_Lean_mkApp3(x_20, x_2, x_21, x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(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; +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 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__4; +x_27 = l_Lean_mkConst(x_26, x_17); +lean_inc_ref(x_2); +x_28 = l_Lean_mkAppB(x_27, x_2, x_3); +x_29 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_24); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_24, x_28, x_9, x_10, x_11, x_12, x_25); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_mkConst(x_29, x_19); +lean_inc_ref(x_2); +x_33 = l_Lean_mkApp4(x_32, x_2, x_21, x_2, x_24); +lean_inc(x_8); +x_34 = lean_grind_canon(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +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 = l_Lean_Meta_Grind_shareCommon___redArg(x_35, x_8, x_36); +lean_dec(x_8); +return x_37; +} +else +{ +lean_dec(x_8); +return x_34; +} +} +else +{ +uint8_t x_38; +lean_dec(x_24); +lean_dec_ref(x_19); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_2); +x_38 = !lean_is_exclusive(x_30); +if (x_38 == 0) +{ +return x_30; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_30, 0); +x_40 = lean_ctor_get(x_30, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_30); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +lean_dec_ref(x_19); +lean_dec_ref(x_17); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_23; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_ctor_get(x_3, 2); +x_7 = lean_ctor_get(x_3, 3); +x_8 = lean_ctor_get(x_3, 4); +x_9 = lean_ctor_get(x_3, 5); +x_10 = lean_ctor_get(x_3, 6); +x_11 = lean_ctor_get(x_3, 7); +x_12 = lean_ctor_get(x_3, 8); +x_13 = lean_ctor_get(x_3, 9); +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_dec_ref(x_2); +return x_3; +} +else +{ +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_19 = !lean_is_exclusive(x_3); +if (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; 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_20 = lean_ctor_get(x_3, 12); +lean_dec(x_20); +x_21 = lean_ctor_get(x_3, 11); +lean_dec(x_21); +x_22 = lean_ctor_get(x_3, 10); +lean_dec(x_22); +x_23 = lean_ctor_get(x_3, 9); +lean_dec(x_23); +x_24 = lean_ctor_get(x_3, 8); +lean_dec(x_24); +x_25 = lean_ctor_get(x_3, 7); +lean_dec(x_25); +x_26 = lean_ctor_get(x_3, 6); +lean_dec(x_26); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_33, 0); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_35, 6); +lean_dec(x_37); +x_38 = lean_box(0); +x_39 = lean_array_fset(x_7, x_1, x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_2); +lean_ctor_set(x_35, 6, x_40); +x_41 = lean_array_fset(x_39, x_1, x_33); +lean_ctor_set(x_3, 3, x_41); +return x_3; +} +else +{ +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; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +x_44 = lean_ctor_get(x_35, 2); +x_45 = lean_ctor_get(x_35, 3); +x_46 = lean_ctor_get(x_35, 4); +x_47 = lean_ctor_get(x_35, 5); +x_48 = lean_ctor_get(x_35, 7); +x_49 = lean_ctor_get(x_35, 8); +x_50 = lean_ctor_get(x_35, 9); +x_51 = lean_ctor_get(x_35, 10); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +x_52 = lean_box(0); +x_53 = lean_array_fset(x_7, x_1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_2); +x_55 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_55, 0, x_42); +lean_ctor_set(x_55, 1, x_43); +lean_ctor_set(x_55, 2, x_44); +lean_ctor_set(x_55, 3, x_45); +lean_ctor_set(x_55, 4, x_46); +lean_ctor_set(x_55, 5, x_47); +lean_ctor_set(x_55, 6, x_54); +lean_ctor_set(x_55, 7, x_48); +lean_ctor_set(x_55, 8, x_49); +lean_ctor_set(x_55, 9, x_50); +lean_ctor_set(x_55, 10, x_51); +lean_ctor_set(x_33, 0, x_55); +x_56 = lean_array_fset(x_53, x_1, x_33); +lean_ctor_set(x_3, 3, x_56); +return x_3; +} +} +else +{ +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; +x_57 = lean_ctor_get(x_33, 0); +x_58 = lean_ctor_get(x_33, 1); +x_59 = lean_ctor_get(x_33, 2); +x_60 = lean_ctor_get(x_33, 3); +x_61 = lean_ctor_get(x_33, 4); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_33); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_57, 1); +lean_inc_ref(x_63); +x_64 = lean_ctor_get(x_57, 2); +lean_inc(x_64); +x_65 = lean_ctor_get(x_57, 3); +lean_inc_ref(x_65); +x_66 = lean_ctor_get(x_57, 4); +lean_inc(x_66); +x_67 = lean_ctor_get(x_57, 5); +lean_inc(x_67); +x_68 = lean_ctor_get(x_57, 7); +lean_inc(x_68); +x_69 = lean_ctor_get(x_57, 8); +lean_inc_ref(x_69); +x_70 = lean_ctor_get(x_57, 9); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_57, 10); +lean_inc_ref(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + lean_ctor_release(x_57, 2); + lean_ctor_release(x_57, 3); + lean_ctor_release(x_57, 4); + lean_ctor_release(x_57, 5); + lean_ctor_release(x_57, 6); + lean_ctor_release(x_57, 7); + lean_ctor_release(x_57, 8); + lean_ctor_release(x_57, 9); + lean_ctor_release(x_57, 10); + x_72 = x_57; +} else { + lean_dec_ref(x_57); + x_72 = lean_box(0); +} +x_73 = lean_box(0); +x_74 = lean_array_fset(x_7, x_1, x_73); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_2); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(0, 11, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_62); +lean_ctor_set(x_76, 1, x_63); +lean_ctor_set(x_76, 2, x_64); +lean_ctor_set(x_76, 3, x_65); +lean_ctor_set(x_76, 4, x_66); +lean_ctor_set(x_76, 5, x_67); +lean_ctor_set(x_76, 6, x_75); +lean_ctor_set(x_76, 7, x_68); +lean_ctor_set(x_76, 8, x_69); +lean_ctor_set(x_76, 9, x_70); +lean_ctor_set(x_76, 10, x_71); +x_77 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_58); +lean_ctor_set(x_77, 2, x_59); +lean_ctor_set(x_77, 3, x_60); +lean_ctor_set(x_77, 4, x_61); +x_78 = lean_array_fset(x_74, x_1, x_77); +lean_ctor_set(x_3, 3, x_78); +return x_3; +} +} +else +{ +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_dec(x_3); +x_79 = lean_array_fget(x_7, x_1); +x_80 = lean_ctor_get(x_79, 0); +lean_inc_ref(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 2); +lean_inc_ref(x_82); +x_83 = lean_ctor_get(x_79, 3); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 4); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + lean_ctor_release(x_79, 2); + lean_ctor_release(x_79, 3); + lean_ctor_release(x_79, 4); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_80, 1); +lean_inc_ref(x_87); +x_88 = lean_ctor_get(x_80, 2); +lean_inc(x_88); +x_89 = lean_ctor_get(x_80, 3); +lean_inc_ref(x_89); +x_90 = lean_ctor_get(x_80, 4); +lean_inc(x_90); +x_91 = lean_ctor_get(x_80, 5); +lean_inc(x_91); +x_92 = lean_ctor_get(x_80, 7); +lean_inc(x_92); +x_93 = lean_ctor_get(x_80, 8); +lean_inc_ref(x_93); +x_94 = lean_ctor_get(x_80, 9); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_80, 10); +lean_inc_ref(x_95); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + lean_ctor_release(x_80, 3); + lean_ctor_release(x_80, 4); + lean_ctor_release(x_80, 5); + lean_ctor_release(x_80, 6); + lean_ctor_release(x_80, 7); + lean_ctor_release(x_80, 8); + lean_ctor_release(x_80, 9); + lean_ctor_release(x_80, 10); + x_96 = x_80; +} else { + lean_dec_ref(x_80); + x_96 = lean_box(0); +} +x_97 = lean_box(0); +x_98 = lean_array_fset(x_7, x_1, x_97); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_2); +if (lean_is_scalar(x_96)) { + x_100 = lean_alloc_ctor(0, 11, 0); +} else { + x_100 = x_96; +} +lean_ctor_set(x_100, 0, x_86); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_100, 2, x_88); +lean_ctor_set(x_100, 3, x_89); +lean_ctor_set(x_100, 4, x_90); +lean_ctor_set(x_100, 5, x_91); +lean_ctor_set(x_100, 6, x_99); +lean_ctor_set(x_100, 7, x_92); +lean_ctor_set(x_100, 8, x_93); +lean_ctor_set(x_100, 9, x_94); +lean_ctor_set(x_100, 10, x_95); +if (lean_is_scalar(x_85)) { + x_101 = lean_alloc_ctor(0, 5, 0); +} else { + x_101 = x_85; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_81); +lean_ctor_set(x_101, 2, x_82); +lean_ctor_set(x_101, 3, x_83); +lean_ctor_set(x_101, 4, x_84); +x_102 = lean_array_fset(x_98, x_1, x_101); +x_103 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_103, 0, x_4); +lean_ctor_set(x_103, 1, x_5); +lean_ctor_set(x_103, 2, x_6); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_8); +lean_ctor_set(x_103, 5, x_9); +lean_ctor_set(x_103, 6, x_10); +lean_ctor_set(x_103, 7, x_11); +lean_ctor_set(x_103, 8, x_12); +lean_ctor_set(x_103, 9, x_13); +lean_ctor_set(x_103, 10, x_14); +lean_ctor_set(x_103, 11, x_15); +lean_ctor_set(x_103, 12, x_16); +return x_103; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 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_12, 0); +lean_inc_ref(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 6); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec_ref(x_11); +x_16 = lean_ctor_get(x_13, 1); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_13, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_13, 3); +lean_inc_ref(x_18); +lean_dec_ref(x_13); +lean_inc(x_2); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6_spec__6(x_17, x_16, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +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; +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); +lean_inc(x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6___lam__0___boxed), 3, 2); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_20); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_24 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_23, x_22, x_2, x_21); +lean_dec(x_2); +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; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_20); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_20); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +return x_24; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_24); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_19; +} +} +else +{ +uint8_t x_33; +lean_inc_ref(x_14); +lean_dec_ref(x_13); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_11); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_11, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_14, 0); +lean_inc(x_35); +lean_dec_ref(x_14); +lean_ctor_set(x_11, 0, x_35); +return x_11; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_11, 1); +lean_inc(x_36); +lean_dec(x_11); +x_37 = lean_ctor_get(x_14, 0); +lean_inc(x_37); +lean_dec_ref(x_14); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +} +else +{ +uint8_t x_39; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_11); +if (x_39 == 0) +{ +return x_11; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_11, 0); +x_41 = lean_ctor_get(x_11, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_11); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8_spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_14); +x_16 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__3; +x_17 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___closed__0; +lean_inc_ref(x_15); +x_18 = l_Lean_mkConst(x_17, x_15); +lean_inc_ref(x_2); +x_19 = l_Lean_Expr_app___override(x_18, x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_20 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_19, x_9, x_10, x_11, x_12, x_13); +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; +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 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__4; +x_24 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___closed__1; +lean_inc_ref(x_15); +x_25 = l_Lean_mkConst(x_24, x_15); +lean_inc_ref(x_2); +x_26 = l_Lean_mkAppB(x_25, x_2, x_3); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_27; +x_27 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18_spec__18___lam__0(x_16, x_23, x_15, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +lean_inc(x_28); +lean_dec_ref(x_21); +x_29 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_28); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_28, x_26, x_9, x_10, x_11, x_12, x_22); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18_spec__18___lam__0(x_16, x_23, x_15, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_28); +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_2); +x_33 = !lean_is_exclusive(x_30); +if (x_33 == 0) +{ +return x_30; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_30); +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; +} +} +} +} +else +{ +uint8_t x_37; +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +return x_20; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_20, 0); +x_39 = lean_ctor_get(x_20, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_20); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_ctor_get(x_3, 2); +x_7 = lean_ctor_get(x_3, 3); +x_8 = lean_ctor_get(x_3, 4); +x_9 = lean_ctor_get(x_3, 5); +x_10 = lean_ctor_get(x_3, 6); +x_11 = lean_ctor_get(x_3, 7); +x_12 = lean_ctor_get(x_3, 8); +x_13 = lean_ctor_get(x_3, 9); +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_dec_ref(x_2); +return x_3; +} +else +{ +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); +lean_inc_ref(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_19 = !lean_is_exclusive(x_3); +if (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; 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_20 = lean_ctor_get(x_3, 12); +lean_dec(x_20); +x_21 = lean_ctor_get(x_3, 11); +lean_dec(x_21); +x_22 = lean_ctor_get(x_3, 10); +lean_dec(x_22); +x_23 = lean_ctor_get(x_3, 9); +lean_dec(x_23); +x_24 = lean_ctor_get(x_3, 8); +lean_dec(x_24); +x_25 = lean_ctor_get(x_3, 7); +lean_dec(x_25); +x_26 = lean_ctor_get(x_3, 6); +lean_dec(x_26); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_33, 0); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_35, 7); +lean_dec(x_37); +x_38 = lean_box(0); +x_39 = lean_array_fset(x_7, x_1, x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_2); +lean_ctor_set(x_35, 7, x_40); +x_41 = lean_array_fset(x_39, x_1, x_33); +lean_ctor_set(x_3, 3, x_41); +return x_3; +} +else +{ +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; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +x_44 = lean_ctor_get(x_35, 2); +x_45 = lean_ctor_get(x_35, 3); +x_46 = lean_ctor_get(x_35, 4); +x_47 = lean_ctor_get(x_35, 5); +x_48 = lean_ctor_get(x_35, 6); +x_49 = lean_ctor_get(x_35, 8); +x_50 = lean_ctor_get(x_35, 9); +x_51 = lean_ctor_get(x_35, 10); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +x_52 = lean_box(0); +x_53 = lean_array_fset(x_7, x_1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_2); +x_55 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_55, 0, x_42); +lean_ctor_set(x_55, 1, x_43); +lean_ctor_set(x_55, 2, x_44); +lean_ctor_set(x_55, 3, x_45); +lean_ctor_set(x_55, 4, x_46); +lean_ctor_set(x_55, 5, x_47); +lean_ctor_set(x_55, 6, x_48); +lean_ctor_set(x_55, 7, x_54); +lean_ctor_set(x_55, 8, x_49); +lean_ctor_set(x_55, 9, x_50); +lean_ctor_set(x_55, 10, x_51); +lean_ctor_set(x_33, 0, x_55); +x_56 = lean_array_fset(x_53, x_1, x_33); +lean_ctor_set(x_3, 3, x_56); +return x_3; +} +} +else +{ +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; +x_57 = lean_ctor_get(x_33, 0); +x_58 = lean_ctor_get(x_33, 1); +x_59 = lean_ctor_get(x_33, 2); +x_60 = lean_ctor_get(x_33, 3); +x_61 = lean_ctor_get(x_33, 4); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_33); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_57, 1); +lean_inc_ref(x_63); +x_64 = lean_ctor_get(x_57, 2); +lean_inc(x_64); +x_65 = lean_ctor_get(x_57, 3); +lean_inc_ref(x_65); +x_66 = lean_ctor_get(x_57, 4); +lean_inc(x_66); +x_67 = lean_ctor_get(x_57, 5); +lean_inc(x_67); +x_68 = lean_ctor_get(x_57, 6); +lean_inc(x_68); +x_69 = lean_ctor_get(x_57, 8); +lean_inc_ref(x_69); +x_70 = lean_ctor_get(x_57, 9); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_57, 10); +lean_inc_ref(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + lean_ctor_release(x_57, 2); + lean_ctor_release(x_57, 3); + lean_ctor_release(x_57, 4); + lean_ctor_release(x_57, 5); + lean_ctor_release(x_57, 6); + lean_ctor_release(x_57, 7); + lean_ctor_release(x_57, 8); + lean_ctor_release(x_57, 9); + lean_ctor_release(x_57, 10); + x_72 = x_57; +} else { + lean_dec_ref(x_57); + x_72 = lean_box(0); +} +x_73 = lean_box(0); +x_74 = lean_array_fset(x_7, x_1, x_73); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_2); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(0, 11, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_62); +lean_ctor_set(x_76, 1, x_63); +lean_ctor_set(x_76, 2, x_64); +lean_ctor_set(x_76, 3, x_65); +lean_ctor_set(x_76, 4, x_66); +lean_ctor_set(x_76, 5, x_67); +lean_ctor_set(x_76, 6, x_68); +lean_ctor_set(x_76, 7, x_75); +lean_ctor_set(x_76, 8, x_69); +lean_ctor_set(x_76, 9, x_70); +lean_ctor_set(x_76, 10, x_71); +x_77 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_58); +lean_ctor_set(x_77, 2, x_59); +lean_ctor_set(x_77, 3, x_60); +lean_ctor_set(x_77, 4, x_61); +x_78 = lean_array_fset(x_74, x_1, x_77); +lean_ctor_set(x_3, 3, x_78); +return x_3; +} +} +else +{ +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_dec(x_3); +x_79 = lean_array_fget(x_7, x_1); +x_80 = lean_ctor_get(x_79, 0); +lean_inc_ref(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 2); +lean_inc_ref(x_82); +x_83 = lean_ctor_get(x_79, 3); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 4); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + lean_ctor_release(x_79, 2); + lean_ctor_release(x_79, 3); + lean_ctor_release(x_79, 4); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_80, 1); +lean_inc_ref(x_87); +x_88 = lean_ctor_get(x_80, 2); +lean_inc(x_88); +x_89 = lean_ctor_get(x_80, 3); +lean_inc_ref(x_89); +x_90 = lean_ctor_get(x_80, 4); +lean_inc(x_90); +x_91 = lean_ctor_get(x_80, 5); +lean_inc(x_91); +x_92 = lean_ctor_get(x_80, 6); +lean_inc(x_92); +x_93 = lean_ctor_get(x_80, 8); +lean_inc_ref(x_93); +x_94 = lean_ctor_get(x_80, 9); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_80, 10); +lean_inc_ref(x_95); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + lean_ctor_release(x_80, 3); + lean_ctor_release(x_80, 4); + lean_ctor_release(x_80, 5); + lean_ctor_release(x_80, 6); + lean_ctor_release(x_80, 7); + lean_ctor_release(x_80, 8); + lean_ctor_release(x_80, 9); + lean_ctor_release(x_80, 10); + x_96 = x_80; +} else { + lean_dec_ref(x_80); + x_96 = lean_box(0); +} +x_97 = lean_box(0); +x_98 = lean_array_fset(x_7, x_1, x_97); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_2); +if (lean_is_scalar(x_96)) { + x_100 = lean_alloc_ctor(0, 11, 0); +} else { + x_100 = x_96; +} +lean_ctor_set(x_100, 0, x_86); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_100, 2, x_88); +lean_ctor_set(x_100, 3, x_89); +lean_ctor_set(x_100, 4, x_90); +lean_ctor_set(x_100, 5, x_91); +lean_ctor_set(x_100, 6, x_92); +lean_ctor_set(x_100, 7, x_99); +lean_ctor_set(x_100, 8, x_93); +lean_ctor_set(x_100, 9, x_94); +lean_ctor_set(x_100, 10, x_95); +if (lean_is_scalar(x_85)) { + x_101 = lean_alloc_ctor(0, 5, 0); +} else { + x_101 = x_85; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_81); +lean_ctor_set(x_101, 2, x_82); +lean_ctor_set(x_101, 3, x_83); +lean_ctor_set(x_101, 4, x_84); +x_102 = lean_array_fset(x_98, x_1, x_101); +x_103 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_103, 0, x_4); +lean_ctor_set(x_103, 1, x_5); +lean_ctor_set(x_103, 2, x_6); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_8); +lean_ctor_set(x_103, 5, x_9); +lean_ctor_set(x_103, 6, x_10); +lean_ctor_set(x_103, 7, x_11); +lean_ctor_set(x_103, 8, x_12); +lean_ctor_set(x_103, 9, x_13); +lean_ctor_set(x_103, 10, x_14); +lean_ctor_set(x_103, 11, x_15); +lean_ctor_set(x_103, 12, x_16); +return x_103; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 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_12, 0); +lean_inc_ref(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 7); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec_ref(x_11); +x_16 = lean_ctor_get(x_13, 1); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_13, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_13, 3); +lean_inc_ref(x_18); +lean_dec_ref(x_13); +lean_inc(x_2); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8_spec__8(x_17, x_16, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +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; +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); +lean_inc(x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8___lam__0___boxed), 3, 2); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_20); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_24 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_23, x_22, x_2, x_21); +lean_dec(x_2); +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; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_20); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_20); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +return x_24; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_24); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_19; +} +} +else +{ +uint8_t x_33; +lean_inc_ref(x_14); +lean_dec_ref(x_13); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_11); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_11, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_14, 0); +lean_inc(x_35); +lean_dec_ref(x_14); +lean_ctor_set(x_11, 0, x_35); +return x_11; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_11, 1); +lean_inc(x_36); +lean_dec(x_11); +x_37 = lean_ctor_get(x_14, 0); +lean_inc(x_37); +lean_dec_ref(x_14); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +} +else +{ +uint8_t x_39; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_11); +if (x_39 == 0) +{ +return x_11; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_11, 0); +x_41 = lean_ctor_get(x_11, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_11); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; @@ -21165,7 +25933,7 @@ lean_inc_ref(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_50 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_50 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; @@ -21203,7 +25971,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc_ref(x_2); lean_inc_ref(x_1); -x_56 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_52); +x_56 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_52); if (lean_obj_tag(x_56) == 0) { uint8_t x_57; @@ -21213,7 +25981,7 @@ if (x_57 == 0) lean_object* x_58; lean_object* x_59; lean_object* x_60; x_58 = lean_ctor_get(x_56, 0); x_59 = lean_ctor_get(x_56, 1); -x_60 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_59); +x_60 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_59); if (lean_obj_tag(x_60) == 0) { uint8_t x_61; @@ -21222,7 +25990,7 @@ if (x_61 == 0) { lean_object* x_62; x_62 = lean_ctor_get(x_60, 0); -lean_ctor_set_tag(x_56, 2); +lean_ctor_set_tag(x_56, 5); lean_ctor_set(x_56, 1, x_62); lean_ctor_set(x_60, 0, x_56); return x_60; @@ -21235,7 +26003,7 @@ x_64 = lean_ctor_get(x_60, 1); lean_inc(x_64); lean_inc(x_63); lean_dec(x_60); -lean_ctor_set_tag(x_56, 2); +lean_ctor_set_tag(x_56, 5); lean_ctor_set(x_56, 1, x_63); x_65 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_65, 0, x_56); @@ -21258,7 +26026,7 @@ x_67 = lean_ctor_get(x_56, 1); lean_inc(x_67); lean_inc(x_66); lean_dec(x_56); -x_68 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_67); +x_68 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_67); if (lean_obj_tag(x_68) == 0) { lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; @@ -21274,7 +26042,7 @@ if (lean_is_exclusive(x_68)) { lean_dec_ref(x_68); x_71 = lean_box(0); } -x_72 = lean_alloc_ctor(2, 2, 0); +x_72 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_72, 0, x_66); lean_ctor_set(x_72, 1, x_69); if (lean_is_scalar(x_71)) { @@ -21363,7 +26131,7 @@ lean_inc_ref(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_78 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_78 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); if (lean_obj_tag(x_78) == 0) { lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; @@ -21401,7 +26169,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc_ref(x_2); lean_inc_ref(x_1); -x_84 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); +x_84 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); if (lean_obj_tag(x_84) == 0) { uint8_t x_85; @@ -21411,7 +26179,7 @@ if (x_85 == 0) lean_object* x_86; lean_object* x_87; lean_object* x_88; x_86 = lean_ctor_get(x_84, 0); x_87 = lean_ctor_get(x_84, 1); -x_88 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_87); +x_88 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_87); if (lean_obj_tag(x_88) == 0) { uint8_t x_89; @@ -21420,7 +26188,7 @@ if (x_89 == 0) { lean_object* x_90; x_90 = lean_ctor_get(x_88, 0); -lean_ctor_set_tag(x_84, 3); +lean_ctor_set_tag(x_84, 7); lean_ctor_set(x_84, 1, x_90); lean_ctor_set(x_88, 0, x_84); return x_88; @@ -21433,7 +26201,7 @@ x_92 = lean_ctor_get(x_88, 1); lean_inc(x_92); lean_inc(x_91); lean_dec(x_88); -lean_ctor_set_tag(x_84, 3); +lean_ctor_set_tag(x_84, 7); lean_ctor_set(x_84, 1, x_91); x_93 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_93, 0, x_84); @@ -21456,7 +26224,7 @@ x_95 = lean_ctor_get(x_84, 1); lean_inc(x_95); lean_inc(x_94); lean_dec(x_84); -x_96 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_95); +x_96 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_95); if (lean_obj_tag(x_96) == 0) { lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; @@ -21472,7 +26240,7 @@ if (lean_is_exclusive(x_96)) { lean_dec_ref(x_96); x_99 = lean_box(0); } -x_100 = lean_alloc_ctor(3, 2, 0); +x_100 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_100, 0, x_94); lean_ctor_set(x_100, 1, x_97); if (lean_is_scalar(x_99)) { @@ -21593,7 +26361,7 @@ lean_inc_ref(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_112 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_110); +x_112 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_110); if (lean_obj_tag(x_112) == 0) { lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; @@ -21620,7 +26388,7 @@ else { lean_object* x_118; lean_dec_ref(x_3); -x_118 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_114); +x_118 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_114); if (lean_obj_tag(x_118) == 0) { uint8_t x_119; @@ -21629,7 +26397,7 @@ if (x_119 == 0) { lean_object* x_120; lean_object* x_121; x_120 = lean_ctor_get(x_118, 0); -x_121 = lean_alloc_ctor(4, 2, 0); +x_121 = lean_alloc_ctor(8, 2, 0); lean_ctor_set(x_121, 0, x_120); lean_ctor_set(x_121, 1, x_111); lean_ctor_set(x_118, 0, x_121); @@ -21643,7 +26411,7 @@ x_123 = lean_ctor_get(x_118, 1); lean_inc(x_123); lean_inc(x_122); lean_dec(x_118); -x_124 = lean_alloc_ctor(4, 2, 0); +x_124 = lean_alloc_ctor(8, 2, 0); lean_ctor_set(x_124, 0, x_122); lean_ctor_set(x_124, 1, x_111); x_125 = lean_alloc_ctor(0, 2, 0); @@ -21753,7 +26521,7 @@ lean_inc_ref(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_134 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_134 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); if (lean_obj_tag(x_134) == 0) { lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; @@ -21822,53 +26590,59 @@ lean_dec(x_145); x_146 = !lean_is_exclusive(x_141); if (x_146 == 0) { -lean_ctor_set_tag(x_141, 0); -return x_140; -} -else -{ lean_object* x_147; lean_object* x_148; x_147 = lean_ctor_get(x_141, 0); -lean_inc(x_147); +x_148 = lean_nat_to_int(x_147); +lean_ctor_set_tag(x_141, 0); +lean_ctor_set(x_141, 0, x_148); +return x_140; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_141, 0); +lean_inc(x_149); lean_dec(x_141); -x_148 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_140, 0, x_148); +x_150 = lean_nat_to_int(x_149); +x_151 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_140, 0, x_151); return x_140; } } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_149 = lean_ctor_get(x_140, 1); -lean_inc(x_149); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_152 = lean_ctor_get(x_140, 1); +lean_inc(x_152); lean_dec(x_140); -x_150 = lean_ctor_get(x_141, 0); -lean_inc(x_150); +x_153 = lean_ctor_get(x_141, 0); +lean_inc(x_153); if (lean_is_exclusive(x_141)) { lean_ctor_release(x_141, 0); - x_151 = x_141; + x_154 = x_141; } else { lean_dec_ref(x_141); - x_151 = lean_box(0); + x_154 = lean_box(0); } -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(0, 1, 0); +x_155 = lean_nat_to_int(x_153); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 1, 0); } else { - x_152 = x_151; - lean_ctor_set_tag(x_152, 0); + x_156 = x_154; + lean_ctor_set_tag(x_156, 0); } -lean_ctor_set(x_152, 0, x_150); -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_149); -return x_153; +lean_ctor_set(x_156, 0, x_155); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_152); +return x_157; } } } else { -uint8_t x_154; +uint8_t x_158; lean_dec(x_12); lean_dec_ref(x_11); lean_dec(x_10); @@ -21880,30 +26654,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_1); -x_154 = !lean_is_exclusive(x_140); -if (x_154 == 0) +x_158 = !lean_is_exclusive(x_140); +if (x_158 == 0) { return x_140; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_155 = lean_ctor_get(x_140, 0); -x_156 = lean_ctor_get(x_140, 1); -lean_inc(x_156); -lean_inc(x_155); +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_140, 0); +x_160 = lean_ctor_get(x_140, 1); +lean_inc(x_160); +lean_inc(x_159); lean_dec(x_140); -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; +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +return x_161; } } } } else { -uint8_t x_158; +uint8_t x_162; lean_dec_ref(x_30); lean_dec_ref(x_26); lean_dec(x_12); @@ -21918,30 +26692,30 @@ lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_158 = !lean_is_exclusive(x_134); -if (x_158 == 0) +x_162 = !lean_is_exclusive(x_134); +if (x_162 == 0) { return x_134; } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_159 = lean_ctor_get(x_134, 0); -x_160 = lean_ctor_get(x_134, 1); -lean_inc(x_160); -lean_inc(x_159); +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_134, 0); +x_164 = lean_ctor_get(x_134, 1); +lean_inc(x_164); +lean_inc(x_163); lean_dec(x_134); -x_161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_161, 0, x_159); -lean_ctor_set(x_161, 1, x_160); -return x_161; +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +return x_165; } } } } else { -lean_object* x_162; +lean_object* x_166; lean_dec_ref(x_27); lean_dec_ref(x_23); lean_dec_ref(x_17); @@ -21950,25 +26724,25 @@ lean_inc(x_12); lean_inc_ref(x_11); lean_inc(x_10); lean_inc_ref(x_9); -x_162 = l_Lean_Meta_getNatValue_x3f(x_26, x_9, x_10, x_11, x_12, x_16); +x_166 = l_Lean_Meta_getNatValue_x3f(x_26, x_9, x_10, x_11, x_12, x_16); lean_dec_ref(x_26); -if (lean_obj_tag(x_162) == 0) +if (lean_obj_tag(x_166) == 0) { -lean_object* x_163; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -if (lean_obj_tag(x_163) == 0) +lean_object* x_167; +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +if (lean_obj_tag(x_167) == 0) { -lean_object* x_164; lean_object* x_165; -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -lean_dec_ref(x_162); -x_165 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_164); -return x_165; +lean_object* x_168; lean_object* x_169; +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec_ref(x_166); +x_169 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_168); +return x_169; } else { -uint8_t x_166; +uint8_t x_170; lean_dec(x_12); lean_dec_ref(x_11); lean_dec(x_10); @@ -21980,62 +26754,68 @@ lean_dec(x_5); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_1); -x_166 = !lean_is_exclusive(x_162); -if (x_166 == 0) +x_170 = !lean_is_exclusive(x_166); +if (x_170 == 0) { -lean_object* x_167; uint8_t x_168; -x_167 = lean_ctor_get(x_162, 0); +lean_object* x_171; uint8_t x_172; +x_171 = lean_ctor_get(x_166, 0); +lean_dec(x_171); +x_172 = !lean_is_exclusive(x_167); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +x_173 = lean_ctor_get(x_167, 0); +x_174 = lean_nat_to_int(x_173); +lean_ctor_set_tag(x_167, 0); +lean_ctor_set(x_167, 0, x_174); +return x_166; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_167, 0); +lean_inc(x_175); lean_dec(x_167); -x_168 = !lean_is_exclusive(x_163); -if (x_168 == 0) -{ -lean_ctor_set_tag(x_163, 0); -return x_162; -} -else -{ -lean_object* x_169; lean_object* x_170; -x_169 = lean_ctor_get(x_163, 0); -lean_inc(x_169); -lean_dec(x_163); -x_170 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_162, 0, x_170); -return x_162; +x_176 = lean_nat_to_int(x_175); +x_177 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_166, 0, x_177); +return x_166; } } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_171 = lean_ctor_get(x_162, 1); -lean_inc(x_171); -lean_dec(x_162); -x_172 = lean_ctor_get(x_163, 0); -lean_inc(x_172); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - x_173 = x_163; +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_178 = lean_ctor_get(x_166, 1); +lean_inc(x_178); +lean_dec(x_166); +x_179 = lean_ctor_get(x_167, 0); +lean_inc(x_179); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + x_180 = x_167; } else { - lean_dec_ref(x_163); - x_173 = lean_box(0); + lean_dec_ref(x_167); + x_180 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(0, 1, 0); +x_181 = lean_nat_to_int(x_179); +if (lean_is_scalar(x_180)) { + x_182 = lean_alloc_ctor(0, 1, 0); } else { - x_174 = x_173; - lean_ctor_set_tag(x_174, 0); + x_182 = x_180; + lean_ctor_set_tag(x_182, 0); } -lean_ctor_set(x_174, 0, x_172); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_171); -return x_175; +lean_ctor_set(x_182, 0, x_181); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_178); +return x_183; } } } else { -uint8_t x_176; +uint8_t x_184; lean_dec(x_12); lean_dec_ref(x_11); lean_dec(x_10); @@ -22047,23 +26827,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_1); -x_176 = !lean_is_exclusive(x_162); -if (x_176 == 0) +x_184 = !lean_is_exclusive(x_166); +if (x_184 == 0) { -return x_162; +return x_166; } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_162, 0); -x_178 = lean_ctor_get(x_162, 1); -lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_162); -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; +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_166, 0); +x_186 = lean_ctor_get(x_166, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_166); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; } } } @@ -22073,7 +26853,7 @@ return x_179; } else { -uint8_t x_180; +uint8_t x_188; lean_dec(x_12); lean_dec_ref(x_11); lean_dec(x_10); @@ -22086,32 +26866,32 @@ lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_180 = !lean_is_exclusive(x_14); -if (x_180 == 0) +x_188 = !lean_is_exclusive(x_14); +if (x_188 == 0) { return x_14; } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_14, 0); -x_182 = lean_ctor_get(x_14, 1); -lean_inc(x_182); -lean_inc(x_181); +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_14, 0); +x_190 = lean_ctor_get(x_14, 1); +lean_inc(x_190); +lean_inc(x_189); lean_dec(x_14); -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; +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; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_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) { _start: { lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_mkSVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -22120,7 +26900,7 @@ if (x_13 == 0) { lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_alloc_ctor(1, 1, 0); +x_15 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_12, 0, x_15); return x_12; @@ -22133,7 +26913,7 @@ x_17 = lean_ctor_get(x_12, 1); lean_inc(x_17); lean_inc(x_16); lean_dec(x_12); -x_18 = lean_alloc_ctor(1, 1, 0); +x_18 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_18, 0, x_16); x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); @@ -22165,7 +26945,7 @@ return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___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) { _start: { lean_object* x_13; @@ -22223,7 +27003,57 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_inc_ref(x_2); +x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___redArg(x_2, x_5, x_6, x_7, 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; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec_ref(x_13); +x_15 = lean_apply_11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +return x_15; +} +else +{ +uint8_t x_16; +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(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___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) { _start: { lean_object* x_12; @@ -22235,7 +27065,7 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec_ref(x_12); -x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkSVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_13); +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; @@ -22244,7 +27074,7 @@ if (x_15 == 0) { lean_object* x_16; lean_object* x_17; x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_alloc_ctor(1, 1, 0); +x_17 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_14, 0, x_17); return x_14; @@ -22257,7 +27087,7 @@ x_19 = lean_ctor_get(x_14, 1); lean_inc(x_19); lean_inc(x_18); lean_dec(x_14); -x_20 = lean_alloc_ctor(1, 1, 0); +x_20 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_20, 0, x_18); x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_20); @@ -22322,7 +27152,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_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, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_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_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -22330,147 +27160,157 @@ lean_inc_ref(x_1); x_12 = l_Lean_Meta_instantiateMVarsIfMVarApp___redArg(x_1, x_8, x_11); if (lean_obj_tag(x_12) == 0) { -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_35; uint8_t x_36; +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_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_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__0), 11, 0); -x_35 = l_Lean_Expr_cleanupAnnotations(x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__0), 11, 0); +lean_inc_ref(x_15); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1), 12, 1); +lean_closure_set(x_16, 0, x_15); +x_17 = l_Lean_Expr_cleanupAnnotations(x_13); +x_18 = l_Lean_Expr_isApp(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec_ref(x_17); +lean_dec_ref(x_16); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_19; +} +else +{ +lean_object* x_20; uint8_t x_21; +lean_inc_ref(x_17); +x_20 = l_Lean_Expr_appFnCleanup___redArg(x_17); +x_21 = l_Lean_Expr_isApp(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec_ref(x_20); +lean_dec_ref(x_17); +lean_dec_ref(x_16); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_22; +} +else +{ +lean_object* x_23; uint8_t x_24; +lean_inc_ref(x_20); +x_23 = l_Lean_Expr_appFnCleanup___redArg(x_20); +x_24 = l_Lean_Expr_isApp(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec_ref(x_23); +lean_dec_ref(x_20); +lean_dec_ref(x_17); +lean_dec_ref(x_16); +x_25 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_20, 1); +lean_inc_ref(x_26); +lean_dec_ref(x_20); +lean_inc_ref(x_23); +x_27 = l_Lean_Expr_appFnCleanup___redArg(x_23); +x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__2; +x_29 = l_Lean_Expr_isConstOf(x_27, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_17, 1); +lean_inc_ref(x_30); +lean_dec_ref(x_17); +x_31 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; +x_32 = l_Lean_Expr_isConstOf(x_27, x_31); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Expr_isApp(x_27); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec_ref(x_30); +lean_dec_ref(x_27); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_16); +x_34 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_34; +} +else +{ +lean_object* x_35; uint8_t x_36; +x_35 = l_Lean_Expr_appFnCleanup___redArg(x_27); x_36 = l_Lean_Expr_isApp(x_35); if (x_36 == 0) { lean_object* x_37; lean_dec_ref(x_35); -x_37 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_16); +x_37 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); return x_37; } else { lean_object* x_38; uint8_t x_39; -lean_inc_ref(x_35); x_38 = l_Lean_Expr_appFnCleanup___redArg(x_35); x_39 = l_Lean_Expr_isApp(x_38); if (x_39 == 0) { lean_object* x_40; lean_dec_ref(x_38); -lean_dec_ref(x_35); -x_40 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_16); +x_40 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); return x_40; } else { -lean_object* x_41; uint8_t x_42; -lean_inc_ref(x_38); -x_41 = l_Lean_Expr_appFnCleanup___redArg(x_38); -x_42 = l_Lean_Expr_isApp(x_41); -if (x_42 == 0) -{ -lean_object* x_43; -lean_dec_ref(x_41); -lean_dec_ref(x_38); -lean_dec_ref(x_35); -x_43 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_44 = lean_ctor_get(x_38, 1); -lean_inc_ref(x_44); -lean_dec_ref(x_38); +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_23, 1); lean_inc_ref(x_41); -x_45 = l_Lean_Expr_appFnCleanup___redArg(x_41); -x_46 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__2; -x_47 = l_Lean_Expr_isConstOf(x_45, x_46); +lean_dec_ref(x_23); +x_42 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__3), 11, 0); +x_43 = l_Lean_Expr_appFnCleanup___redArg(x_38); +x_44 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +x_45 = l_Lean_Expr_isConstOf(x_43, x_44); +if (x_45 == 0) +{ +lean_object* x_46; uint8_t x_47; +x_46 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; +x_47 = l_Lean_Expr_isConstOf(x_43, x_46); if (x_47 == 0) { -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_35, 1); -lean_inc_ref(x_48); -lean_dec_ref(x_35); -x_49 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; -x_50 = l_Lean_Expr_isConstOf(x_45, x_49); -if (x_50 == 0) +lean_object* x_48; uint8_t x_49; +x_48 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; +x_49 = l_Lean_Expr_isConstOf(x_43, x_48); +lean_dec_ref(x_43); +if (x_49 == 0) { -uint8_t x_51; -x_51 = l_Lean_Expr_isApp(x_45); -if (x_51 == 0) -{ -lean_object* x_52; -lean_dec_ref(x_48); -lean_dec_ref(x_45); -lean_dec_ref(x_44); +lean_object* x_50; +lean_dec_ref(x_42); lean_dec_ref(x_41); -x_52 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -return x_52; +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +x_50 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_50; } else { -lean_object* x_53; uint8_t x_54; -x_53 = l_Lean_Expr_appFnCleanup___redArg(x_45); -x_54 = l_Lean_Expr_isApp(x_53); -if (x_54 == 0) -{ -lean_object* x_55; -lean_dec_ref(x_53); -lean_dec_ref(x_48); -lean_dec_ref(x_44); -lean_dec_ref(x_41); -x_55 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -return x_55; -} -else -{ -lean_object* x_56; uint8_t x_57; -x_56 = l_Lean_Expr_appFnCleanup___redArg(x_53); -x_57 = l_Lean_Expr_isApp(x_56); -if (x_57 == 0) -{ -lean_object* x_58; -lean_dec_ref(x_56); -lean_dec_ref(x_48); -lean_dec_ref(x_44); -lean_dec_ref(x_41); -x_58 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -return x_58; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_59 = lean_ctor_get(x_41, 1); -lean_inc_ref(x_59); -lean_dec_ref(x_41); -x_60 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__2), 11, 0); -x_61 = l_Lean_Expr_appFnCleanup___redArg(x_56); -x_62 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; -x_63 = l_Lean_Expr_isConstOf(x_61, x_62); -if (x_63 == 0) -{ -lean_object* x_64; uint8_t x_65; -x_64 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; -x_65 = l_Lean_Expr_isConstOf(x_61, x_64); -if (x_65 == 0) -{ -lean_object* x_66; uint8_t x_67; -x_66 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; -x_67 = l_Lean_Expr_isConstOf(x_61, x_66); -lean_dec_ref(x_61); -if (x_67 == 0) -{ -lean_object* x_68; -lean_dec_ref(x_60); -lean_dec_ref(x_59); -lean_dec_ref(x_48); -lean_dec_ref(x_44); -x_68 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -return x_68; -} -else -{ -lean_object* x_69; +lean_object* x_51; lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -22480,41 +27320,34 @@ lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_69 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_69) == 0) +x_51 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec_ref(x_69); -x_72 = l_Lean_Expr_appArg_x21(x_70); -lean_dec(x_70); -x_73 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_72, x_59); -lean_dec_ref(x_59); -lean_dec_ref(x_72); -if (x_73 == 0) +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec_ref(x_51); +x_54 = l_Lean_Expr_appArg_x21(x_52); +lean_dec(x_52); +x_55 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_54, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_54); +if (x_55 == 0) { -lean_dec_ref(x_60); -lean_dec_ref(x_48); -lean_dec_ref(x_44); -x_16 = x_1; -x_17 = x_2; -x_18 = x_3; -x_19 = x_4; -x_20 = x_5; -x_21 = x_6; -x_22 = x_7; -x_23 = x_8; -x_24 = x_9; -x_25 = x_10; -x_26 = x_71; -goto block_34; +lean_object* x_56; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_15); +x_56 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +return x_56; } else { -lean_object* x_74; +lean_object* x_57; +lean_dec_ref(x_16); lean_dec_ref(x_1); lean_inc(x_10); lean_inc_ref(x_9); @@ -22525,156 +27358,157 @@ lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc_ref(x_60); +lean_inc_ref(x_42); lean_inc_ref(x_15); -x_74 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_15, x_60, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_71); -if (lean_obj_tag(x_74) == 0) +x_57 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -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); -x_77 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_15, x_60, x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_76); -if (lean_obj_tag(x_77) == 0) +lean_object* x_58; lean_object* x_59; lean_object* 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 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_15, x_42, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_59); +if (lean_obj_tag(x_60) == 0) { -uint8_t x_78; -x_78 = !lean_is_exclusive(x_77); -if (x_78 == 0) +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_77, 0); -x_80 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_80, 0, x_75); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_77, 0, x_81); -return x_77; +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_60, 0); +x_63 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_63, 0, x_58); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_60, 0, x_64); +return x_60; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_82 = lean_ctor_get(x_77, 0); -x_83 = lean_ctor_get(x_77, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_77); -x_84 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_84, 0, x_75); -lean_ctor_set(x_84, 1, x_82); -x_85 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_85, 0, x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_83); -return x_86; -} -} -else -{ -uint8_t x_87; -lean_dec(x_75); -x_87 = !lean_is_exclusive(x_77); -if (x_87 == 0) -{ -return x_77; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_77, 0); -x_89 = lean_ctor_get(x_77, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_77); -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; -} -} -} -else -{ -uint8_t x_91; -lean_dec_ref(x_60); -lean_dec_ref(x_48); -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -x_91 = !lean_is_exclusive(x_74); -if (x_91 == 0) -{ -return x_74; -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_74, 0); -x_93 = lean_ctor_get(x_74, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_74); -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; -} -} -} -} -else -{ -uint8_t x_95; -lean_dec_ref(x_60); -lean_dec_ref(x_59); -lean_dec_ref(x_48); -lean_dec_ref(x_44); -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_95 = !lean_is_exclusive(x_69); -if (x_95 == 0) -{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_65 = lean_ctor_get(x_60, 0); +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_60); +x_67 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_67, 0, x_58); +lean_ctor_set(x_67, 1, x_65); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_66); return x_69; } +} else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_69, 0); -x_97 = lean_ctor_get(x_69, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_69); -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; +uint8_t x_70; +lean_dec(x_58); +x_70 = !lean_is_exclusive(x_60); +if (x_70 == 0) +{ +return x_60; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_60, 0); +x_72 = lean_ctor_get(x_60, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_60); +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_74; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +x_74 = !lean_is_exclusive(x_57); +if (x_74 == 0) +{ +return x_57; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_57, 0); +x_76 = lean_ctor_get(x_57, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_57); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } } } else { -lean_object* x_99; -lean_dec_ref(x_61); +uint8_t x_78; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_78 = !lean_is_exclusive(x_51); +if (x_78 == 0) +{ +return x_51; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_51, 0); +x_80 = lean_ctor_get(x_51, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_51); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +} +else +{ +lean_object* x_82; +lean_dec_ref(x_43); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -22684,41 +27518,34 @@ lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_99 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_99) == 0) +x_82 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -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); -x_102 = l_Lean_Expr_appArg_x21(x_100); -lean_dec(x_100); -x_103 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_102, x_59); -lean_dec_ref(x_59); -lean_dec_ref(x_102); -if (x_103 == 0) +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +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 = l_Lean_Expr_appArg_x21(x_83); +lean_dec(x_83); +x_86 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_85, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_85); +if (x_86 == 0) { -lean_dec_ref(x_60); -lean_dec_ref(x_48); -lean_dec_ref(x_44); -x_16 = x_1; -x_17 = x_2; -x_18 = x_3; -x_19 = x_4; -x_20 = x_5; -x_21 = x_6; -x_22 = x_7; -x_23 = x_8; -x_24 = x_9; -x_25 = x_10; -x_26 = x_101; -goto block_34; +lean_object* x_87; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_15); +x_87 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_84); +return x_87; } else { -lean_object* x_104; +lean_object* x_88; +lean_dec_ref(x_16); lean_dec_ref(x_1); lean_inc(x_10); lean_inc_ref(x_9); @@ -22729,218 +27556,365 @@ lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc_ref(x_60); +lean_inc_ref(x_42); lean_inc_ref(x_15); -x_104 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_15, x_60, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_101); -if (lean_obj_tag(x_104) == 0) +x_88 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_84); +if (lean_obj_tag(x_88) == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec_ref(x_88); +x_91 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_15, x_42, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_90); +if (lean_obj_tag(x_91) == 0) +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_91); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_91, 0); +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_89); +lean_ctor_set(x_94, 1, x_93); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_91, 0, x_95); +return x_91; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_96 = lean_ctor_get(x_91, 0); +x_97 = lean_ctor_get(x_91, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_91); +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_89); +lean_ctor_set(x_98, 1, x_96); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_98); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_97); +return x_100; +} +} +else +{ +uint8_t x_101; +lean_dec(x_89); +x_101 = !lean_is_exclusive(x_91); +if (x_101 == 0) +{ +return x_91; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_91, 0); +x_103 = lean_ctor_get(x_91, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_91); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +else +{ +uint8_t x_105; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +x_105 = !lean_is_exclusive(x_88); +if (x_105 == 0) +{ +return x_88; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_88, 0); +x_107 = lean_ctor_get(x_88, 1); +lean_inc(x_107); lean_inc(x_106); -lean_dec_ref(x_104); -x_107 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_15, x_60, x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_106); -if (lean_obj_tag(x_107) == 0) -{ -uint8_t x_108; -x_108 = !lean_is_exclusive(x_107); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_107, 0); -x_110 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_110, 0, x_105); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_107, 0, x_111); -return x_107; +lean_dec(x_88); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} } -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_112 = lean_ctor_get(x_107, 0); -x_113 = lean_ctor_get(x_107, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_107); -x_114 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_114, 0, x_105); -lean_ctor_set(x_114, 1, x_112); -x_115 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_115, 0, x_114); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_113); -return x_116; } } else { -uint8_t x_117; -lean_dec(x_105); -x_117 = !lean_is_exclusive(x_107); -if (x_117 == 0) +uint8_t x_109; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_109 = !lean_is_exclusive(x_82); +if (x_109 == 0) { -return x_107; +return x_82; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_82, 0); +x_111 = lean_ctor_get(x_82, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_82); +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; +} +} +} +} +else +{ +lean_object* x_113; +lean_dec_ref(x_43); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_113 = l_Lean_Meta_getNatValue_x3f(x_30, x_7, x_8, x_9, x_10, x_14); +lean_dec_ref(x_30); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +if (lean_obj_tag(x_114) == 0) +{ +uint8_t x_115; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_115 = !lean_is_exclusive(x_113); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_113, 0); +lean_dec(x_116); +x_117 = lean_box(0); +lean_ctor_set(x_113, 0, x_117); +return x_113; } else { lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_107, 0); -x_119 = lean_ctor_get(x_107, 1); -lean_inc(x_119); +x_118 = lean_ctor_get(x_113, 1); lean_inc(x_118); -lean_dec(x_107); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); +lean_dec(x_113); +x_119 = lean_box(0); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); return x_120; } } -} else { -uint8_t x_121; -lean_dec_ref(x_60); -lean_dec_ref(x_48); -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -x_121 = !lean_is_exclusive(x_104); -if (x_121 == 0) +lean_object* x_121; uint8_t x_122; +x_121 = lean_ctor_get(x_113, 1); +lean_inc(x_121); +lean_dec_ref(x_113); +x_122 = !lean_is_exclusive(x_114); +if (x_122 == 0) { -return x_104; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_104, 0); -x_123 = lean_ctor_get(x_104, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_104); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -} -} -else -{ -uint8_t x_125; -lean_dec_ref(x_60); -lean_dec_ref(x_59); -lean_dec_ref(x_48); -lean_dec_ref(x_44); -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_125 = !lean_is_exclusive(x_99); -if (x_125 == 0) -{ -return x_99; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_99, 0); -x_127 = lean_ctor_get(x_99, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_99); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; -} -} -} -} -else -{ -lean_object* x_129; -lean_dec_ref(x_61); +lean_object* x_123; lean_object* x_124; +x_123 = lean_ctor_get(x_114, 0); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); lean_inc_ref(x_7); -x_129 = l_Lean_Meta_getNatValue_x3f(x_48, x_7, x_8, x_9, x_10, x_14); -lean_dec_ref(x_48); -if (lean_obj_tag(x_129) == 0) +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_124 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_121); +if (lean_obj_tag(x_124) == 0) { -lean_object* x_130; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -if (lean_obj_tag(x_130) == 0) +lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec_ref(x_124); +x_127 = l_Lean_Expr_appArg_x21(x_125); +lean_dec(x_125); +x_128 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_127, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_127); +if (x_128 == 0) { -uint8_t x_131; -lean_dec_ref(x_60); -lean_dec_ref(x_59); -lean_dec_ref(x_44); +lean_object* x_129; +lean_free_object(x_114); +lean_dec(x_123); +lean_dec_ref(x_42); +lean_dec_ref(x_26); lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_131 = !lean_is_exclusive(x_129); -if (x_131 == 0) -{ -lean_object* x_132; lean_object* x_133; -x_132 = lean_ctor_get(x_129, 0); -lean_dec(x_132); -x_133 = lean_box(0); -lean_ctor_set(x_129, 0, x_133); +x_129 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_126); return x_129; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_129, 1); +lean_object* x_130; +lean_dec_ref(x_16); +lean_dec_ref(x_1); +x_130 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_126); +if (lean_obj_tag(x_130) == 0) +{ +uint8_t x_131; +x_131 = !lean_is_exclusive(x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_130, 0); +x_133 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_123); +lean_ctor_set(x_114, 0, x_133); +lean_ctor_set(x_130, 0, x_114); +return x_130; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_130, 0); +x_135 = lean_ctor_get(x_130, 1); +lean_inc(x_135); lean_inc(x_134); -lean_dec(x_129); -x_135 = lean_box(0); -x_136 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_134); -return x_136; +lean_dec(x_130); +x_136 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_123); +lean_ctor_set(x_114, 0, x_136); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_114); +lean_ctor_set(x_137, 1, x_135); +return x_137; } } else { -lean_object* x_137; uint8_t x_138; -x_137 = lean_ctor_get(x_129, 1); -lean_inc(x_137); -lean_dec_ref(x_129); +uint8_t x_138; +lean_free_object(x_114); +lean_dec(x_123); x_138 = !lean_is_exclusive(x_130); if (x_138 == 0) { -lean_object* x_139; lean_object* x_140; +return x_130; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; x_139 = lean_ctor_get(x_130, 0); +x_140 = lean_ctor_get(x_130, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_130); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +} +} +} +else +{ +uint8_t x_142; +lean_free_object(x_114); +lean_dec(x_123); +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_142 = !lean_is_exclusive(x_124); +if (x_142 == 0) +{ +return x_124; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_124, 0); +x_144 = lean_ctor_get(x_124, 1); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_124); +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +return x_145; +} +} +} +else +{ +lean_object* x_146; lean_object* x_147; +x_146 = lean_ctor_get(x_114, 0); +lean_inc(x_146); +lean_dec(x_114); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -22950,111 +27924,100 @@ lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_140 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_137); -if (lean_obj_tag(x_140) == 0) +x_147 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_121); +if (lean_obj_tag(x_147) == 0) { -lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec_ref(x_140); -x_143 = l_Lean_Expr_appArg_x21(x_141); -lean_dec(x_141); -x_144 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_143, x_59); -lean_dec_ref(x_59); -lean_dec_ref(x_143); -if (x_144 == 0) -{ -lean_free_object(x_130); -lean_dec(x_139); -lean_dec_ref(x_60); -lean_dec_ref(x_44); -x_16 = x_1; -x_17 = x_2; -x_18 = x_3; -x_19 = x_4; -x_20 = x_5; -x_21 = x_6; -x_22 = x_7; -x_23 = x_8; -x_24 = x_9; -x_25 = x_10; -x_26 = x_142; -goto block_34; -} -else -{ -lean_object* x_145; -lean_dec_ref(x_1); -x_145 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_15, x_60, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_142); -if (lean_obj_tag(x_145) == 0) -{ -uint8_t x_146; -x_146 = !lean_is_exclusive(x_145); -if (x_146 == 0) -{ -lean_object* x_147; lean_object* x_148; -x_147 = lean_ctor_get(x_145, 0); -x_148 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_139); -lean_ctor_set(x_130, 0, x_148); -lean_ctor_set(x_145, 0, x_130); -return x_145; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_149 = lean_ctor_get(x_145, 0); -x_150 = lean_ctor_get(x_145, 1); -lean_inc(x_150); +lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +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(x_145); -x_151 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_139); -lean_ctor_set(x_130, 0, x_151); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_130); -lean_ctor_set(x_152, 1, x_150); +lean_dec_ref(x_147); +x_150 = l_Lean_Expr_appArg_x21(x_148); +lean_dec(x_148); +x_151 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_150, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_150); +if (x_151 == 0) +{ +lean_object* x_152; +lean_dec(x_146); +lean_dec_ref(x_42); +lean_dec_ref(x_26); +lean_dec_ref(x_15); +x_152 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_149); return x_152; } -} else { -uint8_t x_153; -lean_free_object(x_130); -lean_dec(x_139); -x_153 = !lean_is_exclusive(x_145); -if (x_153 == 0) +lean_object* x_153; +lean_dec_ref(x_16); +lean_dec_ref(x_1); +x_153 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_149); +if (lean_obj_tag(x_153) == 0) { -return x_145; -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_145, 0); -x_155 = lean_ctor_get(x_145, 1); -lean_inc(x_155); +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_153, 0); lean_inc(x_154); -lean_dec(x_145); -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; +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_156 = x_153; +} else { + lean_dec_ref(x_153); + x_156 = lean_box(0); } +x_157 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_157, 0, x_154); +lean_ctor_set(x_157, 1, x_146); +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_157); +if (lean_is_scalar(x_156)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_156; +} +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_155); +return x_159; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_146); +x_160 = lean_ctor_get(x_153, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_153, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_162 = x_153; +} else { + lean_dec_ref(x_153); + x_162 = lean_box(0); +} +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(1, 2, 0); +} else { + x_163 = x_162; +} +lean_ctor_set(x_163, 0, x_160); +lean_ctor_set(x_163, 1, x_161); +return x_163; } } } else { -uint8_t x_157; -lean_free_object(x_130); -lean_dec(x_139); -lean_dec_ref(x_60); -lean_dec_ref(x_59); -lean_dec_ref(x_44); +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_146); +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); lean_dec_ref(x_15); lean_dec(x_10); lean_dec_ref(x_9); @@ -23066,32 +28029,77 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_157 = !lean_is_exclusive(x_140); -if (x_157 == 0) -{ -return x_140; +x_164 = lean_ctor_get(x_147, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_147, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_166 = x_147; +} else { + lean_dec_ref(x_147); + x_166 = lean_box(0); +} +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); +return x_167; } -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_140, 0); -x_159 = lean_ctor_get(x_140, 1); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_140); -x_160 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); -return x_160; } } } else { -lean_object* x_161; lean_object* x_162; -x_161 = lean_ctor_get(x_130, 0); -lean_inc(x_161); -lean_dec(x_130); +uint8_t x_168; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_168 = !lean_is_exclusive(x_113); +if (x_168 == 0) +{ +return x_113; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_113, 0); +x_170 = lean_ctor_get(x_113, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_113); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; +} +} +} +} +} +} +} +else +{ +lean_object* x_172; +lean_dec_ref(x_27); +lean_dec_ref(x_23); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -23101,147 +28109,55 @@ lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_162 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_137); -if (lean_obj_tag(x_162) == 0) +x_172 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_172) == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -lean_dec_ref(x_162); -x_165 = l_Lean_Expr_appArg_x21(x_163); -lean_dec(x_163); -x_166 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_165, x_59); -lean_dec_ref(x_59); -lean_dec_ref(x_165); -if (x_166 == 0) -{ -lean_dec(x_161); -lean_dec_ref(x_60); -lean_dec_ref(x_44); -x_16 = x_1; -x_17 = x_2; -x_18 = x_3; -x_19 = x_4; -x_20 = x_5; -x_21 = x_6; -x_22 = x_7; -x_23 = x_8; -x_24 = x_9; -x_25 = x_10; -x_26 = x_164; -goto block_34; -} -else -{ -lean_object* x_167; -lean_dec_ref(x_1); -x_167 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreify_x3f_go(x_15, x_60, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_164); -if (lean_obj_tag(x_167) == 0) -{ -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_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - lean_ctor_release(x_167, 1); - x_170 = x_167; -} else { - lean_dec_ref(x_167); - x_170 = lean_box(0); -} -x_171 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_171, 0, x_168); -lean_ctor_set(x_171, 1, x_161); -x_172 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_172, 0, x_171); -if (lean_is_scalar(x_170)) { - x_173 = lean_alloc_ctor(0, 2, 0); -} else { - x_173 = x_170; -} -lean_ctor_set(x_173, 0, x_172); -lean_ctor_set(x_173, 1, x_169); -return x_173; -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -lean_dec(x_161); -x_174 = lean_ctor_get(x_167, 0); +lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); lean_inc(x_174); -x_175 = lean_ctor_get(x_167, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - lean_ctor_release(x_167, 1); - x_176 = x_167; -} else { - lean_dec_ref(x_167); - x_176 = lean_box(0); -} -if (lean_is_scalar(x_176)) { - x_177 = lean_alloc_ctor(1, 2, 0); -} else { - x_177 = x_176; -} -lean_ctor_set(x_177, 0, x_174); -lean_ctor_set(x_177, 1, x_175); +lean_dec_ref(x_172); +x_175 = l_Lean_Expr_appArg_x21(x_173); +lean_dec(x_173); +x_176 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_175, x_26); +lean_dec_ref(x_26); +lean_dec_ref(x_175); +if (x_176 == 0) +{ +lean_object* x_177; +lean_dec_ref(x_30); +lean_dec_ref(x_15); +x_177 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_174); return x_177; } -} -} else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_161); -lean_dec_ref(x_60); -lean_dec_ref(x_59); -lean_dec_ref(x_44); -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_178 = lean_ctor_get(x_162, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_162, 1); +lean_object* x_178; +lean_dec_ref(x_16); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_178 = l_Lean_Meta_getNatValue_x3f(x_30, x_7, x_8, x_9, x_10, x_174); +lean_dec_ref(x_30); +if (lean_obj_tag(x_178) == 0) +{ +lean_object* x_179; +x_179 = lean_ctor_get(x_178, 0); lean_inc(x_179); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_180 = x_162; -} else { - lean_dec_ref(x_162); - x_180 = lean_box(0); -} -if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(1, 2, 0); -} else { - x_181 = x_180; -} -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_179); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +lean_dec_ref(x_178); +x_181 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_180); return x_181; } -} -} -} else { uint8_t x_182; -lean_dec_ref(x_60); -lean_dec_ref(x_59); -lean_dec_ref(x_44); lean_dec_ref(x_15); lean_dec(x_10); lean_dec_ref(x_9); @@ -23253,100 +28169,72 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_182 = !lean_is_exclusive(x_129); +x_182 = !lean_is_exclusive(x_178); if (x_182 == 0) { -return x_129; +lean_object* x_183; uint8_t x_184; +x_183 = lean_ctor_get(x_178, 0); +lean_dec(x_183); +x_184 = !lean_is_exclusive(x_179); +if (x_184 == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_179, 0); +x_186 = lean_nat_to_int(x_185); +x_187 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_179, 0, x_187); +return x_178; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_129, 0); -x_184 = lean_ctor_get(x_129, 1); -lean_inc(x_184); -lean_inc(x_183); -lean_dec(x_129); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -return x_185; -} -} -} -} -} -} -} -else -{ -lean_object* x_186; -lean_dec_ref(x_45); -lean_dec_ref(x_41); -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_4); -lean_inc(x_3); -lean_inc(x_2); -x_186 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_186) == 0) -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_188 = lean_ctor_get(x_179, 0); lean_inc(x_188); -lean_dec_ref(x_186); -x_189 = l_Lean_Expr_appArg_x21(x_187); -lean_dec(x_187); -x_190 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_189, x_44); -lean_dec_ref(x_44); -lean_dec_ref(x_189); -if (x_190 == 0) -{ -lean_dec_ref(x_48); -x_16 = x_1; -x_17 = x_2; -x_18 = x_3; -x_19 = x_4; -x_20 = x_5; -x_21 = x_6; -x_22 = x_7; -x_23 = x_8; -x_24 = x_9; -x_25 = x_10; -x_26 = x_188; -goto block_34; +lean_dec(x_179); +x_189 = lean_nat_to_int(x_188); +x_190 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_190, 0, x_189); +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_178, 0, x_191); +return x_178; +} } else { -lean_object* x_191; -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc(x_8); -lean_inc_ref(x_7); -x_191 = l_Lean_Meta_getNatValue_x3f(x_48, x_7, x_8, x_9, x_10, x_188); -lean_dec_ref(x_48); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; -x_192 = lean_ctor_get(x_191, 0); +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; +x_192 = lean_ctor_get(x_178, 1); lean_inc(x_192); -if (lean_obj_tag(x_192) == 0) -{ -lean_object* x_193; lean_object* x_194; -x_193 = lean_ctor_get(x_191, 1); +lean_dec(x_178); +x_193 = lean_ctor_get(x_179, 0); lean_inc(x_193); -lean_dec_ref(x_191); -x_194 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_193); -return x_194; +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + x_194 = x_179; +} else { + lean_dec_ref(x_179); + x_194 = lean_box(0); +} +x_195 = lean_nat_to_int(x_193); +x_196 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_196, 0, x_195); +if (lean_is_scalar(x_194)) { + x_197 = lean_alloc_ctor(1, 1, 0); +} else { + x_197 = x_194; +} +lean_ctor_set(x_197, 0, x_196); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_192); +return x_198; +} +} } else { -uint8_t x_195; +uint8_t x_199; lean_dec_ref(x_15); lean_dec(x_10); lean_dec_ref(x_9); @@ -23358,337 +28246,96 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_195 = !lean_is_exclusive(x_191); -if (x_195 == 0) +x_199 = !lean_is_exclusive(x_178); +if (x_199 == 0) { -lean_object* x_196; uint8_t x_197; -x_196 = lean_ctor_get(x_191, 0); -lean_dec(x_196); -x_197 = !lean_is_exclusive(x_192); -if (x_197 == 0) -{ -lean_object* x_198; lean_object* x_199; -x_198 = lean_ctor_get(x_192, 0); -x_199 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_192, 0, x_199); -return x_191; +return x_178; } else { lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_192, 0); +x_200 = lean_ctor_get(x_178, 0); +x_201 = lean_ctor_get(x_178, 1); +lean_inc(x_201); lean_inc(x_200); -lean_dec(x_192); -x_201 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_201, 0, x_200); -x_202 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_191, 0, x_202); -return x_191; +lean_dec(x_178); +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; +} +} } } 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; -x_203 = lean_ctor_get(x_191, 1); -lean_inc(x_203); -lean_dec(x_191); -x_204 = lean_ctor_get(x_192, 0); +uint8_t x_203; +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_203 = !lean_is_exclusive(x_172); +if (x_203 == 0) +{ +return x_172; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_172, 0); +x_205 = lean_ctor_get(x_172, 1); +lean_inc(x_205); lean_inc(x_204); -if (lean_is_exclusive(x_192)) { - lean_ctor_release(x_192, 0); - x_205 = x_192; -} else { - lean_dec_ref(x_192); - x_205 = lean_box(0); -} -x_206 = lean_alloc_ctor(0, 1, 0); +lean_dec(x_172); +x_206 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_206, 0, x_204); -if (lean_is_scalar(x_205)) { - x_207 = lean_alloc_ctor(1, 1, 0); -} else { - x_207 = x_205; +lean_ctor_set(x_206, 1, x_205); +return x_206; } -lean_ctor_set(x_207, 0, x_206); -x_208 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_203); -return x_208; } } } else { -uint8_t x_209; +lean_object* x_207; +lean_dec_ref(x_27); +lean_dec_ref(x_23); +lean_dec_ref(x_17); lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_209 = !lean_is_exclusive(x_191); -if (x_209 == 0) -{ -return x_191; -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_191, 0); -x_211 = lean_ctor_get(x_191, 1); -lean_inc(x_211); -lean_inc(x_210); -lean_dec(x_191); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -return x_212; -} -} -} -} -else -{ -uint8_t x_213; -lean_dec_ref(x_48); -lean_dec_ref(x_44); -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_213 = !lean_is_exclusive(x_186); -if (x_213 == 0) -{ -return x_186; -} -else -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_186, 0); -x_215 = lean_ctor_get(x_186, 1); -lean_inc(x_215); -lean_inc(x_214); -lean_dec(x_186); -x_216 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_216, 0, x_214); -lean_ctor_set(x_216, 1, x_215); -return x_216; -} -} -} -} -else -{ -lean_object* x_217; -lean_dec_ref(x_45); -lean_dec_ref(x_41); -lean_dec_ref(x_35); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); lean_inc_ref(x_7); -x_217 = l_Lean_Meta_getNatValue_x3f(x_44, x_7, x_8, x_9, x_10, x_14); -lean_dec_ref(x_44); -if (lean_obj_tag(x_217) == 0) +x_207 = l_Lean_Meta_getNatValue_x3f(x_26, x_7, x_8, x_9, x_10, x_14); +lean_dec_ref(x_26); +if (lean_obj_tag(x_207) == 0) { -lean_object* x_218; -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -if (lean_obj_tag(x_218) == 0) +lean_object* x_208; +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +if (lean_obj_tag(x_208) == 0) { -lean_object* x_219; -x_219 = lean_ctor_get(x_217, 1); -lean_inc(x_219); -lean_dec_ref(x_217); -x_16 = x_1; -x_17 = x_2; -x_18 = x_3; -x_19 = x_4; -x_20 = x_5; -x_21 = x_6; -x_22 = x_7; -x_23 = x_8; -x_24 = x_9; -x_25 = x_10; -x_26 = x_219; -goto block_34; +lean_object* x_209; lean_object* x_210; +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec_ref(x_207); +x_210 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_209); +return x_210; } else { -uint8_t x_220; -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_220 = !lean_is_exclusive(x_217); -if (x_220 == 0) -{ -lean_object* x_221; uint8_t x_222; -x_221 = lean_ctor_get(x_217, 0); -lean_dec(x_221); -x_222 = !lean_is_exclusive(x_218); -if (x_222 == 0) -{ -lean_object* x_223; lean_object* x_224; -x_223 = lean_ctor_get(x_218, 0); -x_224 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_218, 0, x_224); -return x_217; -} -else -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_225 = lean_ctor_get(x_218, 0); -lean_inc(x_225); -lean_dec(x_218); -x_226 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_226, 0, x_225); -x_227 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_217, 0, x_227); -return x_217; -} -} -else -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_228 = lean_ctor_get(x_217, 1); -lean_inc(x_228); -lean_dec(x_217); -x_229 = lean_ctor_get(x_218, 0); -lean_inc(x_229); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - x_230 = x_218; -} else { - lean_dec_ref(x_218); - x_230 = lean_box(0); -} -x_231 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_231, 0, x_229); -if (lean_is_scalar(x_230)) { - x_232 = lean_alloc_ctor(1, 1, 0); -} else { - x_232 = x_230; -} -lean_ctor_set(x_232, 0, x_231); -x_233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_228); -return x_233; -} -} -} -else -{ -uint8_t x_234; -lean_dec_ref(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_234 = !lean_is_exclusive(x_217); -if (x_234 == 0) -{ -return x_217; -} -else -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_235 = lean_ctor_get(x_217, 0); -x_236 = lean_ctor_get(x_217, 1); -lean_inc(x_236); -lean_inc(x_235); -lean_dec(x_217); -x_237 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set(x_237, 1, x_236); -return x_237; -} -} -} -} -} -} -block_34: -{ -lean_object* x_27; -lean_inc_ref(x_16); -x_27 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___redArg(x_16, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec_ref(x_27); -x_29 = l_Lean_Meta_Grind_Arith_CommRing_sreify_x3f___lam__1(x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_28); -return x_29; -} -else -{ -uint8_t x_30; -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec(x_23); -lean_dec_ref(x_22); -lean_dec(x_21); -lean_dec_ref(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); +uint8_t x_211; lean_dec_ref(x_16); -lean_dec_ref(x_15); -x_30 = !lean_is_exclusive(x_27); -if (x_30 == 0) -{ -return x_27; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_27); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -} -else -{ -uint8_t x_238; lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -23699,30 +28346,4875 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_238 = !lean_is_exclusive(x_12); -if (x_238 == 0) +x_211 = !lean_is_exclusive(x_207); +if (x_211 == 0) +{ +lean_object* x_212; uint8_t x_213; +x_212 = lean_ctor_get(x_207, 0); +lean_dec(x_212); +x_213 = !lean_is_exclusive(x_208); +if (x_213 == 0) +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_208, 0); +x_215 = lean_nat_to_int(x_214); +x_216 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_208, 0, x_216); +return x_207; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_217 = lean_ctor_get(x_208, 0); +lean_inc(x_217); +lean_dec(x_208); +x_218 = lean_nat_to_int(x_217); +x_219 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_219, 0, x_218); +x_220 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_207, 0, x_220); +return x_207; +} +} +else +{ +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; +x_221 = lean_ctor_get(x_207, 1); +lean_inc(x_221); +lean_dec(x_207); +x_222 = lean_ctor_get(x_208, 0); +lean_inc(x_222); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + x_223 = x_208; +} else { + lean_dec_ref(x_208); + x_223 = lean_box(0); +} +x_224 = lean_nat_to_int(x_222); +x_225 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_225, 0, x_224); +if (lean_is_scalar(x_223)) { + x_226 = lean_alloc_ctor(1, 1, 0); +} else { + x_226 = x_223; +} +lean_ctor_set(x_226, 0, x_225); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_221); +return x_227; +} +} +} +else +{ +uint8_t x_228; +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(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_228 = !lean_is_exclusive(x_207); +if (x_228 == 0) +{ +return x_207; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_207, 0); +x_230 = lean_ctor_get(x_207, 1); +lean_inc(x_230); +lean_inc(x_229); +lean_dec(x_207); +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_229); +lean_ctor_set(x_231, 1, x_230); +return x_231; +} +} +} +} +} +} +} +else +{ +uint8_t x_232; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_232 = !lean_is_exclusive(x_12); +if (x_232 == 0) { return x_12; } else { -lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_239 = lean_ctor_get(x_12, 0); -x_240 = lean_ctor_get(x_12, 1); -lean_inc(x_240); -lean_inc(x_239); +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_12, 0); +x_234 = lean_ctor_get(x_12, 1); +lean_inc(x_234); +lean_inc(x_233); lean_dec(x_12); -x_241 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_241, 0, x_239); -lean_ctor_set(x_241, 1, x_240); -return x_241; +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +return x_235; } } } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreify_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, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0(x_1, 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_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__0___lam__0(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_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: +{ +lean_object* x_13; +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_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(x_4); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__1_spec__1(x_1, x_2, x_3, 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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1_spec__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(x_6); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__1___lam__0(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__5___lam__0(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6_spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6_spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__6___lam__0(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8_spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0_spec__5_spec__8___lam__0(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_3, 9); +x_6 = lean_ctor_get(x_3, 10); +lean_inc_ref(x_1); +x_7 = l_Lean_PersistentArray_push___redArg(x_5, x_1); +x_8 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3___redArg(x_6, x_1, x_2); +lean_ctor_set(x_3, 10, x_8); +lean_ctor_set(x_3, 9, x_7); +return x_3; +} +else +{ +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; +x_9 = lean_ctor_get(x_3, 0); +x_10 = lean_ctor_get(x_3, 1); +x_11 = lean_ctor_get(x_3, 2); +x_12 = lean_ctor_get(x_3, 3); +x_13 = lean_ctor_get(x_3, 4); +x_14 = lean_ctor_get(x_3, 5); +x_15 = lean_ctor_get(x_3, 6); +x_16 = lean_ctor_get(x_3, 7); +x_17 = lean_ctor_get(x_3, 8); +x_18 = lean_ctor_get(x_3, 9); +x_19 = lean_ctor_get(x_3, 10); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_3); +lean_inc_ref(x_1); +x_20 = l_Lean_PersistentArray_push___redArg(x_18, x_1); +x_21 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__3___redArg(x_19, x_1, x_2); +x_22 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_22, 0, x_9); +lean_ctor_set(x_22, 1, x_10); +lean_ctor_set(x_22, 2, x_11); +lean_ctor_set(x_22, 3, x_12); +lean_ctor_set(x_22, 4, x_13); +lean_ctor_set(x_22, 5, x_14); +lean_ctor_set(x_22, 6, x_15); +lean_ctor_set(x_22, 7, x_16); +lean_ctor_set(x_22, 8, x_17); +lean_ctor_set(x_22, 9, x_20); +lean_ctor_set(x_22, 10, x_21); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = lean_ctor_get(x_14, 9); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_17); +lean_dec(x_14); +x_18 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0___redArg(x_17, x_1); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_free_object(x_12); +x_19 = lean_ctor_get(x_16, 2); +lean_inc(x_19); +lean_dec_ref(x_16); +lean_inc(x_19); +lean_inc_ref(x_1); +x_20 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__0___lam__0), 3, 2); +lean_closure_set(x_20, 0, x_1); +lean_closure_set(x_20, 1, x_19); +lean_inc(x_2); +x_21 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_20, x_2, x_3, x_15); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec_ref(x_21); +lean_inc_ref(x_1); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec_ref(x_23); +x_25 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_26 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_25, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_19); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_19); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_dec(x_19); +x_31 = !lean_is_exclusive(x_26); +if (x_31 == 0) +{ +return x_26; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_26, 0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_26); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_19); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_35 = !lean_is_exclusive(x_23); +if (x_35 == 0) +{ +return x_23; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_23, 0); +x_37 = lean_ctor_get(x_23, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_23); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_19); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_39 = !lean_is_exclusive(x_21); +if (x_39 == 0) +{ +return x_21; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +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_21); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; +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(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_43 = lean_ctor_get(x_18, 0); +lean_inc(x_43); +lean_dec_ref(x_18); +lean_ctor_set(x_12, 0, x_43); +return x_12; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_12, 0); +x_45 = lean_ctor_get(x_12, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_12); +x_46 = lean_ctor_get(x_44, 9); +lean_inc_ref(x_46); +x_47 = lean_ctor_get(x_44, 10); +lean_inc_ref(x_47); +lean_dec(x_44); +x_48 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0_spec__0___redArg(x_47, x_1); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_46, 2); +lean_inc(x_49); +lean_dec_ref(x_46); +lean_inc(x_49); +lean_inc_ref(x_1); +x_50 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__0___lam__0), 3, 2); +lean_closure_set(x_50, 0, x_1); +lean_closure_set(x_50, 1, x_49); +lean_inc(x_2); +x_51 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_50, x_2, x_3, x_45); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec_ref(x_51); +lean_inc_ref(x_1); +x_53 = l_Lean_Meta_Grind_Arith_CommRing_setTermNonCommSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_52); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec_ref(x_53); +x_55 = l_Lean_Meta_Grind_Arith_CommRing_mkVarCore___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__0___closed__0; +x_56 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_55, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_54); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +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; +} else { + lean_dec_ref(x_56); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_49); +lean_ctor_set(x_59, 1, x_57); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_49); +x_60 = lean_ctor_get(x_56, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_56, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_62 = x_56; +} else { + lean_dec_ref(x_56); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_49); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_64 = lean_ctor_get(x_53, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_53, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_66 = x_53; +} else { + lean_dec_ref(x_53); + 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(x_67, 0, x_64); +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_dec(x_49); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_68 = lean_ctor_get(x_51, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_51, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_70 = x_51; +} else { + lean_dec_ref(x_51); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +} +else +{ +lean_object* x_72; lean_object* x_73; +lean_dec_ref(x_46); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_72 = lean_ctor_get(x_48, 0); +lean_inc(x_72); +lean_dec_ref(x_48); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_45); +return x_73; +} +} +} +else +{ +uint8_t x_74; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_74 = !lean_is_exclusive(x_12); +if (x_74 == 0) +{ +return x_12; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_12, 0); +x_76 = lean_ctor_get(x_12, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_12); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_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) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 5); +x_8 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9_spec__9_spec__9(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(x_2, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_1); +x_12 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +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; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec_ref(x_12); +x_15 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9_spec__9_spec__9___closed__1; +x_16 = l_Lean_indentExpr(x_1); +x_17 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(x_17, x_7, x_8, x_9, x_10, x_14); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_1); +x_19 = !lean_is_exclusive(x_12); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_12, 0); +lean_dec(x_20); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec_ref(x_13); +lean_ctor_set(x_12, 0, x_21); +return x_12; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_dec(x_12); +x_23 = lean_ctor_get(x_13, 0); +lean_inc(x_23); +lean_dec_ref(x_13); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +return x_24; +} +} +} +else +{ +uint8_t x_25; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_1); +x_25 = !lean_is_exclusive(x_12); +if (x_25 == 0) +{ +return x_12; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_12, 0); +x_27 = lean_ctor_get(x_12, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_12); +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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_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, 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; +x_16 = lean_box(0); +lean_inc(x_2); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_16); +lean_inc(x_2); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_2); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_18); +lean_inc_ref(x_19); +x_20 = l_Lean_mkConst(x_3, x_19); +lean_inc_ref_n(x_1, 3); +x_21 = l_Lean_mkApp3(x_20, x_1, x_1, x_1); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1(x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec_ref(x_22); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_23); +lean_inc(x_4); +x_25 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_4, x_23, x_5, x_11, x_12, x_13, x_14, x_24); +if (lean_obj_tag(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_25, 1); +lean_inc(x_26); +lean_dec_ref(x_25); +x_27 = l_Lean_mkConst(x_4, x_19); +lean_inc_ref_n(x_1, 2); +x_28 = l_Lean_mkApp4(x_27, x_1, x_1, x_1, x_23); +lean_inc(x_10); +x_29 = lean_grind_canon(x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +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_Meta_Grind_shareCommon___redArg(x_30, x_10, x_31); +lean_dec(x_10); +return x_32; +} +else +{ +lean_dec(x_10); +return x_29; +} +} +else +{ +uint8_t x_33; +lean_dec(x_23); +lean_dec_ref(x_19); +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_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec_ref(x_1); +x_33 = !lean_is_exclusive(x_25); +if (x_33 == 0) +{ +return x_25; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_25, 0); +x_35 = lean_ctor_get(x_25, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_25); +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; +} +} +} +else +{ +lean_dec_ref(x_19); +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_8); +lean_dec(x_7); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_1); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 4); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 4, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 5); +x_11 = lean_ctor_get(x_2, 6); +x_12 = lean_ctor_get(x_2, 7); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_16); +lean_ctor_set(x_17, 5, x_10); +lean_ctor_set(x_17, 6, x_11); +lean_ctor_set(x_17, 7, x_12); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_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_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 4); +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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec_ref(x_11); +x_15 = lean_ctor_get(x_12, 1); +lean_inc_ref(x_15); +x_16 = lean_ctor_get(x_12, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_12, 3); +lean_inc_ref(x_17); +lean_dec(x_12); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__1; +x_19 = lean_box(0); +lean_inc(x_16); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_16); +lean_ctor_set(x_20, 1, x_19); +lean_inc_ref(x_20); +x_21 = l_Lean_mkConst(x_18, x_20); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__6; +x_23 = l_Lean_mkConst(x_22, x_20); +lean_inc_ref(x_15); +x_24 = l_Lean_mkAppB(x_23, x_15, x_17); +lean_inc_ref(x_15); +x_25 = l_Lean_mkAppB(x_21, x_15, x_24); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at___Lean_Meta_Grind_Arith_CommRing_isAddInst___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__9_spec__9___closed__7; +x_27 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; +lean_inc(x_2); +x_28 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1(x_15, x_16, x_26, x_27, x_25, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +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_29); +x_31 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1___lam__0), 2, 1); +lean_closure_set(x_31, 0, x_29); +x_32 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_31, x_1, x_2, x_30); +lean_dec(x_2); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set(x_32, 0, x_29); +return x_32; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_29); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +else +{ +uint8_t x_37; +lean_dec(x_29); +x_37 = !lean_is_exclusive(x_32); +if (x_37 == 0) +{ +return x_32; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_32, 0); +x_39 = lean_ctor_get(x_32, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_32); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_28; +} +} +else +{ +uint8_t x_41; +lean_inc_ref(x_13); +lean_dec(x_12); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_11); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_11, 0); +lean_dec(x_42); +x_43 = lean_ctor_get(x_13, 0); +lean_inc(x_43); +lean_dec_ref(x_13); +lean_ctor_set(x_11, 0, x_43); +return x_11; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_11, 1); +lean_inc(x_44); +lean_dec(x_11); +x_45 = lean_ctor_get(x_13, 0); +lean_inc(x_45); +lean_dec_ref(x_13); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +} +else +{ +uint8_t x_47; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_11); +if (x_47 == 0) +{ +return x_11; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_11, 0); +x_49 = lean_ctor_get(x_11, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_11); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__5___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 5); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 5, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 6); +x_12 = lean_ctor_get(x_2, 7); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_10); +lean_ctor_set(x_17, 5, x_16); +lean_ctor_set(x_17, 6, x_11); +lean_ctor_set(x_17, 7, x_12); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 5); +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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec_ref(x_11); +x_15 = lean_ctor_get(x_12, 1); +lean_inc_ref(x_15); +x_16 = lean_ctor_get(x_12, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_12, 3); +lean_inc_ref(x_17); +lean_dec(x_12); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__1; +x_19 = lean_box(0); +lean_inc(x_16); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_16); +lean_ctor_set(x_20, 1, x_19); +lean_inc_ref(x_20); +x_21 = l_Lean_mkConst(x_18, x_20); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__3; +x_23 = l_Lean_mkConst(x_22, x_20); +lean_inc_ref(x_15); +x_24 = l_Lean_mkAppB(x_23, x_15, x_17); +lean_inc_ref(x_15); +x_25 = l_Lean_mkAppB(x_21, x_15, x_24); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at___Lean_Meta_Grind_Arith_CommRing_isMulInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__15_spec__15___closed__4; +x_27 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; +lean_inc(x_2); +x_28 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1(x_15, x_16, x_26, x_27, x_25, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +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_29); +x_31 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__5___lam__0), 2, 1); +lean_closure_set(x_31, 0, x_29); +x_32 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_31, x_1, x_2, x_30); +lean_dec(x_2); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set(x_32, 0, x_29); +return x_32; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_29); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +else +{ +uint8_t x_37; +lean_dec(x_29); +x_37 = !lean_is_exclusive(x_32); +if (x_37 == 0) +{ +return x_32; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_32, 0); +x_39 = lean_ctor_get(x_32, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_32); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_28; +} +} +else +{ +uint8_t x_41; +lean_inc_ref(x_13); +lean_dec(x_12); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_11); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_11, 0); +lean_dec(x_42); +x_43 = lean_ctor_get(x_13, 0); +lean_inc(x_43); +lean_dec_ref(x_13); +lean_ctor_set(x_11, 0, x_43); +return x_11; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_11, 1); +lean_inc(x_44); +lean_dec(x_11); +x_45 = lean_ctor_get(x_13, 0); +lean_inc(x_45); +lean_dec_ref(x_13); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +} +else +{ +uint8_t x_47; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_11); +if (x_47 == 0) +{ +return x_11; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_11, 0); +x_49 = lean_ctor_get(x_11, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_11); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__0; +x_15 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__1; +x_16 = lean_box(0); +lean_inc(x_1); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +lean_inc_ref(x_17); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_19, 1, x_18); +lean_inc_ref(x_19); +x_20 = l_Lean_mkConst(x_14, x_19); +x_21 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__2; +lean_inc_ref_n(x_2, 2); +x_22 = l_Lean_mkApp3(x_20, x_2, x_21, x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(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; +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 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at___Lean_Meta_Grind_Arith_CommRing_isPowInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__19_spec__19_spec__19___closed__4; +x_27 = l_Lean_mkConst(x_26, x_17); +lean_inc_ref(x_2); +x_28 = l_Lean_mkAppB(x_27, x_2, x_3); +x_29 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_24); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_24, x_28, x_9, x_10, x_11, x_12, x_25); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_mkConst(x_29, x_19); +lean_inc_ref(x_2); +x_33 = l_Lean_mkApp4(x_32, x_2, x_21, x_2, x_24); +lean_inc(x_8); +x_34 = lean_grind_canon(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +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 = l_Lean_Meta_Grind_shareCommon___redArg(x_35, x_8, x_36); +lean_dec(x_8); +return x_37; +} +else +{ +lean_dec(x_8); +return x_34; +} +} +else +{ +uint8_t x_38; +lean_dec(x_24); +lean_dec_ref(x_19); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_2); +x_38 = !lean_is_exclusive(x_30); +if (x_38 == 0) +{ +return x_30; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_30, 0); +x_40 = lean_ctor_get(x_30, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_30); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +lean_dec_ref(x_19); +lean_dec_ref(x_17); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_23; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 6); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 6, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 5); +x_12 = lean_ctor_get(x_2, 7); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_10); +lean_ctor_set(x_17, 5, x_11); +lean_ctor_set(x_17, 6, x_16); +lean_ctor_set(x_17, 7, x_12); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 6); +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; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec_ref(x_11); +x_15 = lean_ctor_get(x_12, 1); +lean_inc_ref(x_15); +x_16 = lean_ctor_get(x_12, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_12, 3); +lean_inc_ref(x_17); +lean_dec(x_12); +lean_inc(x_2); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6_spec__6(x_16, x_15, x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_18) == 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_inc(x_20); +lean_dec_ref(x_18); +lean_inc(x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6___lam__0), 2, 1); +lean_closure_set(x_21, 0, x_19); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_21, x_1, x_2, x_20); +lean_dec(x_2); +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; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_19); +return x_22; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_19); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_19); +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) +{ +return x_22; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +else +{ +uint8_t x_31; +lean_inc_ref(x_13); +lean_dec(x_12); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_11); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_11, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_13, 0); +lean_inc(x_33); +lean_dec_ref(x_13); +lean_ctor_set(x_11, 0, x_33); +return x_11; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_11, 1); +lean_inc(x_34); +lean_dec(x_11); +x_35 = lean_ctor_get(x_13, 0); +lean_inc(x_35); +lean_dec_ref(x_13); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +} +else +{ +uint8_t x_37; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_11); +if (x_37 == 0) +{ +return x_11; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_11, 0); +x_39 = lean_ctor_get(x_11, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_11); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8_spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_14); +x_16 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__3; +x_17 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___closed__0; +lean_inc_ref(x_15); +x_18 = l_Lean_mkConst(x_17, x_15); +lean_inc_ref(x_2); +x_19 = l_Lean_Expr_app___override(x_18, x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_20 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_19, x_9, x_10, x_11, x_12, x_13); +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; +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 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__4; +x_24 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_reify_x3f_spec__0_spec__15_spec__27_spec__27_spec__27___closed__1; +lean_inc_ref(x_15); +x_25 = l_Lean_mkConst(x_24, x_15); +lean_inc_ref(x_2); +x_26 = l_Lean_mkAppB(x_25, x_2, x_3); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_27; +x_27 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18_spec__18___lam__0(x_16, x_23, x_15, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +lean_inc(x_28); +lean_dec_ref(x_21); +x_29 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_28); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_28, x_26, x_9, x_10, x_11, x_12, x_22); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_isNatCastInst___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncreify_x3f_spec__0_spec__6_spec__18_spec__18_spec__18___lam__0(x_16, x_23, x_15, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_28); +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_2); +x_33 = !lean_is_exclusive(x_30); +if (x_33 == 0) +{ +return x_30; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_30); +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; +} +} +} +} +else +{ +uint8_t x_37; +lean_dec_ref(x_15); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +return x_20; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_20, 0); +x_39 = lean_ctor_get(x_20, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_20); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 7); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 7, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 5); +x_12 = lean_ctor_get(x_2, 6); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_10); +lean_ctor_set(x_17, 5, x_11); +lean_ctor_set(x_17, 6, x_12); +lean_ctor_set(x_17, 7, x_16); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 7); +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; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec_ref(x_11); +x_15 = lean_ctor_get(x_12, 1); +lean_inc_ref(x_15); +x_16 = lean_ctor_get(x_12, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_12, 3); +lean_inc_ref(x_17); +lean_dec(x_12); +lean_inc(x_2); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8_spec__8(x_16, x_15, x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_18) == 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_inc(x_20); +lean_dec_ref(x_18); +lean_inc(x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8___lam__0), 2, 1); +lean_closure_set(x_21, 0, x_19); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_NonCommSemiringM_modifySemiring___redArg(x_21, x_1, x_2, x_20); +lean_dec(x_2); +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; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_19); +return x_22; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_19); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_19); +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) +{ +return x_22; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +else +{ +uint8_t x_31; +lean_inc_ref(x_13); +lean_dec(x_12); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_11); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_11, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_13, 0); +lean_inc(x_33); +lean_dec_ref(x_13); +lean_ctor_set(x_11, 0, x_33); +return x_11; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_11, 1); +lean_inc(x_34); +lean_dec(x_11); +x_35 = lean_ctor_get(x_13, 0); +lean_inc(x_35); +lean_dec_ref(x_13); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +} +else +{ +uint8_t x_37; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_11); +if (x_37 == 0) +{ +return x_11; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_11, 0); +x_39 = lean_ctor_get(x_11, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_11); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +lean_inc_ref(x_3); +x_14 = l_Lean_Meta_instantiateMVarsIfMVarApp___redArg(x_3, x_10, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +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 = l_Lean_Expr_cleanupAnnotations(x_15); +x_18 = l_Lean_Expr_isApp(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec_ref(x_17); +lean_dec_ref(x_2); +x_19 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_19; +} +else +{ +lean_object* x_20; uint8_t x_21; +lean_inc_ref(x_17); +x_20 = l_Lean_Expr_appFnCleanup___redArg(x_17); +x_21 = l_Lean_Expr_isApp(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec_ref(x_20); +lean_dec_ref(x_17); +lean_dec_ref(x_2); +x_22 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_22; +} +else +{ +lean_object* x_23; uint8_t x_24; +lean_inc_ref(x_20); +x_23 = l_Lean_Expr_appFnCleanup___redArg(x_20); +x_24 = l_Lean_Expr_isApp(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec_ref(x_23); +lean_dec_ref(x_20); +lean_dec_ref(x_17); +lean_dec_ref(x_2); +x_25 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_20, 1); +lean_inc_ref(x_26); +lean_dec_ref(x_20); +lean_inc_ref(x_23); +x_27 = l_Lean_Expr_appFnCleanup___redArg(x_23); +x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__2; +x_29 = l_Lean_Expr_isConstOf(x_27, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_17, 1); +lean_inc_ref(x_30); +lean_dec_ref(x_17); +x_31 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; +x_32 = l_Lean_Expr_isConstOf(x_27, x_31); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Expr_isApp(x_27); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec_ref(x_30); +lean_dec_ref(x_27); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_2); +x_34 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_34; +} +else +{ +lean_object* x_35; uint8_t x_36; +x_35 = l_Lean_Expr_appFnCleanup___redArg(x_27); +x_36 = l_Lean_Expr_isApp(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +lean_dec_ref(x_35); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_2); +x_37 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_37; +} +else +{ +lean_object* x_38; uint8_t x_39; +x_38 = l_Lean_Expr_appFnCleanup___redArg(x_35); +x_39 = l_Lean_Expr_isApp(x_38); +if (x_39 == 0) +{ +lean_object* x_40; +lean_dec_ref(x_38); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_2); +x_40 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_23, 1); +lean_inc_ref(x_41); +lean_dec_ref(x_23); +x_42 = l_Lean_Expr_appFnCleanup___redArg(x_38); +x_43 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +x_44 = l_Lean_Expr_isConstOf(x_42, x_43); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_46; +x_45 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; +x_46 = l_Lean_Expr_isConstOf(x_42, x_45); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; +x_48 = l_Lean_Expr_isConstOf(x_42, x_47); +lean_dec_ref(x_42); +if (x_48 == 0) +{ +lean_object* x_49; +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_2); +x_49 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_49; +} +else +{ +lean_object* x_50; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_50 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +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 = l_Lean_Expr_appArg_x21(x_51); +lean_dec(x_51); +x_54 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_53, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_53); +if (x_54 == 0) +{ +lean_object* x_55; +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_1); +x_55 = lean_apply_11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_52); +return x_55; +} +else +{ +lean_object* x_56; +lean_dec_ref(x_3); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc_ref(x_2); +lean_inc_ref(x_1); +x_56 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_52); +if (lean_obj_tag(x_56) == 0) +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_56, 0); +x_59 = lean_ctor_get(x_56, 1); +x_60 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_59); +if (lean_obj_tag(x_60) == 0) +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_60, 0); +lean_ctor_set_tag(x_56, 5); +lean_ctor_set(x_56, 1, x_62); +lean_ctor_set(x_60, 0, x_56); +return x_60; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_60, 0); +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_60); +lean_ctor_set_tag(x_56, 5); +lean_ctor_set(x_56, 1, x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_56); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +else +{ +lean_free_object(x_56); +lean_dec(x_58); +return x_60; +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_56, 0); +x_67 = lean_ctor_get(x_56, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_56); +x_68 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_67); +if (lean_obj_tag(x_68) == 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); +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); +} +x_72 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_72, 0, x_66); +lean_ctor_set(x_72, 1, x_69); +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_72); +lean_ctor_set(x_73, 1, x_70); +return x_73; +} +else +{ +lean_dec(x_66); +return x_68; +} +} +} +else +{ +lean_dec_ref(x_30); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_2); +lean_dec_ref(x_1); +return x_56; +} +} +} +else +{ +uint8_t x_74; +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_74 = !lean_is_exclusive(x_50); +if (x_74 == 0) +{ +return x_50; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_50, 0); +x_76 = lean_ctor_get(x_50, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_50); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +} +else +{ +lean_object* x_78; +lean_dec_ref(x_42); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_78 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__5(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +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 = l_Lean_Expr_appArg_x21(x_79); +lean_dec(x_79); +x_82 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_81, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_81); +if (x_82 == 0) +{ +lean_object* x_83; +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_1); +x_83 = lean_apply_11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); +return x_83; +} +else +{ +lean_object* x_84; +lean_dec_ref(x_3); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc_ref(x_2); +lean_inc_ref(x_1); +x_84 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); +if (lean_obj_tag(x_84) == 0) +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_84, 0); +x_87 = lean_ctor_get(x_84, 1); +x_88 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_87); +if (lean_obj_tag(x_88) == 0) +{ +uint8_t x_89; +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 0); +lean_ctor_set_tag(x_84, 7); +lean_ctor_set(x_84, 1, x_90); +lean_ctor_set(x_88, 0, x_84); +return x_88; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +lean_ctor_set_tag(x_84, 7); +lean_ctor_set(x_84, 1, x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_84); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +else +{ +lean_free_object(x_84); +lean_dec(x_86); +return x_88; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_84, 0); +x_95 = lean_ctor_get(x_84, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_84); +x_96 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_1, x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_95); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_99 = x_96; +} else { + lean_dec_ref(x_96); + x_99 = lean_box(0); +} +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_94); +lean_ctor_set(x_100, 1, x_97); +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(0, 2, 0); +} else { + x_101 = x_99; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +return x_101; +} +else +{ +lean_dec(x_94); +return x_96; +} +} +} +else +{ +lean_dec_ref(x_30); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_2); +lean_dec_ref(x_1); +return x_84; +} +} +} +else +{ +uint8_t x_102; +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_102 = !lean_is_exclusive(x_78); +if (x_102 == 0) +{ +return x_78; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_78, 0); +x_104 = lean_ctor_get(x_78, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_78); +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; +} +} +} +} +else +{ +lean_object* x_106; +lean_dec_ref(x_42); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_106 = l_Lean_Meta_getNatValue_x3f(x_30, x_9, x_10, x_11, x_12, x_16); +lean_dec_ref(x_30); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_2); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec_ref(x_106); +x_109 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_108); +return x_109; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_106, 1); +lean_inc(x_110); +lean_dec_ref(x_106); +x_111 = lean_ctor_get(x_107, 0); +lean_inc(x_111); +lean_dec_ref(x_107); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_112 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_110); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec_ref(x_112); +x_115 = l_Lean_Expr_appArg_x21(x_113); +lean_dec(x_113); +x_116 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_115, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_115); +if (x_116 == 0) +{ +lean_object* x_117; +lean_dec(x_111); +lean_dec_ref(x_26); +lean_dec_ref(x_1); +x_117 = lean_apply_11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_114); +return x_117; +} +else +{ +lean_object* x_118; +lean_dec_ref(x_3); +x_118 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_1, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_114); +if (lean_obj_tag(x_118) == 0) +{ +uint8_t x_119; +x_119 = !lean_is_exclusive(x_118); +if (x_119 == 0) +{ +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_118, 0); +x_121 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_111); +lean_ctor_set(x_118, 0, x_121); +return x_118; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_122 = lean_ctor_get(x_118, 0); +x_123 = lean_ctor_get(x_118, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_118); +x_124 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_111); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_123); +return x_125; +} +} +else +{ +lean_dec(x_111); +return x_118; +} +} +} +else +{ +uint8_t x_126; +lean_dec(x_111); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_126 = !lean_is_exclusive(x_112); +if (x_126 == 0) +{ +return x_112; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_112, 0); +x_128 = lean_ctor_get(x_112, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_112); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; +} +} +} +} +else +{ +uint8_t x_130; +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_130 = !lean_is_exclusive(x_106); +if (x_130 == 0) +{ +return x_106; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_106, 0); +x_132 = lean_ctor_get(x_106, 1); +lean_inc(x_132); +lean_inc(x_131); +lean_dec(x_106); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_131); +lean_ctor_set(x_133, 1, x_132); +return x_133; +} +} +} +} +} +} +} +else +{ +lean_object* x_134; +lean_dec_ref(x_27); +lean_dec_ref(x_23); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_134 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; +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); +x_137 = l_Lean_Expr_appArg_x21(x_135); +lean_dec(x_135); +x_138 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_137, x_26); +lean_dec_ref(x_26); +lean_dec_ref(x_137); +if (x_138 == 0) +{ +lean_object* x_139; +lean_dec_ref(x_30); +lean_dec_ref(x_1); +x_139 = lean_apply_11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_136); +return x_139; +} +else +{ +lean_object* x_140; +lean_dec_ref(x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_140 = l_Lean_Meta_getNatValue_x3f(x_30, x_9, x_10, x_11, x_12, x_136); +lean_dec_ref(x_30); +if (lean_obj_tag(x_140) == 0) +{ +lean_object* x_141; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec_ref(x_140); +x_143 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_142); +return x_143; +} +else +{ +uint8_t x_144; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_1); +x_144 = !lean_is_exclusive(x_140); +if (x_144 == 0) +{ +lean_object* x_145; uint8_t x_146; +x_145 = lean_ctor_get(x_140, 0); +lean_dec(x_145); +x_146 = !lean_is_exclusive(x_141); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; +x_147 = lean_ctor_get(x_141, 0); +x_148 = lean_nat_to_int(x_147); +lean_ctor_set_tag(x_141, 0); +lean_ctor_set(x_141, 0, x_148); +return x_140; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_141, 0); +lean_inc(x_149); +lean_dec(x_141); +x_150 = lean_nat_to_int(x_149); +x_151 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_140, 0, x_151); +return x_140; +} +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_152 = lean_ctor_get(x_140, 1); +lean_inc(x_152); +lean_dec(x_140); +x_153 = lean_ctor_get(x_141, 0); +lean_inc(x_153); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + x_154 = x_141; +} else { + lean_dec_ref(x_141); + x_154 = lean_box(0); +} +x_155 = lean_nat_to_int(x_153); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 1, 0); +} else { + x_156 = x_154; + lean_ctor_set_tag(x_156, 0); +} +lean_ctor_set(x_156, 0, x_155); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_152); +return x_157; +} +} +} +else +{ +uint8_t x_158; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_1); +x_158 = !lean_is_exclusive(x_140); +if (x_158 == 0) +{ +return x_140; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_140, 0); +x_160 = lean_ctor_get(x_140, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_140); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +return x_161; +} +} +} +} +else +{ +uint8_t x_162; +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_162 = !lean_is_exclusive(x_134); +if (x_162 == 0) +{ +return x_134; +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_134, 0); +x_164 = lean_ctor_get(x_134, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_134); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +return x_165; +} +} +} +} +else +{ +lean_object* x_166; +lean_dec_ref(x_27); +lean_dec_ref(x_23); +lean_dec_ref(x_17); +lean_dec_ref(x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_166 = l_Lean_Meta_getNatValue_x3f(x_26, x_9, x_10, x_11, x_12, x_16); +lean_dec_ref(x_26); +if (lean_obj_tag(x_166) == 0) +{ +lean_object* x_167; +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec_ref(x_166); +x_169 = lean_apply_11(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_168); +return x_169; +} +else +{ +uint8_t x_170; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_1); +x_170 = !lean_is_exclusive(x_166); +if (x_170 == 0) +{ +lean_object* x_171; uint8_t x_172; +x_171 = lean_ctor_get(x_166, 0); +lean_dec(x_171); +x_172 = !lean_is_exclusive(x_167); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +x_173 = lean_ctor_get(x_167, 0); +x_174 = lean_nat_to_int(x_173); +lean_ctor_set_tag(x_167, 0); +lean_ctor_set(x_167, 0, x_174); +return x_166; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_167, 0); +lean_inc(x_175); +lean_dec(x_167); +x_176 = lean_nat_to_int(x_175); +x_177 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_166, 0, x_177); +return x_166; +} +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_178 = lean_ctor_get(x_166, 1); +lean_inc(x_178); +lean_dec(x_166); +x_179 = lean_ctor_get(x_167, 0); +lean_inc(x_179); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + x_180 = x_167; +} else { + lean_dec_ref(x_167); + x_180 = lean_box(0); +} +x_181 = lean_nat_to_int(x_179); +if (lean_is_scalar(x_180)) { + x_182 = lean_alloc_ctor(0, 1, 0); +} else { + x_182 = x_180; + lean_ctor_set_tag(x_182, 0); +} +lean_ctor_set(x_182, 0, x_181); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_178); +return x_183; +} +} +} +else +{ +uint8_t x_184; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_1); +x_184 = !lean_is_exclusive(x_166); +if (x_184 == 0) +{ +return x_166; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_166, 0); +x_186 = lean_ctor_get(x_166, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_166); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; +} +} +} +} +} +} +} +else +{ +uint8_t x_188; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(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_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_188 = !lean_is_exclusive(x_14); +if (x_188 == 0) +{ +return x_14; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_14, 0); +x_190 = lean_ctor_get(x_14, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_14); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +x_18 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_18, 0, x_16); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_12); +if (x_20 == 0) +{ +return x_12; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_12); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0___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) { +_start: +{ +lean_object* x_12; +lean_inc_ref(x_1); +x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reportSAppIssue___redArg(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec_ref(x_12); +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_13); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_14); +x_20 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_20, 0, x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +return x_14; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_26 = !lean_is_exclusive(x_12); +if (x_26 == 0) +{ +return x_12; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_12, 0); +x_28 = lean_ctor_get(x_12, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_12); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc_ref(x_1); +x_12 = l_Lean_Meta_instantiateMVarsIfMVarApp___redArg(x_1, x_8, x_11); +if (lean_obj_tag(x_12) == 0) +{ +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_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_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0___lam__0), 11, 0); +lean_inc_ref(x_15); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1), 12, 1); +lean_closure_set(x_16, 0, x_15); +x_17 = l_Lean_Expr_cleanupAnnotations(x_13); +x_18 = l_Lean_Expr_isApp(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec_ref(x_17); +lean_dec_ref(x_16); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_19; +} +else +{ +lean_object* x_20; uint8_t x_21; +lean_inc_ref(x_17); +x_20 = l_Lean_Expr_appFnCleanup___redArg(x_17); +x_21 = l_Lean_Expr_isApp(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec_ref(x_20); +lean_dec_ref(x_17); +lean_dec_ref(x_16); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_22; +} +else +{ +lean_object* x_23; uint8_t x_24; +lean_inc_ref(x_20); +x_23 = l_Lean_Expr_appFnCleanup___redArg(x_20); +x_24 = l_Lean_Expr_isApp(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec_ref(x_23); +lean_dec_ref(x_20); +lean_dec_ref(x_17); +lean_dec_ref(x_16); +x_25 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_20, 1); +lean_inc_ref(x_26); +lean_dec_ref(x_20); +lean_inc_ref(x_23); +x_27 = l_Lean_Expr_appFnCleanup___redArg(x_23); +x_28 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__2; +x_29 = l_Lean_Expr_isConstOf(x_27, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_17, 1); +lean_inc_ref(x_30); +lean_dec_ref(x_17); +x_31 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__5; +x_32 = l_Lean_Expr_isConstOf(x_27, x_31); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Expr_isApp(x_27); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec_ref(x_30); +lean_dec_ref(x_27); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_16); +x_34 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_34; +} +else +{ +lean_object* x_35; uint8_t x_36; +x_35 = l_Lean_Expr_appFnCleanup___redArg(x_27); +x_36 = l_Lean_Expr_isApp(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +lean_dec_ref(x_35); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_16); +x_37 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_37; +} +else +{ +lean_object* x_38; uint8_t x_39; +x_38 = l_Lean_Expr_appFnCleanup___redArg(x_35); +x_39 = l_Lean_Expr_isApp(x_38); +if (x_39 == 0) +{ +lean_object* x_40; +lean_dec_ref(x_38); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_23); +lean_dec_ref(x_16); +x_40 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +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_23, 1); +lean_inc_ref(x_41); +lean_dec_ref(x_23); +x_42 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0___lam__3), 11, 0); +x_43 = l_Lean_Expr_appFnCleanup___redArg(x_38); +x_44 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__14; +x_45 = l_Lean_Expr_isConstOf(x_43, x_44); +if (x_45 == 0) +{ +lean_object* x_46; uint8_t x_47; +x_46 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__20; +x_47 = l_Lean_Expr_isConstOf(x_43, x_46); +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; +x_48 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_reifyCore_x3f_go___redArg___lam__15___closed__23; +x_49 = l_Lean_Expr_isConstOf(x_43, x_48); +lean_dec_ref(x_43); +if (x_49 == 0) +{ +lean_object* x_50; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +x_50 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_50; +} +else +{ +lean_object* x_51; +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_4); +lean_inc(x_3); +lean_inc(x_2); +x_51 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec_ref(x_51); +x_54 = l_Lean_Expr_appArg_x21(x_52); +lean_dec(x_52); +x_55 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_54, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_54); +if (x_55 == 0) +{ +lean_object* x_56; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_15); +x_56 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +return x_56; +} +else +{ +lean_object* x_57; +lean_dec_ref(x_16); +lean_dec_ref(x_1); +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_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc_ref(x_42); +lean_inc_ref(x_15); +x_57 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* 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 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_15, x_42, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_59); +if (lean_obj_tag(x_60) == 0) +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_60, 0); +x_63 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_63, 0, x_58); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_60, 0, x_64); +return x_60; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_65 = lean_ctor_get(x_60, 0); +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_60); +x_67 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_67, 0, x_58); +lean_ctor_set(x_67, 1, x_65); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_66); +return x_69; +} +} +else +{ +uint8_t x_70; +lean_dec(x_58); +x_70 = !lean_is_exclusive(x_60); +if (x_70 == 0) +{ +return x_60; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_60, 0); +x_72 = lean_ctor_get(x_60, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_60); +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_74; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +x_74 = !lean_is_exclusive(x_57); +if (x_74 == 0) +{ +return x_57; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_57, 0); +x_76 = lean_ctor_get(x_57, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_57); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +} +else +{ +uint8_t x_78; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_78 = !lean_is_exclusive(x_51); +if (x_78 == 0) +{ +return x_51; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_51, 0); +x_80 = lean_ctor_get(x_51, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_51); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +} +else +{ +lean_object* x_82; +lean_dec_ref(x_43); +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_4); +lean_inc(x_3); +lean_inc(x_2); +x_82 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +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 = l_Lean_Expr_appArg_x21(x_83); +lean_dec(x_83); +x_86 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_85, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_85); +if (x_86 == 0) +{ +lean_object* x_87; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_15); +x_87 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_84); +return x_87; +} +else +{ +lean_object* x_88; +lean_dec_ref(x_16); +lean_dec_ref(x_1); +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_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc_ref(x_42); +lean_inc_ref(x_15); +x_88 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_84); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec_ref(x_88); +x_91 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_15, x_42, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_90); +if (lean_obj_tag(x_91) == 0) +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_91); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_91, 0); +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_89); +lean_ctor_set(x_94, 1, x_93); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_91, 0, x_95); +return x_91; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_96 = lean_ctor_get(x_91, 0); +x_97 = lean_ctor_get(x_91, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_91); +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_89); +lean_ctor_set(x_98, 1, x_96); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_98); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_97); +return x_100; +} +} +else +{ +uint8_t x_101; +lean_dec(x_89); +x_101 = !lean_is_exclusive(x_91); +if (x_101 == 0) +{ +return x_91; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_91, 0); +x_103 = lean_ctor_get(x_91, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_91); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +else +{ +uint8_t x_105; +lean_dec_ref(x_42); +lean_dec_ref(x_30); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +x_105 = !lean_is_exclusive(x_88); +if (x_105 == 0) +{ +return x_88; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_88, 0); +x_107 = lean_ctor_get(x_88, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_88); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +} +} +} +else +{ +uint8_t x_109; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_109 = !lean_is_exclusive(x_82); +if (x_109 == 0) +{ +return x_82; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_82, 0); +x_111 = lean_ctor_get(x_82, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_82); +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; +} +} +} +} +else +{ +lean_object* x_113; +lean_dec_ref(x_43); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_113 = l_Lean_Meta_getNatValue_x3f(x_30, x_7, x_8, x_9, x_10, x_14); +lean_dec_ref(x_30); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +if (lean_obj_tag(x_114) == 0) +{ +uint8_t x_115; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_115 = !lean_is_exclusive(x_113); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_113, 0); +lean_dec(x_116); +x_117 = lean_box(0); +lean_ctor_set(x_113, 0, x_117); +return x_113; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_113, 1); +lean_inc(x_118); +lean_dec(x_113); +x_119 = lean_box(0); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); +return x_120; +} +} +else +{ +lean_object* x_121; uint8_t x_122; +x_121 = lean_ctor_get(x_113, 1); +lean_inc(x_121); +lean_dec_ref(x_113); +x_122 = !lean_is_exclusive(x_114); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; +x_123 = lean_ctor_get(x_114, 0); +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_4); +lean_inc(x_3); +lean_inc(x_2); +x_124 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_121); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec_ref(x_124); +x_127 = l_Lean_Expr_appArg_x21(x_125); +lean_dec(x_125); +x_128 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_127, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_127); +if (x_128 == 0) +{ +lean_object* x_129; +lean_free_object(x_114); +lean_dec(x_123); +lean_dec_ref(x_42); +lean_dec_ref(x_26); +lean_dec_ref(x_15); +x_129 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_126); +return x_129; +} +else +{ +lean_object* x_130; +lean_dec_ref(x_16); +lean_dec_ref(x_1); +x_130 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_126); +if (lean_obj_tag(x_130) == 0) +{ +uint8_t x_131; +x_131 = !lean_is_exclusive(x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_130, 0); +x_133 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_123); +lean_ctor_set(x_114, 0, x_133); +lean_ctor_set(x_130, 0, x_114); +return x_130; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_130, 0); +x_135 = lean_ctor_get(x_130, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_130); +x_136 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_123); +lean_ctor_set(x_114, 0, x_136); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_114); +lean_ctor_set(x_137, 1, x_135); +return x_137; +} +} +else +{ +uint8_t x_138; +lean_free_object(x_114); +lean_dec(x_123); +x_138 = !lean_is_exclusive(x_130); +if (x_138 == 0) +{ +return x_130; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_130, 0); +x_140 = lean_ctor_get(x_130, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_130); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +} +} +} +else +{ +uint8_t x_142; +lean_free_object(x_114); +lean_dec(x_123); +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_142 = !lean_is_exclusive(x_124); +if (x_142 == 0) +{ +return x_124; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_124, 0); +x_144 = lean_ctor_get(x_124, 1); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_124); +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +return x_145; +} +} +} +else +{ +lean_object* x_146; lean_object* x_147; +x_146 = lean_ctor_get(x_114, 0); +lean_inc(x_146); +lean_dec(x_114); +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_4); +lean_inc(x_3); +lean_inc(x_2); +x_147 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_121); +if (lean_obj_tag(x_147) == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +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 = l_Lean_Expr_appArg_x21(x_148); +lean_dec(x_148); +x_151 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_150, x_41); +lean_dec_ref(x_41); +lean_dec_ref(x_150); +if (x_151 == 0) +{ +lean_object* x_152; +lean_dec(x_146); +lean_dec_ref(x_42); +lean_dec_ref(x_26); +lean_dec_ref(x_15); +x_152 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_149); +return x_152; +} +else +{ +lean_object* x_153; +lean_dec_ref(x_16); +lean_dec_ref(x_1); +x_153 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5(x_15, x_42, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_149); +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; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_156 = x_153; +} else { + lean_dec_ref(x_153); + x_156 = lean_box(0); +} +x_157 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_157, 0, x_154); +lean_ctor_set(x_157, 1, x_146); +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_157); +if (lean_is_scalar(x_156)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_156; +} +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_155); +return x_159; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_146); +x_160 = lean_ctor_get(x_153, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_153, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_162 = x_153; +} else { + lean_dec_ref(x_153); + x_162 = lean_box(0); +} +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(1, 2, 0); +} else { + x_163 = x_162; +} +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_146); +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_164 = lean_ctor_get(x_147, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_147, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_166 = x_147; +} else { + lean_dec_ref(x_147); + x_166 = lean_box(0); +} +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); +return x_167; +} +} +} +} +else +{ +uint8_t x_168; +lean_dec_ref(x_42); +lean_dec_ref(x_41); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_168 = !lean_is_exclusive(x_113); +if (x_168 == 0) +{ +return x_113; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_113, 0); +x_170 = lean_ctor_get(x_113, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_113); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; +} +} +} +} +} +} +} +else +{ +lean_object* x_172; +lean_dec_ref(x_27); +lean_dec_ref(x_23); +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_4); +lean_inc(x_3); +lean_inc(x_2); +x_172 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; +x_173 = lean_ctor_get(x_172, 0); +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_Expr_appArg_x21(x_173); +lean_dec(x_173); +x_176 = l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(x_175, x_26); +lean_dec_ref(x_26); +lean_dec_ref(x_175); +if (x_176 == 0) +{ +lean_object* x_177; +lean_dec_ref(x_30); +lean_dec_ref(x_15); +x_177 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_174); +return x_177; +} +else +{ +lean_object* x_178; +lean_dec_ref(x_16); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_178 = l_Lean_Meta_getNatValue_x3f(x_30, x_7, x_8, x_9, x_10, x_174); +lean_dec_ref(x_30); +if (lean_obj_tag(x_178) == 0) +{ +lean_object* x_179; +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +lean_dec_ref(x_178); +x_181 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__1(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_180); +return x_181; +} +else +{ +uint8_t x_182; +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_182 = !lean_is_exclusive(x_178); +if (x_182 == 0) +{ +lean_object* x_183; uint8_t x_184; +x_183 = lean_ctor_get(x_178, 0); +lean_dec(x_183); +x_184 = !lean_is_exclusive(x_179); +if (x_184 == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_179, 0); +x_186 = lean_nat_to_int(x_185); +x_187 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_179, 0, x_187); +return x_178; +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_188 = lean_ctor_get(x_179, 0); +lean_inc(x_188); +lean_dec(x_179); +x_189 = lean_nat_to_int(x_188); +x_190 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_190, 0, x_189); +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_178, 0, x_191); +return x_178; +} +} +else +{ +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; +x_192 = lean_ctor_get(x_178, 1); +lean_inc(x_192); +lean_dec(x_178); +x_193 = lean_ctor_get(x_179, 0); +lean_inc(x_193); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + x_194 = x_179; +} else { + lean_dec_ref(x_179); + x_194 = lean_box(0); +} +x_195 = lean_nat_to_int(x_193); +x_196 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_196, 0, x_195); +if (lean_is_scalar(x_194)) { + x_197 = lean_alloc_ctor(1, 1, 0); +} else { + x_197 = x_194; +} +lean_ctor_set(x_197, 0, x_196); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_192); +return x_198; +} +} +} +else +{ +uint8_t x_199; +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_199 = !lean_is_exclusive(x_178); +if (x_199 == 0) +{ +return x_178; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_200 = lean_ctor_get(x_178, 0); +x_201 = lean_ctor_get(x_178, 1); +lean_inc(x_201); +lean_inc(x_200); +lean_dec(x_178); +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; +} +} +} +} +else +{ +uint8_t x_203; +lean_dec_ref(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_203 = !lean_is_exclusive(x_172); +if (x_203 == 0) +{ +return x_172; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_172, 0); +x_205 = lean_ctor_get(x_172, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_172); +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 +{ +lean_object* x_207; +lean_dec_ref(x_27); +lean_dec_ref(x_23); +lean_dec_ref(x_17); +lean_dec_ref(x_15); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_207 = l_Lean_Meta_getNatValue_x3f(x_26, x_7, x_8, x_9, x_10, x_14); +lean_dec_ref(x_26); +if (lean_obj_tag(x_207) == 0) +{ +lean_object* x_208; +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +if (lean_obj_tag(x_208) == 0) +{ +lean_object* x_209; lean_object* x_210; +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec_ref(x_207); +x_210 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_sreify_x3f_spec__0___lam__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_209); +return x_210; +} +else +{ +uint8_t x_211; +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(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_211 = !lean_is_exclusive(x_207); +if (x_211 == 0) +{ +lean_object* x_212; uint8_t x_213; +x_212 = lean_ctor_get(x_207, 0); +lean_dec(x_212); +x_213 = !lean_is_exclusive(x_208); +if (x_213 == 0) +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_208, 0); +x_215 = lean_nat_to_int(x_214); +x_216 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_208, 0, x_216); +return x_207; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_217 = lean_ctor_get(x_208, 0); +lean_inc(x_217); +lean_dec(x_208); +x_218 = lean_nat_to_int(x_217); +x_219 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_219, 0, x_218); +x_220 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_207, 0, x_220); +return x_207; +} +} +else +{ +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; +x_221 = lean_ctor_get(x_207, 1); +lean_inc(x_221); +lean_dec(x_207); +x_222 = lean_ctor_get(x_208, 0); +lean_inc(x_222); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + x_223 = x_208; +} else { + lean_dec_ref(x_208); + x_223 = lean_box(0); +} +x_224 = lean_nat_to_int(x_222); +x_225 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_225, 0, x_224); +if (lean_is_scalar(x_223)) { + x_226 = lean_alloc_ctor(1, 1, 0); +} else { + x_226 = x_223; +} +lean_ctor_set(x_226, 0, x_225); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_221); +return x_227; +} +} +} +else +{ +uint8_t x_228; +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(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_228 = !lean_is_exclusive(x_207); +if (x_228 == 0) +{ +return x_207; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_207, 0); +x_230 = lean_ctor_get(x_207, 1); +lean_inc(x_230); +lean_inc(x_229); +lean_dec(x_207); +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_229); +lean_ctor_set(x_231, 1, x_230); +return x_231; +} +} +} +} +} +} +} +else +{ +uint8_t x_232; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_232 = !lean_is_exclusive(x_12); +if (x_232 == 0) +{ +return x_12; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_12, 0); +x_234 = lean_ctor_get(x_12, 1); +lean_inc(x_234); +lean_inc(x_233); +lean_dec(x_12); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +return x_235; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ncsreify_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, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0(x_1, 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_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1___redArg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_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: +{ +lean_object* x_13; +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1_spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_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(x_4); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__1_spec__1(x_1, x_2, x_3, 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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__1_spec__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(x_6); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6_spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__6_spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_Reify_0__Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f_go___at___Lean_Meta_Grind_Arith_CommRing_sreifyCore_x3f___at___Lean_Meta_Grind_Arith_CommRing_ncsreify_x3f_spec__0_spec__5_spec__8_spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_14; +} +} lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommSemiringM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Simp(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions(uint8_t builtin, lean_object*); static bool _G_initialized = false; @@ -23739,6 +33231,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommRingM(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_NonCommSemiringM(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Simp(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingId.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingId.c index f900e24f9b..6f372d4956 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingId.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingId.c @@ -43,6 +43,7 @@ lean_object* l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___redArg(lean_object*, static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__8; static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3_spec__3___redArg___closed__0; static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__0_spec__0___redArg___closed__0; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__19; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_setCommSemiringId___redArg___lam__0(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -53,6 +54,7 @@ static lean_object* l_Lean_PersistentHashMap_empty___at_____private_Lean_Meta_Ta LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__6; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__0; lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,6 +66,7 @@ lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__26; lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f_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_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f___lam__0(lean_object*, lean_object*, lean_object*); @@ -85,11 +88,15 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__13; extern lean_object* l_Lean_Meta_Grind_Arith_CommRing_ringExt; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f(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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__27; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3_spec__3_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___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_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__5; @@ -98,6 +105,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f(lean static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___lam__0(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___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_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f_go_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -122,7 +130,9 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__ lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommRingId_x3f___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__16; @@ -135,6 +145,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__ LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f_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_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f(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_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_setCommSemiringId___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9; size_t lean_usize_sub(size_t, size_t); @@ -150,6 +161,7 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_shareCommon___redArg(lean_object*, lean_object*, lean_object*); 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_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__0_spec__0___redArg___closed__1; lean_object* lean_grind_canon(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*); @@ -709,7 +721,7 @@ return x_2; } 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; 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_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; x_6 = lean_ctor_get(x_2, 0); x_7 = lean_ctor_get(x_2, 1); x_8 = lean_ctor_get(x_2, 2); @@ -720,6 +732,12 @@ x_12 = lean_ctor_get(x_2, 6); x_13 = lean_ctor_get(x_2, 7); x_14 = lean_ctor_get(x_2, 8); x_15 = lean_ctor_get(x_2, 9); +x_16 = lean_ctor_get(x_2, 10); +x_17 = lean_ctor_get(x_2, 11); +x_18 = lean_ctor_get(x_2, 12); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -731,19 +749,22 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_dec(x_2); -x_16 = lean_array_push(x_6, x_1); -x_17 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_7); -lean_ctor_set(x_17, 2, x_8); -lean_ctor_set(x_17, 3, x_9); -lean_ctor_set(x_17, 4, x_10); -lean_ctor_set(x_17, 5, x_11); -lean_ctor_set(x_17, 6, x_12); -lean_ctor_set(x_17, 7, x_13); -lean_ctor_set(x_17, 8, x_14); -lean_ctor_set(x_17, 9, x_15); -return x_17; +x_19 = lean_array_push(x_6, x_1); +x_20 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_7); +lean_ctor_set(x_20, 2, x_8); +lean_ctor_set(x_20, 3, x_9); +lean_ctor_set(x_20, 4, x_10); +lean_ctor_set(x_20, 5, x_11); +lean_ctor_set(x_20, 6, x_12); +lean_ctor_set(x_20, 7, x_13); +lean_ctor_set(x_20, 8, x_14); +lean_ctor_set(x_20, 9, x_15); +lean_ctor_set(x_20, 10, x_16); +lean_ctor_set(x_20, 11, x_17); +lean_ctor_set(x_20, 12, x_18); +return x_20; } } } @@ -1258,7 +1279,7 @@ lean_ctor_set(x_67, 1, x_1); lean_ctor_set(x_67, 2, x_12); lean_ctor_set(x_67, 3, x_37); lean_ctor_set(x_67, 4, x_40); -lean_ctor_set(x_67, 5, x_45); +lean_ctor_set(x_67, 5, x_44); lean_ctor_set(x_67, 6, x_62); lean_ctor_set(x_67, 7, x_62); lean_ctor_set(x_67, 8, x_62); @@ -1279,7 +1300,7 @@ lean_ctor_set(x_71, 1, x_62); lean_ctor_set(x_71, 2, x_62); lean_ctor_set(x_71, 3, x_43); lean_ctor_set(x_71, 4, x_28); -lean_ctor_set(x_71, 5, x_44); +lean_ctor_set(x_71, 5, x_45); lean_ctor_set(x_71, 6, x_56); lean_ctor_set(x_71, 7, x_65); lean_ctor_set(x_71, 8, x_64); @@ -1429,8 +1450,8 @@ block_112: { lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_dec(x_105); -lean_dec_ref(x_96); -lean_dec(x_94); +lean_dec(x_102); +lean_dec_ref(x_98); x_107 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_107, 0, x_106); x_108 = l_Lean_MessageData_ofFormat(x_107); @@ -1440,18 +1461,18 @@ if (lean_is_scalar(x_34)) { x_109 = x_34; lean_ctor_set_tag(x_109, 7); } -lean_ctor_set(x_109, 0, x_101); +lean_ctor_set(x_109, 0, x_95); lean_ctor_set(x_109, 1, x_108); -x_110 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f_spec__2___redArg(x_30, x_109, x_103, x_98, x_97, x_99, x_102); +x_110 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f_spec__2___redArg(x_30, x_109, x_97, x_94, x_96, x_99, x_104); x_111 = lean_ctor_get(x_110, 1); lean_inc(x_111); lean_dec_ref(x_110); -x_44 = x_95; -x_45 = x_104; -x_46 = x_100; -x_47 = x_103; -x_48 = x_98; -x_49 = x_97; +x_44 = x_100; +x_45 = x_103; +x_46 = x_101; +x_47 = x_97; +x_48 = x_94; +x_49 = x_96; x_50 = x_99; x_51 = x_111; goto block_93; @@ -1509,8 +1530,8 @@ lean_dec(x_34); x_131 = lean_ctor_get(x_128, 1); lean_inc(x_131); lean_dec_ref(x_128); -x_44 = x_126; -x_45 = x_123; +x_44 = x_123; +x_45 = x_126; x_46 = x_113; x_47 = x_117; x_48 = x_118; @@ -1537,18 +1558,18 @@ if (lean_obj_tag(x_126) == 0) { lean_object* x_136; x_136 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__24; -x_94 = x_116; -x_95 = x_126; -x_96 = x_115; -x_97 = x_119; -x_98 = x_118; +x_94 = x_118; +x_95 = x_135; +x_96 = x_119; +x_97 = x_117; +x_98 = x_115; x_99 = x_120; -x_100 = x_113; -x_101 = x_135; -x_102 = x_134; -x_103 = x_117; -x_104 = x_123; -x_105 = x_114; +x_100 = x_123; +x_101 = x_113; +x_102 = x_114; +x_103 = x_126; +x_104 = x_134; +x_105 = x_116; x_106 = x_136; goto block_112; } @@ -1556,18 +1577,18 @@ else { lean_object* x_137; x_137 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__25; -x_94 = x_116; -x_95 = x_126; -x_96 = x_115; -x_97 = x_119; -x_98 = x_118; +x_94 = x_118; +x_95 = x_135; +x_96 = x_119; +x_97 = x_117; +x_98 = x_115; x_99 = x_120; -x_100 = x_113; -x_101 = x_135; -x_102 = x_134; -x_103 = x_117; -x_104 = x_123; -x_105 = x_114; +x_100 = x_123; +x_101 = x_113; +x_102 = x_114; +x_103 = x_126; +x_104 = x_134; +x_105 = x_116; x_106 = x_137; goto block_112; } @@ -2546,7 +2567,7 @@ return x_3; } else { -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_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; x_7 = lean_ctor_get(x_3, 0); x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_3, 2); @@ -2557,6 +2578,12 @@ x_13 = lean_ctor_get(x_3, 6); x_14 = lean_ctor_get(x_3, 7); x_15 = lean_ctor_get(x_3, 8); x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -2568,19 +2595,22 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_3); -x_17 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_8, x_1, x_2); -x_18 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set(x_18, 2, x_9); -lean_ctor_set(x_18, 3, x_10); -lean_ctor_set(x_18, 4, x_11); -lean_ctor_set(x_18, 5, x_12); -lean_ctor_set(x_18, 6, x_13); -lean_ctor_set(x_18, 7, x_14); -lean_ctor_set(x_18, 8, x_15); -lean_ctor_set(x_18, 9, x_16); -return x_18; +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_8, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_17); +lean_ctor_set(x_21, 11, x_18); +lean_ctor_set(x_21, 12, x_19); +return x_21; } } } @@ -2966,7 +2996,7 @@ return x_2; } 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; 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_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; x_6 = lean_ctor_get(x_2, 0); x_7 = lean_ctor_get(x_2, 1); x_8 = lean_ctor_get(x_2, 2); @@ -2977,6 +3007,12 @@ x_12 = lean_ctor_get(x_2, 6); x_13 = lean_ctor_get(x_2, 7); x_14 = lean_ctor_get(x_2, 8); x_15 = lean_ctor_get(x_2, 9); +x_16 = lean_ctor_get(x_2, 10); +x_17 = lean_ctor_get(x_2, 11); +x_18 = lean_ctor_get(x_2, 12); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -2988,19 +3024,22 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_dec(x_2); -x_16 = lean_array_push(x_12, x_1); -x_17 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_17, 0, x_6); -lean_ctor_set(x_17, 1, x_7); -lean_ctor_set(x_17, 2, x_8); -lean_ctor_set(x_17, 3, x_9); -lean_ctor_set(x_17, 4, x_10); -lean_ctor_set(x_17, 5, x_11); -lean_ctor_set(x_17, 6, x_16); -lean_ctor_set(x_17, 7, x_13); -lean_ctor_set(x_17, 8, x_14); -lean_ctor_set(x_17, 9, x_15); -return x_17; +x_19 = lean_array_push(x_12, x_1); +x_20 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_20, 0, x_6); +lean_ctor_set(x_20, 1, x_7); +lean_ctor_set(x_20, 2, x_8); +lean_ctor_set(x_20, 3, x_9); +lean_ctor_set(x_20, 4, x_10); +lean_ctor_set(x_20, 5, x_11); +lean_ctor_set(x_20, 6, x_19); +lean_ctor_set(x_20, 7, x_13); +lean_ctor_set(x_20, 8, x_14); +lean_ctor_set(x_20, 9, x_15); +lean_ctor_set(x_20, 10, x_16); +lean_ctor_set(x_20, 11, x_17); +lean_ctor_set(x_20, 12, x_18); +return x_20; } } } @@ -3743,7 +3782,7 @@ return x_3; } else { -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_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; x_7 = lean_ctor_get(x_3, 0); x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_3, 2); @@ -3754,6 +3793,12 @@ x_13 = lean_ctor_get(x_3, 6); x_14 = lean_ctor_get(x_3, 7); x_15 = lean_ctor_get(x_3, 8); x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -3765,19 +3810,22 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_3); -x_17 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_15, x_1, x_2); -x_18 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_8); -lean_ctor_set(x_18, 2, x_9); -lean_ctor_set(x_18, 3, x_10); -lean_ctor_set(x_18, 4, x_11); -lean_ctor_set(x_18, 5, x_12); -lean_ctor_set(x_18, 6, x_13); -lean_ctor_set(x_18, 7, x_14); -lean_ctor_set(x_18, 8, x_17); -lean_ctor_set(x_18, 9, x_16); -return x_18; +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_15, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_20); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_17); +lean_ctor_set(x_21, 11, x_18); +lean_ctor_set(x_21, 12, x_19); +return x_21; } } } @@ -4219,7 +4267,7 @@ return x_2; } 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; 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_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; x_6 = lean_ctor_get(x_2, 0); x_7 = lean_ctor_get(x_2, 1); x_8 = lean_ctor_get(x_2, 2); @@ -4230,6 +4278,12 @@ x_12 = lean_ctor_get(x_2, 6); x_13 = lean_ctor_get(x_2, 7); x_14 = lean_ctor_get(x_2, 8); x_15 = lean_ctor_get(x_2, 9); +x_16 = lean_ctor_get(x_2, 10); +x_17 = lean_ctor_get(x_2, 11); +x_18 = lean_ctor_get(x_2, 12); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -4241,19 +4295,22 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_dec(x_2); -x_16 = lean_array_push(x_9, x_1); -x_17 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_17, 0, x_6); -lean_ctor_set(x_17, 1, x_7); -lean_ctor_set(x_17, 2, x_8); -lean_ctor_set(x_17, 3, x_16); -lean_ctor_set(x_17, 4, x_10); -lean_ctor_set(x_17, 5, x_11); -lean_ctor_set(x_17, 6, x_12); -lean_ctor_set(x_17, 7, x_13); -lean_ctor_set(x_17, 8, x_14); -lean_ctor_set(x_17, 9, x_15); -return x_17; +x_19 = lean_array_push(x_9, x_1); +x_20 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_20, 0, x_6); +lean_ctor_set(x_20, 1, x_7); +lean_ctor_set(x_20, 2, x_8); +lean_ctor_set(x_20, 3, x_19); +lean_ctor_set(x_20, 4, x_10); +lean_ctor_set(x_20, 5, x_11); +lean_ctor_set(x_20, 6, x_12); +lean_ctor_set(x_20, 7, x_13); +lean_ctor_set(x_20, 8, x_14); +lean_ctor_set(x_20, 9, x_15); +lean_ctor_set(x_20, 10, x_16); +lean_ctor_set(x_20, 11, x_17); +lean_ctor_set(x_20, 12, x_18); +return x_20; } } } @@ -4550,7 +4607,7 @@ x_57 = l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_8, x_54); lean_dec_ref(x_8); 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; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +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; x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); @@ -4564,118 +4621,120 @@ lean_dec_ref(x_60); x_62 = lean_box(0); x_63 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9; x_64 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__18; -lean_inc(x_56); lean_inc(x_61); -x_65 = lean_alloc_ctor(0, 15, 0); +x_65 = lean_alloc_ctor(0, 11, 0); lean_ctor_set(x_65, 0, x_61); -lean_ctor_set(x_65, 1, x_56); -lean_ctor_set(x_65, 2, x_1); -lean_ctor_set(x_65, 3, x_12); -lean_ctor_set(x_65, 4, x_31); -lean_ctor_set(x_65, 5, x_28); +lean_ctor_set(x_65, 1, x_1); +lean_ctor_set(x_65, 2, x_12); +lean_ctor_set(x_65, 3, x_31); +lean_ctor_set(x_65, 4, x_62); +lean_ctor_set(x_65, 5, x_62); lean_ctor_set(x_65, 6, x_62); lean_ctor_set(x_65, 7, x_62); -lean_ctor_set(x_65, 8, x_62); -lean_ctor_set(x_65, 9, x_62); -lean_ctor_set(x_65, 10, x_62); -lean_ctor_set(x_65, 11, x_62); -lean_ctor_set(x_65, 12, x_63); -lean_ctor_set(x_65, 13, x_64); -lean_ctor_set(x_65, 14, x_63); -x_66 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___lam__0), 2, 1); -lean_closure_set(x_66, 0, x_65); -x_67 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; -x_68 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_67, x_66, x_2, x_59); -if (lean_obj_tag(x_68) == 0) +lean_ctor_set(x_65, 8, x_63); +lean_ctor_set(x_65, 9, x_64); +lean_ctor_set(x_65, 10, x_63); +lean_inc(x_56); +x_66 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_56); +lean_ctor_set(x_66, 2, x_28); +lean_ctor_set(x_66, 3, x_62); +lean_ctor_set(x_66, 4, x_62); +x_67 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___lam__0), 2, 1); +lean_closure_set(x_67, 0, x_66); +x_68 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; +x_69 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_68, x_67, x_2, x_59); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -lean_dec_ref(x_68); +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec_ref(x_69); lean_inc(x_61); -x_70 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_setCommSemiringId___redArg(x_56, x_61, x_2, x_69); +x_71 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_setCommSemiringId___redArg(x_56, x_61, x_2, x_70); lean_dec(x_2); -if (lean_obj_tag(x_70) == 0) +if (lean_obj_tag(x_71) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_72; +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -lean_object* x_72; -x_72 = lean_ctor_get(x_70, 0); -lean_dec(x_72); +lean_object* x_73; +x_73 = lean_ctor_get(x_71, 0); +lean_dec(x_73); lean_ctor_set(x_42, 0, x_61); -lean_ctor_set(x_70, 0, x_42); -return x_70; +lean_ctor_set(x_71, 0, x_42); +return x_71; } else { -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_70, 1); -lean_inc(x_73); -lean_dec(x_70); +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); lean_ctor_set(x_42, 0, x_61); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_42); -lean_ctor_set(x_74, 1, x_73); -return x_74; +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_42); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } else { -uint8_t x_75; +uint8_t x_76; lean_dec(x_61); lean_free_object(x_42); -x_75 = !lean_is_exclusive(x_70); -if (x_75 == 0) +x_76 = !lean_is_exclusive(x_71); +if (x_76 == 0) { -return x_70; +return x_71; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_70, 0); -x_77 = lean_ctor_get(x_70, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_71, 0); +x_78 = lean_ctor_get(x_71, 1); +lean_inc(x_78); lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_70); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; +lean_dec(x_71); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } else { -uint8_t x_79; +uint8_t x_80; lean_dec(x_61); lean_free_object(x_42); lean_dec(x_56); lean_dec(x_2); -x_79 = !lean_is_exclusive(x_68); -if (x_79 == 0) +x_80 = !lean_is_exclusive(x_69); +if (x_80 == 0) { -return x_68; +return x_69; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_68, 0); -x_81 = lean_ctor_get(x_68, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_69, 0); +x_82 = lean_ctor_get(x_69, 1); +lean_inc(x_82); lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_68); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; +lean_dec(x_69); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } } else { -uint8_t x_83; +uint8_t x_84; lean_free_object(x_42); lean_dec(x_56); lean_dec_ref(x_31); @@ -4683,188 +4742,190 @@ lean_dec(x_28); lean_dec(x_12); lean_dec(x_2); lean_dec_ref(x_1); -x_83 = !lean_is_exclusive(x_57); -if (x_83 == 0) +x_84 = !lean_is_exclusive(x_57); +if (x_84 == 0) { return x_57; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_57, 0); -x_85 = lean_ctor_get(x_57, 1); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_57, 0); +x_86 = lean_ctor_get(x_57, 1); +lean_inc(x_86); lean_inc(x_85); -lean_inc(x_84); lean_dec(x_57); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; } } } else { -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_42, 0); -lean_inc(x_87); +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_42, 0); +lean_inc(x_88); lean_dec(x_42); -x_88 = l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_8, x_54); +x_89 = l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_8, x_54); lean_dec_ref(x_8); -if (lean_obj_tag(x_88) == 0) +if (lean_obj_tag(x_89) == 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; lean_object* x_98; lean_object* x_99; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); +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_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); -lean_dec_ref(x_88); -x_91 = lean_ctor_get(x_89, 3); -lean_inc_ref(x_91); -lean_dec(x_89); -x_92 = lean_array_get_size(x_91); -lean_dec_ref(x_91); -x_93 = lean_box(0); -x_94 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9; -x_95 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__18; -lean_inc(x_87); -lean_inc(x_92); -x_96 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_96, 0, x_92); -lean_ctor_set(x_96, 1, x_87); -lean_ctor_set(x_96, 2, x_1); -lean_ctor_set(x_96, 3, x_12); -lean_ctor_set(x_96, 4, x_31); -lean_ctor_set(x_96, 5, x_28); -lean_ctor_set(x_96, 6, x_93); -lean_ctor_set(x_96, 7, x_93); -lean_ctor_set(x_96, 8, x_93); -lean_ctor_set(x_96, 9, x_93); -lean_ctor_set(x_96, 10, x_93); -lean_ctor_set(x_96, 11, x_93); -lean_ctor_set(x_96, 12, x_94); -lean_ctor_set(x_96, 13, x_95); -lean_ctor_set(x_96, 14, x_94); -x_97 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___lam__0), 2, 1); -lean_closure_set(x_97, 0, x_96); -x_98 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; -x_99 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_98, x_97, x_2, x_90); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec_ref(x_99); -lean_inc(x_92); -x_101 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_setCommSemiringId___redArg(x_87, x_92, x_2, x_100); -lean_dec(x_2); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec_ref(x_89); +x_92 = lean_ctor_get(x_90, 3); +lean_inc_ref(x_92); +lean_dec(x_90); +x_93 = lean_array_get_size(x_92); +lean_dec_ref(x_92); +x_94 = lean_box(0); +x_95 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9; +x_96 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__18; +lean_inc(x_93); +x_97 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_97, 0, x_93); +lean_ctor_set(x_97, 1, x_1); +lean_ctor_set(x_97, 2, x_12); +lean_ctor_set(x_97, 3, x_31); +lean_ctor_set(x_97, 4, x_94); +lean_ctor_set(x_97, 5, x_94); +lean_ctor_set(x_97, 6, x_94); +lean_ctor_set(x_97, 7, x_94); +lean_ctor_set(x_97, 8, x_95); +lean_ctor_set(x_97, 9, x_96); +lean_ctor_set(x_97, 10, x_95); +lean_inc(x_88); +x_98 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_88); +lean_ctor_set(x_98, 2, x_28); +lean_ctor_set(x_98, 3, x_94); +lean_ctor_set(x_98, 4, x_94); +x_99 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___lam__0), 2, 1); +lean_closure_set(x_99, 0, x_98); +x_100 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; +x_101 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_100, x_99, x_2, x_91); 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_102; lean_object* x_103; 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; -} else { - lean_dec_ref(x_101); - x_103 = lean_box(0); -} -x_104 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_104, 0, x_92); -if (lean_is_scalar(x_103)) { - x_105 = lean_alloc_ctor(0, 2, 0); -} else { - x_105 = x_103; -} -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_102); -return x_105; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_92); -x_106 = lean_ctor_get(x_101, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_101, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_108 = x_101; -} else { - lean_dec_ref(x_101); - x_108 = lean_box(0); -} -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); -} else { - x_109 = x_108; -} -lean_ctor_set(x_109, 0, x_106); -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_dec(x_92); -lean_dec(x_87); +lean_dec_ref(x_101); +lean_inc(x_93); +x_103 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_setCommSemiringId___redArg(x_88, x_93, x_2, x_102); lean_dec(x_2); -x_110 = lean_ctor_get(x_99, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_99, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_112 = x_99; +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +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_99); - x_112 = lean_box(0); + lean_dec_ref(x_103); + x_105 = lean_box(0); } -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_93); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_112; + x_107 = x_105; } -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_111); -return x_113; +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +return x_107; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_93); +x_108 = lean_ctor_get(x_103, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_103, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_110 = x_103; +} else { + lean_dec_ref(x_103); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); +} else { + x_111 = x_110; +} +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_87); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_93); +lean_dec(x_88); +lean_dec(x_2); +x_112 = lean_ctor_get(x_101, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_101, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_114 = x_101; +} else { + lean_dec_ref(x_101); + x_114 = lean_box(0); +} +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); +} else { + x_115 = x_114; +} +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_88); lean_dec_ref(x_31); lean_dec(x_28); lean_dec(x_12); lean_dec(x_2); lean_dec_ref(x_1); -x_114 = lean_ctor_get(x_88, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_88, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_116 = x_88; +x_116 = lean_ctor_get(x_89, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_89, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_118 = x_89; } else { - lean_dec_ref(x_88); - x_116 = lean_box(0); + lean_dec_ref(x_89); + x_118 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_116; + x_119 = x_118; } -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -return x_117; +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } } @@ -4886,7 +4947,7 @@ return x_41; } else { -uint8_t x_118; +uint8_t x_120; lean_dec_ref(x_31); lean_dec(x_28); lean_dec(x_12); @@ -4899,29 +4960,29 @@ lean_dec_ref(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_118 = !lean_is_exclusive(x_38); -if (x_118 == 0) +x_120 = !lean_is_exclusive(x_38); +if (x_120 == 0) { return x_38; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_38, 0); -x_120 = lean_ctor_get(x_38, 1); -lean_inc(x_120); -lean_inc(x_119); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_38, 0); +x_122 = lean_ctor_get(x_38, 1); +lean_inc(x_122); +lean_inc(x_121); lean_dec(x_38); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -return 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); +return x_123; } } } else { -uint8_t x_122; +uint8_t x_124; lean_dec_ref(x_31); lean_dec(x_28); lean_dec(x_12); @@ -4934,30 +4995,30 @@ lean_dec_ref(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_122 = !lean_is_exclusive(x_35); -if (x_122 == 0) +x_124 = !lean_is_exclusive(x_35); +if (x_124 == 0) { return x_35; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_35, 0); -x_124 = lean_ctor_get(x_35, 1); -lean_inc(x_124); -lean_inc(x_123); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_35, 0); +x_126 = lean_ctor_get(x_35, 1); +lean_inc(x_126); +lean_inc(x_125); lean_dec(x_35); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -return x_125; +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; } } } } else { -uint8_t x_126; +uint8_t x_128; lean_dec_ref(x_16); lean_dec(x_12); lean_dec(x_9); @@ -4969,29 +5030,29 @@ lean_dec_ref(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_126 = !lean_is_exclusive(x_19); -if (x_126 == 0) +x_128 = !lean_is_exclusive(x_19); +if (x_128 == 0) { return x_19; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_19, 0); -x_128 = lean_ctor_get(x_19, 1); -lean_inc(x_128); -lean_inc(x_127); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_19, 0); +x_130 = lean_ctor_get(x_19, 1); +lean_inc(x_130); +lean_inc(x_129); lean_dec(x_19); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } } else { -uint8_t x_130; +uint8_t x_132; lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); @@ -5001,23 +5062,23 @@ lean_dec_ref(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_130 = !lean_is_exclusive(x_11); -if (x_130 == 0) +x_132 = !lean_is_exclusive(x_11); +if (x_132 == 0) { return x_11; } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_11, 0); -x_132 = lean_ctor_get(x_11, 1); -lean_inc(x_132); -lean_inc(x_131); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_11, 0); +x_134 = lean_ctor_get(x_11, 1); +lean_inc(x_134); +lean_inc(x_133); lean_dec(x_11); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -return x_133; +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +return x_135; } } } @@ -5065,7 +5126,7 @@ return x_3; } else { -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_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; x_7 = lean_ctor_get(x_3, 0); x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_3, 2); @@ -5076,6 +5137,12 @@ x_13 = lean_ctor_get(x_3, 6); x_14 = lean_ctor_get(x_3, 7); x_15 = lean_ctor_get(x_3, 8); x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -5087,19 +5154,22 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_3); -x_17 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_11, x_1, x_2); -x_18 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_8); -lean_ctor_set(x_18, 2, x_9); -lean_ctor_set(x_18, 3, x_10); -lean_ctor_set(x_18, 4, x_17); -lean_ctor_set(x_18, 5, x_12); -lean_ctor_set(x_18, 6, x_13); -lean_ctor_set(x_18, 7, x_14); -lean_ctor_set(x_18, 8, x_15); -lean_ctor_set(x_18, 9, x_16); -return x_18; +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_11, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_20); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_17); +lean_ctor_set(x_21, 11, x_18); +lean_ctor_set(x_21, 12, x_19); +return x_21; } } } @@ -5360,6 +5430,809 @@ return x_54; } } } +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 9); +x_5 = lean_array_push(x_4, x_1); +lean_ctor_set(x_2, 9, x_5); +return x_2; +} +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; 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; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 5); +x_12 = lean_ctor_get(x_2, 6); +x_13 = lean_ctor_get(x_2, 7); +x_14 = lean_ctor_get(x_2, 8); +x_15 = lean_ctor_get(x_2, 9); +x_16 = lean_ctor_get(x_2, 10); +x_17 = lean_ctor_get(x_2, 11); +x_18 = lean_ctor_get(x_2, 12); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_19 = lean_array_push(x_15, x_1); +x_20 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_20, 0, x_6); +lean_ctor_set(x_20, 1, x_7); +lean_ctor_set(x_20, 2, x_8); +lean_ctor_set(x_20, 3, x_9); +lean_ctor_set(x_20, 4, x_10); +lean_ctor_set(x_20, 5, x_11); +lean_ctor_set(x_20, 6, x_12); +lean_ctor_set(x_20, 7, x_13); +lean_ctor_set(x_20, 8, x_14); +lean_ctor_set(x_20, 9, x_19); +lean_ctor_set(x_20, 10, x_16); +lean_ctor_set(x_20, 11, x_17); +lean_ctor_set(x_20, 12, x_18); +return x_20; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Semiring", 8, 8); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__0; +x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__1; +x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__0; +x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___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) { +_start: +{ +lean_object* x_8; +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +lean_inc_ref(x_3); +lean_inc_ref(x_1); +x_8 = l_Lean_Meta_getDecLevel(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +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; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec_ref(x_8); +x_11 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__1; +x_12 = lean_box(0); +lean_inc(x_9); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +x_14 = l_Lean_mkConst(x_11, x_13); +lean_inc_ref(x_1); +x_15 = l_Lean_Expr_app___override(x_14, x_1); +lean_inc_ref(x_5); +x_16 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_15, x_3, x_4, x_5, x_6, x_10); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +lean_dec(x_9); +lean_dec_ref(x_5); +lean_dec_ref(x_1); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 0); +lean_dec(x_19); +x_20 = lean_box(0); +lean_ctor_set(x_16, 0, x_20); +return x_16; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_dec(x_16); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_dec_ref(x_16); +x_25 = !lean_is_exclusive(x_17); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_17, 0); +x_27 = l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_5, x_24); +lean_dec_ref(x_5); +if (lean_obj_tag(x_27) == 0) +{ +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; +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_ctor_get(x_28, 9); +lean_inc_ref(x_30); +lean_dec(x_28); +x_31 = lean_array_get_size(x_30); +lean_dec_ref(x_30); +x_32 = lean_box(0); +x_33 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9; +x_34 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__18; +lean_inc(x_31); +x_35 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_35, 0, x_31); +lean_ctor_set(x_35, 1, x_1); +lean_ctor_set(x_35, 2, x_9); +lean_ctor_set(x_35, 3, x_26); +lean_ctor_set(x_35, 4, x_32); +lean_ctor_set(x_35, 5, x_32); +lean_ctor_set(x_35, 6, x_32); +lean_ctor_set(x_35, 7, x_32); +lean_ctor_set(x_35, 8, x_33); +lean_ctor_set(x_35, 9, x_34); +lean_ctor_set(x_35, 10, x_33); +x_36 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___lam__0), 2, 1); +lean_closure_set(x_36, 0, x_35); +x_37 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; +x_38 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_37, x_36, x_2, x_29); +if (lean_obj_tag(x_38) == 0) +{ +uint8_t x_39; +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_17, 0, x_31); +lean_ctor_set(x_38, 0, x_17); +return x_38; +} +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); +lean_ctor_set(x_17, 0, x_31); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_17); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +else +{ +uint8_t x_43; +lean_dec(x_31); +lean_free_object(x_17); +x_43 = !lean_is_exclusive(x_38); +if (x_43 == 0) +{ +return x_38; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_38, 0); +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_38); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +else +{ +uint8_t x_47; +lean_free_object(x_17); +lean_dec(x_26); +lean_dec(x_9); +lean_dec_ref(x_1); +x_47 = !lean_is_exclusive(x_27); +if (x_47 == 0) +{ +return x_27; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_27, 0); +x_49 = lean_ctor_get(x_27, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_27); +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 +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_17, 0); +lean_inc(x_51); +lean_dec(x_17); +x_52 = l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_5, x_24); +lean_dec_ref(x_5); +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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +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 = lean_ctor_get(x_53, 9); +lean_inc_ref(x_55); +lean_dec(x_53); +x_56 = lean_array_get_size(x_55); +lean_dec_ref(x_55); +x_57 = lean_box(0); +x_58 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9; +x_59 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__18; +lean_inc(x_56); +x_60 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_1); +lean_ctor_set(x_60, 2, x_9); +lean_ctor_set(x_60, 3, x_51); +lean_ctor_set(x_60, 4, x_57); +lean_ctor_set(x_60, 5, x_57); +lean_ctor_set(x_60, 6, x_57); +lean_ctor_set(x_60, 7, x_57); +lean_ctor_set(x_60, 8, x_58); +lean_ctor_set(x_60, 9, x_59); +lean_ctor_set(x_60, 10, x_58); +x_61 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___lam__0), 2, 1); +lean_closure_set(x_61, 0, x_60); +x_62 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; +x_63 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_62, x_61, x_2, x_54); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +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_63); + x_65 = lean_box(0); +} +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_56); +if (lean_is_scalar(x_65)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_65; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_64); +return x_67; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_56); +x_68 = lean_ctor_get(x_63, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_63, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_70 = x_63; +} else { + lean_dec_ref(x_63); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_51); +lean_dec(x_9); +lean_dec_ref(x_1); +x_72 = lean_ctor_get(x_52, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_52, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_74 = x_52; +} else { + lean_dec_ref(x_52); + x_74 = lean_box(0); +} +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_74; +} +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_9); +lean_dec_ref(x_5); +lean_dec_ref(x_1); +x_76 = !lean_is_exclusive(x_16); +if (x_76 == 0) +{ +return x_16; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_16, 0); +x_78 = lean_ctor_get(x_16, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_16); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +else +{ +uint8_t x_80; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +x_80 = !lean_is_exclusive(x_8); +if (x_80 == 0) +{ +return x_8; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_8, 0); +x_82 = lean_ctor_get(x_8, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_8); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_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, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg(x_1, x_2, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___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: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 11); +x_6 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_5, x_1, x_2); +lean_ctor_set(x_3, 11, x_6); +return x_3; +} +else +{ +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; +x_7 = lean_ctor_get(x_3, 0); +x_8 = lean_ctor_get(x_3, 1); +x_9 = lean_ctor_get(x_3, 2); +x_10 = lean_ctor_get(x_3, 3); +x_11 = lean_ctor_get(x_3, 4); +x_12 = lean_ctor_get(x_3, 5); +x_13 = lean_ctor_get(x_3, 6); +x_14 = lean_ctor_get(x_3, 7); +x_15 = lean_ctor_get(x_3, 8); +x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_3); +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__3___redArg(x_18, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_17); +lean_ctor_set(x_21, 11, x_20); +lean_ctor_set(x_21, 12, x_19); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(x_2, x_5, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +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; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = lean_ctor_get(x_10, 11); +lean_inc_ref(x_12); +lean_dec(x_10); +x_13 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__0___redArg(x_12, x_1); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +lean_free_object(x_8); +lean_inc_ref(x_1); +x_14 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +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); +lean_inc(x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg___lam__0), 3, 2); +lean_closure_set(x_17, 0, x_1); +lean_closure_set(x_17, 1, x_15); +x_18 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; +x_19 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_18, x_17, x_2, x_16); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_15); +return x_19; +} +else +{ +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_15); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_dec(x_15); +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +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_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_ref(x_1); +return x_14; +} +} +else +{ +lean_object* x_28; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +x_28 = lean_ctor_get(x_13, 0); +lean_inc(x_28); +lean_dec_ref(x_13); +lean_ctor_set(x_8, 0, x_28); +return x_8; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_8, 0); +x_30 = lean_ctor_get(x_8, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_8); +x_31 = lean_ctor_get(x_29, 11); +lean_inc_ref(x_31); +lean_dec(x_29); +x_32 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_spec__0___redArg(x_31, x_1); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; +lean_inc_ref(x_1); +x_33 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_30); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +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_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg___lam__0), 3, 2); +lean_closure_set(x_36, 0, x_1); +lean_closure_set(x_36, 1, x_34); +x_37 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommRingId_x3f_go_x3f___closed__21; +x_38 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_37, x_36, x_2, x_35); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_40 = x_38; +} else { + lean_dec_ref(x_38); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, x_34); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_34); +x_42 = lean_ctor_get(x_38, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_38, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_44 = x_38; +} else { + lean_dec_ref(x_38); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(1, 2, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +} +else +{ +lean_dec_ref(x_1); +return x_33; +} +} +else +{ +lean_object* x_46; lean_object* x_47; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +x_46 = lean_ctor_get(x_32, 0); +lean_inc(x_46); +lean_dec_ref(x_32); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_30); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +x_48 = !lean_is_exclusive(x_8); +if (x_48 == 0) +{ +return x_8; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_8, 0); +x_50 = lean_ctor_get(x_8, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_8); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_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, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg(x_1, x_2, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___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: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingM(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Ring_Field(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Ring_Envelope(uint8_t builtin, lean_object*); @@ -5480,6 +6353,10 @@ l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arit lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__8); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getCommSemiringId_x3f_go_x3f___closed__9); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__0); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_RingId_0__Lean_Meta_Grind_Arith_CommRing_getNonCommSemiringId_x3f_go_x3f___redArg___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingM.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingM.c index 906d1d2b98..d9d35119e0 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingM.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingM.c @@ -220,7 +220,7 @@ x_10 = lean_ctor_get(x_8, 0); x_11 = lean_ctor_get(x_10, 5); lean_inc(x_11); lean_dec(x_10); -x_12 = lean_ctor_get(x_6, 9); +x_12 = lean_ctor_get(x_6, 12); lean_inc(x_12); lean_dec(x_6); x_13 = lean_nat_dec_le(x_11, x_12); @@ -241,7 +241,7 @@ lean_dec(x_8); x_17 = lean_ctor_get(x_15, 5); lean_inc(x_17); lean_dec(x_15); -x_18 = lean_ctor_get(x_6, 9); +x_18 = lean_ctor_get(x_6, 12); lean_inc(x_18); lean_dec(x_6); x_19 = lean_nat_dec_le(x_17, x_18); @@ -345,16 +345,16 @@ x_2 = !lean_is_exclusive(x_1); if (x_2 == 0) { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_1, 9); +x_3 = lean_ctor_get(x_1, 12); x_4 = lean_unsigned_to_nat(1u); x_5 = lean_nat_add(x_3, x_4); lean_dec(x_3); -lean_ctor_set(x_1, 9, x_5); +lean_ctor_set(x_1, 12, x_5); return x_1; } 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; 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_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; x_6 = lean_ctor_get(x_1, 0); x_7 = lean_ctor_get(x_1, 1); x_8 = lean_ctor_get(x_1, 2); @@ -365,6 +365,12 @@ x_12 = lean_ctor_get(x_1, 6); x_13 = lean_ctor_get(x_1, 7); x_14 = lean_ctor_get(x_1, 8); x_15 = lean_ctor_get(x_1, 9); +x_16 = lean_ctor_get(x_1, 10); +x_17 = lean_ctor_get(x_1, 11); +x_18 = lean_ctor_get(x_1, 12); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -376,21 +382,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_dec(x_1); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_15, x_16); -lean_dec(x_15); -x_18 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_18, 0, x_6); -lean_ctor_set(x_18, 1, x_7); -lean_ctor_set(x_18, 2, x_8); -lean_ctor_set(x_18, 3, x_9); -lean_ctor_set(x_18, 4, x_10); -lean_ctor_set(x_18, 5, x_11); -lean_ctor_set(x_18, 6, x_12); -lean_ctor_set(x_18, 7, x_13); -lean_ctor_set(x_18, 8, x_14); -lean_ctor_set(x_18, 9, x_17); -return x_18; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_18, x_19); +lean_dec(x_18); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_6); +lean_ctor_set(x_21, 1, x_7); +lean_ctor_set(x_21, 2, x_8); +lean_ctor_set(x_21, 3, x_9); +lean_ctor_set(x_21, 4, x_10); +lean_ctor_set(x_21, 5, x_11); +lean_ctor_set(x_21, 6, x_12); +lean_ctor_set(x_21, 7, x_13); +lean_ctor_set(x_21, 8, x_14); +lean_ctor_set(x_21, 9, x_15); +lean_ctor_set(x_21, 10, x_16); +lean_ctor_set(x_21, 11, x_17); +lean_ctor_set(x_21, 12, x_20); +return x_21; } } } @@ -942,7 +951,7 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_RingM_modifyCommRing___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +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; uint8_t x_18; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); x_6 = lean_ctor_get(x_3, 2); @@ -953,18 +962,24 @@ x_10 = lean_ctor_get(x_3, 6); x_11 = lean_ctor_get(x_3, 7); x_12 = lean_ctor_get(x_3, 8); x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_4); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_4); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) { lean_dec_ref(x_2); return x_3; } else { -uint8_t x_16; -lean_inc(x_13); +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); lean_inc_ref(x_10); @@ -974,59 +989,68 @@ lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); +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; +x_20 = lean_ctor_get(x_3, 12); lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); +x_21 = lean_ctor_get(x_3, 11); lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); +x_22 = lean_ctor_get(x_3, 10); lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 9); lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 8); lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); +x_25 = lean_ctor_get(x_3, 7); lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); +x_26 = lean_ctor_get(x_3, 6); lean_dec(x_26); -x_27 = lean_array_fget(x_4, x_1); -x_28 = lean_box(0); -x_29 = lean_array_fset(x_4, x_1, x_28); -x_30 = lean_apply_1(x_2, x_27); -x_31 = lean_array_fset(x_29, x_1, x_30); -lean_ctor_set(x_3, 0, x_31); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_4, x_1); +x_34 = lean_box(0); +x_35 = lean_array_fset(x_4, x_1, x_34); +x_36 = lean_apply_1(x_2, x_33); +x_37 = lean_array_fset(x_35, x_1, x_36); +lean_ctor_set(x_3, 0, x_37); return x_3; } else { -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_dec(x_3); -x_32 = lean_array_fget(x_4, x_1); -x_33 = lean_box(0); -x_34 = lean_array_fset(x_4, x_1, x_33); -x_35 = lean_apply_1(x_2, x_32); -x_36 = lean_array_fset(x_34, x_1, x_35); -x_37 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_5); -lean_ctor_set(x_37, 2, x_6); -lean_ctor_set(x_37, 3, x_7); -lean_ctor_set(x_37, 4, x_8); -lean_ctor_set(x_37, 5, x_9); -lean_ctor_set(x_37, 6, x_10); -lean_ctor_set(x_37, 7, x_11); -lean_ctor_set(x_37, 8, x_12); -lean_ctor_set(x_37, 9, x_13); -return x_37; +x_38 = lean_array_fget(x_4, x_1); +x_39 = lean_box(0); +x_40 = lean_array_fset(x_4, x_1, x_39); +x_41 = lean_apply_1(x_2, x_38); +x_42 = lean_array_fset(x_40, x_1, x_41); +x_43 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_5); +lean_ctor_set(x_43, 2, x_6); +lean_ctor_set(x_43, 3, x_7); +lean_ctor_set(x_43, 4, x_8); +lean_ctor_set(x_43, 5, x_9); +lean_ctor_set(x_43, 6, x_10); +lean_ctor_set(x_43, 7, x_11); +lean_ctor_set(x_43, 8, x_12); +lean_ctor_set(x_43, 9, x_13); +lean_ctor_set(x_43, 10, x_14); +lean_ctor_set(x_43, 11, x_15); +lean_ctor_set(x_43, 12, x_16); +return x_43; } } } @@ -5846,7 +5870,7 @@ return x_3; } else { -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_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; x_7 = lean_ctor_get(x_3, 0); x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_3, 2); @@ -5857,6 +5881,12 @@ x_13 = lean_ctor_get(x_3, 6); x_14 = lean_ctor_get(x_3, 7); x_15 = lean_ctor_get(x_3, 8); x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -5868,19 +5898,22 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_3); -x_17 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermRingId_spec__0___redArg(x_9, x_1, x_2); -x_18 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_8); -lean_ctor_set(x_18, 2, x_17); -lean_ctor_set(x_18, 3, x_10); -lean_ctor_set(x_18, 4, x_11); -lean_ctor_set(x_18, 5, x_12); -lean_ctor_set(x_18, 6, x_13); -lean_ctor_set(x_18, 7, x_14); -lean_ctor_set(x_18, 8, x_15); -lean_ctor_set(x_18, 9, x_16); -return x_18; +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermRingId_spec__0___redArg(x_9, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_20); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_17); +lean_ctor_set(x_21, 11, x_18); +lean_ctor_set(x_21, 12, x_19); +return x_21; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/SemiringM.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/SemiringM.c index a54b19aeff..75092a801e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/SemiringM.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/SemiringM.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM -// Imports: Lean.Meta.Tactic.Grind.SynthInstance Lean.Meta.Tactic.Grind.Arith.CommRing.Types Lean.Meta.Tactic.Grind.Arith.CommRing.MonadRing Init.Grind.Ring.CommSemiringAdapter Lean.Meta.Tactic.Grind.Arith.CommRing.DenoteExpr Lean.Meta.Tactic.Grind.Arith.CommRing.Functions +// Imports: Lean.Meta.Tactic.Grind.SynthInstance Lean.Meta.Tactic.Grind.Arith.CommRing.Types Lean.Meta.Tactic.Grind.Arith.CommRing.RingM Lean.Meta.Tactic.Grind.Arith.CommRing.MonadRing Lean.Meta.Tactic.Grind.Arith.CommRing.MonadSemiring Init.Grind.Ring.CommSemiringAdapter Lean.Meta.Tactic.Grind.Arith.CommRing.DenoteExpr Lean.Meta.Tactic.Grind.Arith.CommRing.Functions #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,251 +13,291 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM___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_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__0; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f(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_Grind_Arith_CommRing_setTermSemiringId___lam__0(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___lam__0(lean_object*, lean_object*); lean_object* l_Lean_mkNatLit(lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_object* l_Lean_PersistentHashMap_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__7; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__0; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___lam__0(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__7; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM___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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVar(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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__3; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__1; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__1; +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__0; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___lam__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_run___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_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___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_Grind_Arith_CommRing_getSemiringId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(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_uint64_to_usize(uint64_t); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27(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_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__7___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_Grind_Arith_CommRing_getAddFn_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing(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_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_reportIssue(lean_object*, 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*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__3; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__4; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__2; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; size_t lean_usize_mul(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__6; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__5; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5(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___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring(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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___lam__0(lean_object*, lean_object*); lean_object* lean_array_fget_borrowed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1_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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_run(lean_object*, 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_Grind_instInhabitedGoalM(lean_object*); lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Nat_cast___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__0(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_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_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM; lean_object* l_Lean_stringToMessageData(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_instHashableExprPtr___lam__0___boxed(lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg___closed__0; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4; +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getConfig___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__0; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__0; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__6; lean_object* l_Lean_Level_ofNat(lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___lam__0___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27(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_Grind_Arith_CommRing_getPowFn_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___redArg(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*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8___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_Grind_Arith_CommRing_getSemiringId___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___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_Grind_Arith_CommRing_getTermSemiringId_x3f(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_Grind_Arith_CommRing_getMulFn_x27(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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__5; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3(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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__0; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_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_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8(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_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__2___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3(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_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__2; lean_object* lean_nat_to_int(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__0; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__8; +static lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5_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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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*); static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0___redArg___closed__0; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_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* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__2___redArg___boxed(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_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_Context_ctorIdx___boxed(lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__6; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__4___lam__0(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM___closed__1; extern lean_object* l_Lean_Meta_Grind_Arith_CommRing_ringExt; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing(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_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__0; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__0; lean_object* l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVar___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__3; lean_object* l_Lean_PersistentArray_push___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiring___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_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__4(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_Grind_Arith_CommRing_getAddFn_x27___closed__9; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__6; -LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__2; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f___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_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__5; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__4; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__2; +lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___redArg(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_Grind_Arith_CommRing_SemiringM_getCommSemiring(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_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___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_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6___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_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__2; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__3; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_instBEqExprPtr___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__3; lean_object* lean_usize_to_nat(size_t); -LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___lam__0(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__3(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_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_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_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__3(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_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__0; uint8_t l___private_Lean_Meta_Tactic_Grind_ExprPtr_0__Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6(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_Grind_Arith_CommRing_instMonadCanonSemiringM___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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_get_x21___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; lean_object* l_outOfBounds___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVar___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiringId(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_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__10; -LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_SolverExtension_markTerm(lean_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_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___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_fget(lean_object*, lean_object*); lean_object* lean_nat_abs(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_Meta_Grind_Arith_CommRing_modifySemiring(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_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing___lam__0(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__5; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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* l_Lean_PersistentHashMap_mkCollisionNode___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__3; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10(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_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__1; lean_object* l_Lean_mkRawNatLit(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_cast___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__4(lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__0; lean_object* l_Lean_indentExpr(lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__1; lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr(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_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___closed__0; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__1; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___lam__0___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_int_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__5; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__1; +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__7; extern lean_object* l_Lean_Nat_mkType; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_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_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__3; lean_object* l_Lean_Meta_Grind_Arith_CommRing_checkInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_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_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__7(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_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing___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_Grind_Arith_CommRing_SemiringM_modifyCommRing___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f(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_Grind_Arith_CommRing_setTermSemiringId(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_Grind_Arith_CommRing_mkSVarCore___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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* l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___lam__0___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM___closed__0; size_t lean_usize_add(size_t, size_t); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__1; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5(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_Grind_Arith_CommRing_getSemiring(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_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5___lam__0(lean_object*, lean_object*); +lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__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_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__7___lam__0(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__0; lean_object* l_Lean_Name_mkStr1(lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__4; lean_object* l_Lean_Meta_Grind_shareCommon___redArg(lean_object*, lean_object*, lean_object*); 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_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_Context_ctorIdx(lean_object*); lean_object* l_Lean_Meta_Grind_SolverExtension_markTerm___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_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___lam__0(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__1(lean_object*, lean_object*, lean_object*); lean_object* lean_grind_canon(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*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__4(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_Grind_Arith_CommRing_getAddRightCancelInst_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f___boxed(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(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27(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_Grind_Arith_CommRing_getNatCastFn_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___lam__0___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_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_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__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_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_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_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__6; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___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_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Meta_Grind_hashPtrExpr_unsafe__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0_spec__0(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_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteAsRingExpr(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_Grind_Arith_CommRing_SemiringM_Context_ctorIdx(lean_object* x_1) { _start: { @@ -327,7 +367,74 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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) { +_start: +{ +lean_object* x_12; +lean_inc(x_6); +x_12 = lean_grind_canon(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 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_inc(x_14); +lean_dec_ref(x_12); +x_15 = l_Lean_Meta_Grind_shareCommon___redArg(x_13, x_6, x_14); +lean_dec(x_6); +return x_15; +} +else +{ +lean_dec(x_6); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__0___boxed), 11, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__1___boxed), 11, 0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__1(x_1, x_2, x_3, 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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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) { _start: { lean_object* x_7; uint8_t x_8; @@ -444,12 +551,12 @@ return x_38; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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) { _start: { lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = lean_ctor_get(x_4, 5); -x_8 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); +x_8 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); x_9 = !lean_is_exclusive(x_8); if (x_9 == 0) { @@ -482,15 +589,15 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(x_2, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(x_2, x_8, x_9, x_10, x_11, x_12); return x_13; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__0() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__0() { _start: { lean_object* x_1; @@ -498,16 +605,16 @@ x_1 = lean_mk_string_unchecked("`grind` internal error, invalid semiringId", 42, return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__0; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__0; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiring(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_Grind_Arith_CommRing_SemiringM_getCommSemiring(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; @@ -532,8 +639,8 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; lean_dec_ref(x_15); lean_free_object(x_11); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__1; -x_19 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(x_18, x_6, x_7, x_8, x_9, x_14); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__1; +x_19 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(x_18, x_6, x_7, x_8, x_9, x_14); return x_19; } else @@ -563,8 +670,8 @@ if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_dec_ref(x_23); -x_26 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__1; -x_27 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(x_26, x_6, x_7, x_8, x_9, x_22); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__1; +x_27 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(x_26, x_6, x_7, x_8, x_9, x_22); return x_27; } else @@ -603,11 +710,11 @@ return x_33; } } } -LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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) { _start: { lean_object* x_7; -x_7 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); @@ -615,11 +722,11 @@ lean_dec_ref(x_2); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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) { _start: { lean_object* x_7; -x_7 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); @@ -627,11 +734,11 @@ lean_dec_ref(x_2); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_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) { +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_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) { _start: { lean_object* x_13; -x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__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 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__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); lean_dec(x_11); lean_dec_ref(x_10); lean_dec(x_9); @@ -644,11 +751,11 @@ lean_dec(x_3); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getSemiring___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_Grind_Arith_CommRing_SemiringM_getCommSemiring___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); @@ -661,10 +768,10 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +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; uint8_t x_18; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); x_6 = lean_ctor_get(x_3, 2); @@ -675,18 +782,24 @@ x_10 = lean_ctor_get(x_3, 6); x_11 = lean_ctor_get(x_3, 7); x_12 = lean_ctor_get(x_3, 8); x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_7); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) { lean_dec_ref(x_2); return x_3; } else { -uint8_t x_16; -lean_inc(x_13); +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); lean_inc_ref(x_10); @@ -696,64 +809,73 @@ lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); +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; +x_20 = lean_ctor_get(x_3, 12); lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); +x_21 = lean_ctor_get(x_3, 11); lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); +x_22 = lean_ctor_get(x_3, 10); lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 9); lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 8); lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); +x_25 = lean_ctor_get(x_3, 7); lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); +x_26 = lean_ctor_get(x_3, 6); lean_dec(x_26); -x_27 = lean_array_fget(x_7, x_1); -x_28 = lean_box(0); -x_29 = lean_array_fset(x_7, x_1, x_28); -x_30 = lean_apply_1(x_2, x_27); -x_31 = lean_array_fset(x_29, x_1, x_30); -lean_ctor_set(x_3, 3, x_31); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = lean_box(0); +x_35 = lean_array_fset(x_7, x_1, x_34); +x_36 = lean_apply_1(x_2, x_33); +x_37 = lean_array_fset(x_35, x_1, x_36); +lean_ctor_set(x_3, 3, x_37); return x_3; } else { -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_dec(x_3); -x_32 = lean_array_fget(x_7, x_1); -x_33 = lean_box(0); -x_34 = lean_array_fset(x_7, x_1, x_33); -x_35 = lean_apply_1(x_2, x_32); -x_36 = lean_array_fset(x_34, x_1, x_35); -x_37 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_37, 0, x_4); -lean_ctor_set(x_37, 1, x_5); -lean_ctor_set(x_37, 2, x_6); -lean_ctor_set(x_37, 3, x_36); -lean_ctor_set(x_37, 4, x_8); -lean_ctor_set(x_37, 5, x_9); -lean_ctor_set(x_37, 6, x_10); -lean_ctor_set(x_37, 7, x_11); -lean_ctor_set(x_37, 8, x_12); -lean_ctor_set(x_37, 9, x_13); -return x_37; +x_38 = lean_array_fget(x_7, x_1); +x_39 = lean_box(0); +x_40 = lean_array_fset(x_7, x_1, x_39); +x_41 = lean_apply_1(x_2, x_38); +x_42 = lean_array_fset(x_40, x_1, x_41); +x_43 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_43, 0, x_4); +lean_ctor_set(x_43, 1, x_5); +lean_ctor_set(x_43, 2, x_6); +lean_ctor_set(x_43, 3, x_42); +lean_ctor_set(x_43, 4, x_8); +lean_ctor_set(x_43, 5, x_9); +lean_ctor_set(x_43, 6, x_10); +lean_ctor_set(x_43, 7, x_11); +lean_ctor_set(x_43, 8, x_12); +lean_ctor_set(x_43, 9, x_13); +lean_ctor_set(x_43, 10, x_14); +lean_ctor_set(x_43, 11, x_15); +lean_ctor_set(x_43, 12, x_16); +return x_43; } } } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0() { _start: { lean_object* x_1; @@ -761,53 +883,53 @@ x_1 = l_Lean_Meta_Grind_Arith_CommRing_ringExt; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___lam__0___boxed), 3, 2); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___lam__0___boxed), 3, 2); lean_closure_set(x_5, 0, x_2); lean_closure_set(x_5, 1, x_1); -x_6 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; +x_6 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; x_7 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_6, x_5, x_3, x_4); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring(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_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring(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; lean_object* x_13; lean_object* x_14; -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___lam__0___boxed), 3, 2); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___lam__0___boxed), 3, 2); lean_closure_set(x_12, 0, x_2); lean_closure_set(x_12, 1, x_1); -x_13 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; +x_13 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; x_14 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_13, x_12, x_3, x_11); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___lam__0(x_1, x_2, x_3); +x_4 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___lam__0(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___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_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___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_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -819,71 +941,32 @@ lean_dec(x_3); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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) { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__0() { _start: { -lean_object* x_12; -lean_inc(x_6); -x_12 = lean_grind_canon(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 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_inc(x_14); -lean_dec_ref(x_12); -x_15 = l_Lean_Meta_Grind_shareCommon___redArg(x_13, x_6, x_14); -lean_dec(x_6); -return x_15; -} -else -{ -lean_dec(x_6); -return x_12; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___boxed), 11, 0); +return x_1; } } -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_7, x_8, x_9, x_10, x_11); -return x_12; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__0___boxed), 11, 0); -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__1___boxed), 11, 0); +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__0; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___boxed), 10, 0); x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +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_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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) { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM() { _start: { -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___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) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM___lam__1(x_1, x_2, x_3, 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); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_12; +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__0() { @@ -916,7 +999,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_14 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; @@ -942,7 +1025,7 @@ lean_dec_ref(x_19); lean_dec(x_18); lean_free_object(x_14); x_22 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__1; -x_23 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(x_22, x_6, x_7, x_8, x_9, x_17); +x_23 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(x_22, x_6, x_7, x_8, x_9, x_17); return x_23; } else @@ -978,7 +1061,7 @@ lean_object* x_31; lean_object* x_32; lean_dec_ref(x_28); lean_dec(x_27); x_31 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__1; -x_32 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(x_31, x_6, x_7, x_8, x_9, x_26); +x_32 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(x_31, x_6, x_7, x_8, x_9, x_26); return x_32; } else @@ -1062,7 +1145,7 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +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; uint8_t x_18; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); x_6 = lean_ctor_get(x_3, 2); @@ -1073,18 +1156,24 @@ x_10 = lean_ctor_get(x_3, 6); x_11 = lean_ctor_get(x_3, 7); x_12 = lean_ctor_get(x_3, 8); x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_4); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_4); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) { lean_dec_ref(x_2); return x_3; } else { -uint8_t x_16; -lean_inc(x_13); +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); lean_inc_ref(x_10); @@ -1094,59 +1183,68 @@ lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); +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; +x_20 = lean_ctor_get(x_3, 12); lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); +x_21 = lean_ctor_get(x_3, 11); lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); +x_22 = lean_ctor_get(x_3, 10); lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 9); lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 8); lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); +x_25 = lean_ctor_get(x_3, 7); lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); +x_26 = lean_ctor_get(x_3, 6); lean_dec(x_26); -x_27 = lean_array_fget(x_4, x_1); -x_28 = lean_box(0); -x_29 = lean_array_fset(x_4, x_1, x_28); -x_30 = lean_apply_1(x_2, x_27); -x_31 = lean_array_fset(x_29, x_1, x_30); -lean_ctor_set(x_3, 0, x_31); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); +lean_dec(x_29); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_4, x_1); +x_34 = lean_box(0); +x_35 = lean_array_fset(x_4, x_1, x_34); +x_36 = lean_apply_1(x_2, x_33); +x_37 = lean_array_fset(x_35, x_1, x_36); +lean_ctor_set(x_3, 0, x_37); return x_3; } else { -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_dec(x_3); -x_32 = lean_array_fget(x_4, x_1); -x_33 = lean_box(0); -x_34 = lean_array_fset(x_4, x_1, x_33); -x_35 = lean_apply_1(x_2, x_32); -x_36 = lean_array_fset(x_34, x_1, x_35); -x_37 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_5); -lean_ctor_set(x_37, 2, x_6); -lean_ctor_set(x_37, 3, x_7); -lean_ctor_set(x_37, 4, x_8); -lean_ctor_set(x_37, 5, x_9); -lean_ctor_set(x_37, 6, x_10); -lean_ctor_set(x_37, 7, x_11); -lean_ctor_set(x_37, 8, x_12); -lean_ctor_set(x_37, 9, x_13); -return x_37; +x_38 = lean_array_fget(x_4, x_1); +x_39 = lean_box(0); +x_40 = lean_array_fset(x_4, x_1, x_39); +x_41 = lean_apply_1(x_2, x_38); +x_42 = lean_array_fset(x_40, x_1, x_41); +x_43 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_5); +lean_ctor_set(x_43, 2, x_6); +lean_ctor_set(x_43, 3, x_7); +lean_ctor_set(x_43, 4, x_8); +lean_ctor_set(x_43, 5, x_9); +lean_ctor_set(x_43, 6, x_10); +lean_ctor_set(x_43, 7, x_11); +lean_ctor_set(x_43, 8, x_12); +lean_ctor_set(x_43, 9, x_13); +lean_ctor_set(x_43, 10, x_14); +lean_ctor_set(x_43, 11, x_15); +lean_ctor_set(x_43, 12, x_16); +return x_43; } } } @@ -1155,7 +1253,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRi _start: { lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -1170,7 +1268,7 @@ lean_dec(x_13); x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing___lam__0___boxed), 3, 2); lean_closure_set(x_16, 0, x_15); lean_closure_set(x_16, 1, x_1); -x_17 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; +x_17 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; x_18 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_17, x_16, x_3, x_14); return x_18; } @@ -1253,2546 +1351,10 @@ x_1 = l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM___closed__1; return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("`grind` failed to find instance", 31, 31); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__0; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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) { -_start: -{ -lean_object* x_7; -lean_inc(x_5); -lean_inc_ref(x_4); -lean_inc(x_3); -lean_inc_ref(x_2); -lean_inc_ref(x_1); -x_7 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec_ref(x_7); -x_10 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__1; -x_11 = l_Lean_indentExpr(x_1); -x_12 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_getSemiring_spec__0___redArg(x_12, x_2, x_3, x_4, x_5, x_9); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -return x_13; -} -else -{ -uint8_t x_14; -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_14 = !lean_is_exclusive(x_7); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_7, 0); -lean_dec(x_15); -x_16 = lean_ctor_get(x_8, 0); -lean_inc(x_16); -lean_dec_ref(x_8); -lean_ctor_set(x_7, 0, x_16); -return x_7; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_7, 1); -lean_inc(x_17); -lean_dec(x_7); -x_18 = lean_ctor_get(x_8, 0); -lean_inc(x_18); -lean_dec_ref(x_8); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} -} -} -else -{ -uint8_t x_20; -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_20 = !lean_is_exclusive(x_7); -if (x_20 == 0) -{ -return x_7; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_7, 0); -x_22 = lean_ctor_get(x_7, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_7); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg(x_1, x_7, x_8, x_9, x_10, x_11); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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_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; -x_16 = lean_box(0); -lean_inc(x_2); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_16); -lean_inc(x_2); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_2); -lean_ctor_set(x_18, 1, x_17); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_2); -lean_ctor_set(x_19, 1, x_18); -lean_inc_ref(x_19); -x_20 = l_Lean_mkConst(x_3, x_19); -lean_inc_ref_n(x_1, 3); -x_21 = l_Lean_mkApp3(x_20, x_1, x_1, x_1); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_22 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg(x_21, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec_ref(x_22); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_23); -lean_inc(x_4); -x_25 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_4, x_23, x_5, x_11, x_12, x_13, x_14, x_24); -if (lean_obj_tag(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_25, 1); -lean_inc(x_26); -lean_dec_ref(x_25); -x_27 = l_Lean_mkConst(x_4, x_19); -lean_inc_ref_n(x_1, 2); -x_28 = l_Lean_mkApp4(x_27, x_1, x_1, x_1, x_23); -lean_inc(x_10); -x_29 = lean_grind_canon(x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -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_Meta_Grind_shareCommon___redArg(x_30, x_10, x_31); -lean_dec(x_10); -return x_32; -} -else -{ -lean_dec(x_10); -return x_29; -} -} -else -{ -uint8_t x_33; -lean_dec(x_23); -lean_dec_ref(x_19); -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_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec_ref(x_1); -x_33 = !lean_is_exclusive(x_25); -if (x_33 == 0) -{ -return x_25; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_25, 0); -x_35 = lean_ctor_get(x_25, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_25); -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; -} -} -} -else -{ -lean_dec_ref(x_19); -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_8); -lean_dec(x_7); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_1); -return x_22; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_4 = lean_ctor_get(x_3, 0); -x_5 = lean_ctor_get(x_3, 1); -x_6 = lean_ctor_get(x_3, 2); -x_7 = lean_ctor_get(x_3, 3); -x_8 = lean_ctor_get(x_3, 4); -x_9 = lean_ctor_get(x_3, 5); -x_10 = lean_ctor_get(x_3, 6); -x_11 = lean_ctor_get(x_3, 7); -x_12 = lean_ctor_get(x_3, 8); -x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_7); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -lean_dec_ref(x_2); -return x_3; -} -else -{ -uint8_t x_16; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_10); -lean_inc_ref(x_9); -lean_inc_ref(x_8); -lean_inc_ref(x_7); -lean_inc_ref(x_6); -lean_inc_ref(x_5); -lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); -lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); -lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); -lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); -lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); -lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); -lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); -lean_dec(x_26); -x_27 = lean_array_fget(x_7, x_1); -x_28 = !lean_is_exclusive(x_27); -if (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_27, 8); -lean_dec(x_29); -x_30 = lean_box(0); -x_31 = lean_array_fset(x_7, x_1, x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_27, 8, x_32); -x_33 = lean_array_fset(x_31, x_1, x_27); -lean_ctor_set(x_3, 3, x_33); -return x_3; -} -else -{ -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; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -x_36 = lean_ctor_get(x_27, 2); -x_37 = lean_ctor_get(x_27, 3); -x_38 = lean_ctor_get(x_27, 4); -x_39 = lean_ctor_get(x_27, 5); -x_40 = lean_ctor_get(x_27, 6); -x_41 = lean_ctor_get(x_27, 7); -x_42 = lean_ctor_get(x_27, 9); -x_43 = lean_ctor_get(x_27, 10); -x_44 = lean_ctor_get(x_27, 11); -x_45 = lean_ctor_get(x_27, 12); -x_46 = lean_ctor_get(x_27, 13); -x_47 = lean_ctor_get(x_27, 14); -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_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -x_48 = lean_box(0); -x_49 = lean_array_fset(x_7, x_1, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_2); -x_51 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_35); -lean_ctor_set(x_51, 2, x_36); -lean_ctor_set(x_51, 3, x_37); -lean_ctor_set(x_51, 4, x_38); -lean_ctor_set(x_51, 5, x_39); -lean_ctor_set(x_51, 6, x_40); -lean_ctor_set(x_51, 7, x_41); -lean_ctor_set(x_51, 8, x_50); -lean_ctor_set(x_51, 9, x_42); -lean_ctor_set(x_51, 10, x_43); -lean_ctor_set(x_51, 11, x_44); -lean_ctor_set(x_51, 12, x_45); -lean_ctor_set(x_51, 13, x_46); -lean_ctor_set(x_51, 14, x_47); -x_52 = lean_array_fset(x_49, x_1, x_51); -lean_ctor_set(x_3, 3, x_52); -return x_3; -} -} -else -{ -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_dec(x_3); -x_53 = lean_array_fget(x_7, x_1); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 2); -lean_inc_ref(x_56); -x_57 = lean_ctor_get(x_53, 3); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 4); -lean_inc_ref(x_58); -x_59 = lean_ctor_get(x_53, 5); -lean_inc_ref(x_59); -x_60 = lean_ctor_get(x_53, 6); -lean_inc(x_60); -x_61 = lean_ctor_get(x_53, 7); -lean_inc(x_61); -x_62 = lean_ctor_get(x_53, 9); -lean_inc(x_62); -x_63 = lean_ctor_get(x_53, 10); -lean_inc(x_63); -x_64 = lean_ctor_get(x_53, 11); -lean_inc(x_64); -x_65 = lean_ctor_get(x_53, 12); -lean_inc_ref(x_65); -x_66 = lean_ctor_get(x_53, 13); -lean_inc_ref(x_66); -x_67 = lean_ctor_get(x_53, 14); -lean_inc_ref(x_67); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - lean_ctor_release(x_53, 2); - lean_ctor_release(x_53, 3); - lean_ctor_release(x_53, 4); - lean_ctor_release(x_53, 5); - lean_ctor_release(x_53, 6); - lean_ctor_release(x_53, 7); - lean_ctor_release(x_53, 8); - lean_ctor_release(x_53, 9); - lean_ctor_release(x_53, 10); - lean_ctor_release(x_53, 11); - lean_ctor_release(x_53, 12); - lean_ctor_release(x_53, 13); - lean_ctor_release(x_53, 14); - x_68 = x_53; -} else { - lean_dec_ref(x_53); - x_68 = lean_box(0); -} -x_69 = lean_box(0); -x_70 = lean_array_fset(x_7, x_1, x_69); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_2); -if (lean_is_scalar(x_68)) { - x_72 = lean_alloc_ctor(0, 15, 0); -} else { - x_72 = x_68; -} -lean_ctor_set(x_72, 0, x_54); -lean_ctor_set(x_72, 1, x_55); -lean_ctor_set(x_72, 2, x_56); -lean_ctor_set(x_72, 3, x_57); -lean_ctor_set(x_72, 4, x_58); -lean_ctor_set(x_72, 5, x_59); -lean_ctor_set(x_72, 6, x_60); -lean_ctor_set(x_72, 7, x_61); -lean_ctor_set(x_72, 8, x_71); -lean_ctor_set(x_72, 9, x_62); -lean_ctor_set(x_72, 10, x_63); -lean_ctor_set(x_72, 11, x_64); -lean_ctor_set(x_72, 12, x_65); -lean_ctor_set(x_72, 13, x_66); -lean_ctor_set(x_72, 14, x_67); -x_73 = lean_array_fset(x_70, x_1, x_72); -x_74 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_74, 0, x_4); -lean_ctor_set(x_74, 1, x_5); -lean_ctor_set(x_74, 2, x_6); -lean_ctor_set(x_74, 3, x_73); -lean_ctor_set(x_74, 4, x_8); -lean_ctor_set(x_74, 5, x_9); -lean_ctor_set(x_74, 6, x_10); -lean_ctor_set(x_74, 7, x_11); -lean_ctor_set(x_74, 8, x_12); -lean_ctor_set(x_74, 9, x_13); -return x_74; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("instHAdd", 8, 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__0; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Grind", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Semiring", 8, 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("toAdd", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___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_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__5; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___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_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("HAdd", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__7; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("hAdd", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__9; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__7; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 8); -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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec_ref(x_11); -x_15 = lean_ctor_get(x_12, 2); -lean_inc_ref(x_15); -x_16 = lean_ctor_get(x_12, 3); -lean_inc(x_16); -x_17 = lean_ctor_get(x_12, 4); -lean_inc_ref(x_17); -lean_dec(x_12); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__1; -x_19 = lean_box(0); -lean_inc(x_16); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_16); -lean_ctor_set(x_20, 1, x_19); -lean_inc_ref(x_20); -x_21 = l_Lean_mkConst(x_18, x_20); -x_22 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__6; -x_23 = l_Lean_mkConst(x_22, x_20); -lean_inc_ref(x_15); -x_24 = l_Lean_mkAppB(x_23, x_15, x_17); -lean_inc_ref(x_15); -x_25 = l_Lean_mkAppB(x_21, x_15, x_24); -x_26 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__8; -x_27 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__10; -lean_inc(x_2); -x_28 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0(x_15, x_16, x_26, x_27, x_25, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -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); -lean_inc(x_29); -x_31 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___lam__0___boxed), 3, 2); -lean_closure_set(x_31, 0, x_1); -lean_closure_set(x_31, 1, x_29); -x_32 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -x_33 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_32, x_31, x_2, x_30); -lean_dec(x_2); -if (lean_obj_tag(x_33) == 0) -{ -uint8_t x_34; -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(x_33, 0, x_29); -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(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_38; -lean_dec(x_29); -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) -{ -return x_33; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_33); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -lean_dec(x_2); -lean_dec(x_1); -return x_28; -} -} -else -{ -uint8_t x_42; -lean_inc_ref(x_13); -lean_dec(x_12); -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_42 = !lean_is_exclusive(x_11); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_11, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_13, 0); -lean_inc(x_44); -lean_dec_ref(x_13); -lean_ctor_set(x_11, 0, x_44); -return x_11; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_11, 1); -lean_inc(x_45); -lean_dec(x_11); -x_46 = lean_ctor_get(x_13, 0); -lean_inc(x_46); -lean_dec_ref(x_13); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_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_3); -lean_dec(x_2); -lean_dec(x_1); -x_48 = !lean_is_exclusive(x_11); -if (x_48 == 0) -{ -return x_11; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_11, 0); -x_50 = lean_ctor_get(x_11, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_11); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0(x_1, x_2, x_3, 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); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; -x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__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); -lean_dec(x_6); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___lam__0(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_4 = lean_ctor_get(x_3, 0); -x_5 = lean_ctor_get(x_3, 1); -x_6 = lean_ctor_get(x_3, 2); -x_7 = lean_ctor_get(x_3, 3); -x_8 = lean_ctor_get(x_3, 4); -x_9 = lean_ctor_get(x_3, 5); -x_10 = lean_ctor_get(x_3, 6); -x_11 = lean_ctor_get(x_3, 7); -x_12 = lean_ctor_get(x_3, 8); -x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_7); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -lean_dec_ref(x_2); -return x_3; -} -else -{ -uint8_t x_16; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_10); -lean_inc_ref(x_9); -lean_inc_ref(x_8); -lean_inc_ref(x_7); -lean_inc_ref(x_6); -lean_inc_ref(x_5); -lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); -lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); -lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); -lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); -lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); -lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); -lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); -lean_dec(x_26); -x_27 = lean_array_fget(x_7, x_1); -x_28 = !lean_is_exclusive(x_27); -if (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_27, 9); -lean_dec(x_29); -x_30 = lean_box(0); -x_31 = lean_array_fset(x_7, x_1, x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_27, 9, x_32); -x_33 = lean_array_fset(x_31, x_1, x_27); -lean_ctor_set(x_3, 3, x_33); -return x_3; -} -else -{ -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; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -x_36 = lean_ctor_get(x_27, 2); -x_37 = lean_ctor_get(x_27, 3); -x_38 = lean_ctor_get(x_27, 4); -x_39 = lean_ctor_get(x_27, 5); -x_40 = lean_ctor_get(x_27, 6); -x_41 = lean_ctor_get(x_27, 7); -x_42 = lean_ctor_get(x_27, 8); -x_43 = lean_ctor_get(x_27, 10); -x_44 = lean_ctor_get(x_27, 11); -x_45 = lean_ctor_get(x_27, 12); -x_46 = lean_ctor_get(x_27, 13); -x_47 = lean_ctor_get(x_27, 14); -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_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -x_48 = lean_box(0); -x_49 = lean_array_fset(x_7, x_1, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_2); -x_51 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_35); -lean_ctor_set(x_51, 2, x_36); -lean_ctor_set(x_51, 3, x_37); -lean_ctor_set(x_51, 4, x_38); -lean_ctor_set(x_51, 5, x_39); -lean_ctor_set(x_51, 6, x_40); -lean_ctor_set(x_51, 7, x_41); -lean_ctor_set(x_51, 8, x_42); -lean_ctor_set(x_51, 9, x_50); -lean_ctor_set(x_51, 10, x_43); -lean_ctor_set(x_51, 11, x_44); -lean_ctor_set(x_51, 12, x_45); -lean_ctor_set(x_51, 13, x_46); -lean_ctor_set(x_51, 14, x_47); -x_52 = lean_array_fset(x_49, x_1, x_51); -lean_ctor_set(x_3, 3, x_52); -return x_3; -} -} -else -{ -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_dec(x_3); -x_53 = lean_array_fget(x_7, x_1); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 2); -lean_inc_ref(x_56); -x_57 = lean_ctor_get(x_53, 3); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 4); -lean_inc_ref(x_58); -x_59 = lean_ctor_get(x_53, 5); -lean_inc_ref(x_59); -x_60 = lean_ctor_get(x_53, 6); -lean_inc(x_60); -x_61 = lean_ctor_get(x_53, 7); -lean_inc(x_61); -x_62 = lean_ctor_get(x_53, 8); -lean_inc(x_62); -x_63 = lean_ctor_get(x_53, 10); -lean_inc(x_63); -x_64 = lean_ctor_get(x_53, 11); -lean_inc(x_64); -x_65 = lean_ctor_get(x_53, 12); -lean_inc_ref(x_65); -x_66 = lean_ctor_get(x_53, 13); -lean_inc_ref(x_66); -x_67 = lean_ctor_get(x_53, 14); -lean_inc_ref(x_67); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - lean_ctor_release(x_53, 2); - lean_ctor_release(x_53, 3); - lean_ctor_release(x_53, 4); - lean_ctor_release(x_53, 5); - lean_ctor_release(x_53, 6); - lean_ctor_release(x_53, 7); - lean_ctor_release(x_53, 8); - lean_ctor_release(x_53, 9); - lean_ctor_release(x_53, 10); - lean_ctor_release(x_53, 11); - lean_ctor_release(x_53, 12); - lean_ctor_release(x_53, 13); - lean_ctor_release(x_53, 14); - x_68 = x_53; -} else { - lean_dec_ref(x_53); - x_68 = lean_box(0); -} -x_69 = lean_box(0); -x_70 = lean_array_fset(x_7, x_1, x_69); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_2); -if (lean_is_scalar(x_68)) { - x_72 = lean_alloc_ctor(0, 15, 0); -} else { - x_72 = x_68; -} -lean_ctor_set(x_72, 0, x_54); -lean_ctor_set(x_72, 1, x_55); -lean_ctor_set(x_72, 2, x_56); -lean_ctor_set(x_72, 3, x_57); -lean_ctor_set(x_72, 4, x_58); -lean_ctor_set(x_72, 5, x_59); -lean_ctor_set(x_72, 6, x_60); -lean_ctor_set(x_72, 7, x_61); -lean_ctor_set(x_72, 8, x_62); -lean_ctor_set(x_72, 9, x_71); -lean_ctor_set(x_72, 10, x_63); -lean_ctor_set(x_72, 11, x_64); -lean_ctor_set(x_72, 12, x_65); -lean_ctor_set(x_72, 13, x_66); -lean_ctor_set(x_72, 14, x_67); -x_73 = lean_array_fset(x_70, x_1, x_72); -x_74 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_74, 0, x_4); -lean_ctor_set(x_74, 1, x_5); -lean_ctor_set(x_74, 2, x_6); -lean_ctor_set(x_74, 3, x_73); -lean_ctor_set(x_74, 4, x_8); -lean_ctor_set(x_74, 5, x_9); -lean_ctor_set(x_74, 6, x_10); -lean_ctor_set(x_74, 7, x_11); -lean_ctor_set(x_74, 8, x_12); -lean_ctor_set(x_74, 9, x_13); -return x_74; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("instHMul", 8, 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__0; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("toMul", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__3() { -_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_Grind_Arith_CommRing_getMulFn_x27___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___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_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("HMul", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__4; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("hMul", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__6; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__4; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 9); -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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec_ref(x_11); -x_15 = lean_ctor_get(x_12, 2); -lean_inc_ref(x_15); -x_16 = lean_ctor_get(x_12, 3); -lean_inc(x_16); -x_17 = lean_ctor_get(x_12, 4); -lean_inc_ref(x_17); -lean_dec(x_12); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__1; -x_19 = lean_box(0); -lean_inc(x_16); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_16); -lean_ctor_set(x_20, 1, x_19); -lean_inc_ref(x_20); -x_21 = l_Lean_mkConst(x_18, x_20); -x_22 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__3; -x_23 = l_Lean_mkConst(x_22, x_20); -lean_inc_ref(x_15); -x_24 = l_Lean_mkAppB(x_23, x_15, x_17); -lean_inc_ref(x_15); -x_25 = l_Lean_mkAppB(x_21, x_15, x_24); -x_26 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__5; -x_27 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__7; -lean_inc(x_2); -x_28 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0(x_15, x_16, x_26, x_27, x_25, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -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); -lean_inc(x_29); -x_31 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___lam__0___boxed), 3, 2); -lean_closure_set(x_31, 0, x_1); -lean_closure_set(x_31, 1, x_29); -x_32 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -x_33 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_32, x_31, x_2, x_30); -lean_dec(x_2); -if (lean_obj_tag(x_33) == 0) -{ -uint8_t x_34; -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(x_33, 0, x_29); -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(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_38; -lean_dec(x_29); -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) -{ -return x_33; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_33); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -lean_dec(x_2); -lean_dec(x_1); -return x_28; -} -} -else -{ -uint8_t x_42; -lean_inc_ref(x_13); -lean_dec(x_12); -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_42 = !lean_is_exclusive(x_11); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_11, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_13, 0); -lean_inc(x_44); -lean_dec_ref(x_13); -lean_ctor_set(x_11, 0, x_44); -return x_11; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_11, 1); -lean_inc(x_45); -lean_dec(x_11); -x_46 = lean_ctor_get(x_13, 0); -lean_inc(x_46); -lean_dec_ref(x_13); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_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_3); -lean_dec(x_2); -lean_dec(x_1); -x_48 = !lean_is_exclusive(x_11); -if (x_48 == 0) -{ -return x_11; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_11, 0); -x_50 = lean_ctor_get(x_11, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_11); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___lam__0(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("HPow", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__0; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Level_ofNat(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Nat_mkType; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("npow", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__4; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___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_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("hPow", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__6; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__0; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_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_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; 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_13 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__1; -x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__2; -x_15 = lean_box(0); -lean_inc(x_1); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_15); -lean_inc_ref(x_16); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_1); -lean_ctor_set(x_18, 1, x_17); -lean_inc_ref(x_18); -x_19 = l_Lean_mkConst(x_13, x_18); -x_20 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__3; -lean_inc_ref_n(x_2, 2); -x_21 = l_Lean_mkApp3(x_19, x_2, x_20, x_2); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -x_22 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg(x_21, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(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; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec_ref(x_22); -x_25 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__5; -x_26 = l_Lean_mkConst(x_25, x_16); -lean_inc_ref(x_2); -x_27 = l_Lean_mkAppB(x_26, x_2, x_3); -x_28 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__7; -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_23); -x_29 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_28, x_23, x_27, x_8, x_9, x_10, x_11, x_24); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec_ref(x_29); -x_31 = l_Lean_mkConst(x_28, x_18); -lean_inc_ref(x_2); -x_32 = l_Lean_mkApp4(x_31, x_2, x_20, x_2, x_23); -lean_inc(x_7); -x_33 = lean_grind_canon(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -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 = l_Lean_Meta_Grind_shareCommon___redArg(x_34, x_7, x_35); -lean_dec(x_7); -return x_36; -} -else -{ -lean_dec(x_7); -return x_33; -} -} -else -{ -uint8_t x_37; -lean_dec(x_23); -lean_dec_ref(x_18); -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(x_4); -lean_dec_ref(x_2); -x_37 = !lean_is_exclusive(x_29); -if (x_37 == 0) -{ -return x_29; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_29, 0); -x_39 = lean_ctor_get(x_29, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_29); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_dec_ref(x_18); -lean_dec_ref(x_16); -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(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -return x_22; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_4 = lean_ctor_get(x_3, 0); -x_5 = lean_ctor_get(x_3, 1); -x_6 = lean_ctor_get(x_3, 2); -x_7 = lean_ctor_get(x_3, 3); -x_8 = lean_ctor_get(x_3, 4); -x_9 = lean_ctor_get(x_3, 5); -x_10 = lean_ctor_get(x_3, 6); -x_11 = lean_ctor_get(x_3, 7); -x_12 = lean_ctor_get(x_3, 8); -x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_7); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -lean_dec_ref(x_2); -return x_3; -} -else -{ -uint8_t x_16; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_10); -lean_inc_ref(x_9); -lean_inc_ref(x_8); -lean_inc_ref(x_7); -lean_inc_ref(x_6); -lean_inc_ref(x_5); -lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); -lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); -lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); -lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); -lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); -lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); -lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); -lean_dec(x_26); -x_27 = lean_array_fget(x_7, x_1); -x_28 = !lean_is_exclusive(x_27); -if (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_27, 10); -lean_dec(x_29); -x_30 = lean_box(0); -x_31 = lean_array_fset(x_7, x_1, x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_27, 10, x_32); -x_33 = lean_array_fset(x_31, x_1, x_27); -lean_ctor_set(x_3, 3, x_33); -return x_3; -} -else -{ -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; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -x_36 = lean_ctor_get(x_27, 2); -x_37 = lean_ctor_get(x_27, 3); -x_38 = lean_ctor_get(x_27, 4); -x_39 = lean_ctor_get(x_27, 5); -x_40 = lean_ctor_get(x_27, 6); -x_41 = lean_ctor_get(x_27, 7); -x_42 = lean_ctor_get(x_27, 8); -x_43 = lean_ctor_get(x_27, 9); -x_44 = lean_ctor_get(x_27, 11); -x_45 = lean_ctor_get(x_27, 12); -x_46 = lean_ctor_get(x_27, 13); -x_47 = lean_ctor_get(x_27, 14); -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_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -x_48 = lean_box(0); -x_49 = lean_array_fset(x_7, x_1, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_2); -x_51 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_35); -lean_ctor_set(x_51, 2, x_36); -lean_ctor_set(x_51, 3, x_37); -lean_ctor_set(x_51, 4, x_38); -lean_ctor_set(x_51, 5, x_39); -lean_ctor_set(x_51, 6, x_40); -lean_ctor_set(x_51, 7, x_41); -lean_ctor_set(x_51, 8, x_42); -lean_ctor_set(x_51, 9, x_43); -lean_ctor_set(x_51, 10, x_50); -lean_ctor_set(x_51, 11, x_44); -lean_ctor_set(x_51, 12, x_45); -lean_ctor_set(x_51, 13, x_46); -lean_ctor_set(x_51, 14, x_47); -x_52 = lean_array_fset(x_49, x_1, x_51); -lean_ctor_set(x_3, 3, x_52); -return x_3; -} -} -else -{ -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_dec(x_3); -x_53 = lean_array_fget(x_7, x_1); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 2); -lean_inc_ref(x_56); -x_57 = lean_ctor_get(x_53, 3); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 4); -lean_inc_ref(x_58); -x_59 = lean_ctor_get(x_53, 5); -lean_inc_ref(x_59); -x_60 = lean_ctor_get(x_53, 6); -lean_inc(x_60); -x_61 = lean_ctor_get(x_53, 7); -lean_inc(x_61); -x_62 = lean_ctor_get(x_53, 8); -lean_inc(x_62); -x_63 = lean_ctor_get(x_53, 9); -lean_inc(x_63); -x_64 = lean_ctor_get(x_53, 11); -lean_inc(x_64); -x_65 = lean_ctor_get(x_53, 12); -lean_inc_ref(x_65); -x_66 = lean_ctor_get(x_53, 13); -lean_inc_ref(x_66); -x_67 = lean_ctor_get(x_53, 14); -lean_inc_ref(x_67); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - lean_ctor_release(x_53, 2); - lean_ctor_release(x_53, 3); - lean_ctor_release(x_53, 4); - lean_ctor_release(x_53, 5); - lean_ctor_release(x_53, 6); - lean_ctor_release(x_53, 7); - lean_ctor_release(x_53, 8); - lean_ctor_release(x_53, 9); - lean_ctor_release(x_53, 10); - lean_ctor_release(x_53, 11); - lean_ctor_release(x_53, 12); - lean_ctor_release(x_53, 13); - lean_ctor_release(x_53, 14); - x_68 = x_53; -} else { - lean_dec_ref(x_53); - x_68 = lean_box(0); -} -x_69 = lean_box(0); -x_70 = lean_array_fset(x_7, x_1, x_69); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_2); -if (lean_is_scalar(x_68)) { - x_72 = lean_alloc_ctor(0, 15, 0); -} else { - x_72 = x_68; -} -lean_ctor_set(x_72, 0, x_54); -lean_ctor_set(x_72, 1, x_55); -lean_ctor_set(x_72, 2, x_56); -lean_ctor_set(x_72, 3, x_57); -lean_ctor_set(x_72, 4, x_58); -lean_ctor_set(x_72, 5, x_59); -lean_ctor_set(x_72, 6, x_60); -lean_ctor_set(x_72, 7, x_61); -lean_ctor_set(x_72, 8, x_62); -lean_ctor_set(x_72, 9, x_63); -lean_ctor_set(x_72, 10, x_71); -lean_ctor_set(x_72, 11, x_64); -lean_ctor_set(x_72, 12, x_65); -lean_ctor_set(x_72, 13, x_66); -lean_ctor_set(x_72, 14, x_67); -x_73 = lean_array_fset(x_70, x_1, x_72); -x_74 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_74, 0, x_4); -lean_ctor_set(x_74, 1, x_5); -lean_ctor_set(x_74, 2, x_6); -lean_ctor_set(x_74, 3, x_73); -lean_ctor_set(x_74, 4, x_8); -lean_ctor_set(x_74, 5, x_9); -lean_ctor_set(x_74, 6, x_10); -lean_ctor_set(x_74, 7, x_11); -lean_ctor_set(x_74, 8, x_12); -lean_ctor_set(x_74, 9, x_13); -return x_74; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 10); -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; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec_ref(x_11); -x_15 = lean_ctor_get(x_12, 2); -lean_inc_ref(x_15); -x_16 = lean_ctor_get(x_12, 3); -lean_inc(x_16); -x_17 = lean_ctor_get(x_12, 4); -lean_inc_ref(x_17); -lean_dec(x_12); -lean_inc(x_2); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg(x_16, x_15, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -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); -lean_inc(x_19); -x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___lam__0___boxed), 3, 2); -lean_closure_set(x_21, 0, x_1); -lean_closure_set(x_21, 1, x_19); -x_22 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -x_23 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_22, x_21, x_2, x_20); -lean_dec(x_2); -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -lean_ctor_set(x_23, 0, x_19); -return x_23; -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -x_28 = !lean_is_exclusive(x_23); -if (x_28 == 0) -{ -return x_23; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_23, 0); -x_30 = lean_ctor_get(x_23, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_23); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -lean_dec(x_2); -lean_dec(x_1); -return x_18; -} -} -else -{ -uint8_t x_32; -lean_inc_ref(x_13); -lean_dec(x_12); -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_11); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_11, 0); -lean_dec(x_33); -x_34 = lean_ctor_get(x_13, 0); -lean_inc(x_34); -lean_dec_ref(x_13); -lean_ctor_set(x_11, 0, x_34); -return x_11; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_11, 1); -lean_inc(x_35); -lean_dec(x_11); -x_36 = lean_ctor_get(x_13, 0); -lean_inc(x_36); -lean_dec_ref(x_13); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; -} -} -} -else -{ -uint8_t x_38; -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_11); -if (x_38 == 0) -{ -return x_11; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_11, 0); -x_40 = lean_ctor_get(x_11, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_11); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_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, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__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); -lean_dec(x_4); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___lam__0(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_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, 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; -x_16 = l_Lean_Name_mkStr2(x_1, x_2); -x_17 = l_Lean_mkConst(x_16, x_3); -x_18 = l_Lean_mkAppB(x_17, x_4, x_5); -lean_inc(x_10); -x_19 = lean_grind_canon(x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_19) == 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_inc(x_21); -lean_dec_ref(x_19); -x_22 = l_Lean_Meta_Grind_shareCommon___redArg(x_20, x_10, x_21); -lean_dec(x_10); -return x_22; -} -else -{ -lean_dec(x_10); -return x_19; -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("NatCast", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("natCast", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__3() { -_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_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___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_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0; -x_3 = l_Lean_Name_mkStr2(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_14 = lean_box(0); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_1); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0; -x_17 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__1; -lean_inc_ref(x_15); -x_18 = l_Lean_mkConst(x_17, x_15); -lean_inc_ref(x_2); -x_19 = l_Lean_Expr_app___override(x_18, x_2); -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_20 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_19, x_9, x_10, x_11, x_12, x_13); -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; -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 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2; -x_24 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__3; -lean_inc_ref(x_15); -x_25 = l_Lean_mkConst(x_24, x_15); -lean_inc_ref(x_2); -x_26 = l_Lean_mkAppB(x_25, x_2, x_3); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_27; -x_27 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___lam__0(x_16, x_23, x_15, x_2, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_21, 0); -lean_inc(x_28); -lean_dec_ref(x_21); -x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__4; -lean_inc(x_12); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc(x_28); -x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_28, x_26, x_9, x_10, x_11, x_12, x_22); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec_ref(x_30); -x_32 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___lam__0(x_16, x_23, x_15, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); -return x_32; -} -else -{ -uint8_t x_33; -lean_dec(x_28); -lean_dec_ref(x_15); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec_ref(x_2); -x_33 = !lean_is_exclusive(x_30); -if (x_33 == 0) -{ -return x_30; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_30, 0); -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_30); -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; -} -} -} -} -else -{ -uint8_t x_37; -lean_dec_ref(x_15); -lean_dec(x_12); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_37 = !lean_is_exclusive(x_20); -if (x_37 == 0) -{ -return x_20; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_20, 0); -x_39 = lean_ctor_get(x_20, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_20); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_4 = lean_ctor_get(x_3, 0); -x_5 = lean_ctor_get(x_3, 1); -x_6 = lean_ctor_get(x_3, 2); -x_7 = lean_ctor_get(x_3, 3); -x_8 = lean_ctor_get(x_3, 4); -x_9 = lean_ctor_get(x_3, 5); -x_10 = lean_ctor_get(x_3, 6); -x_11 = lean_ctor_get(x_3, 7); -x_12 = lean_ctor_get(x_3, 8); -x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_7); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -lean_dec_ref(x_2); -return x_3; -} -else -{ -uint8_t x_16; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc_ref(x_11); -lean_inc_ref(x_10); -lean_inc_ref(x_9); -lean_inc_ref(x_8); -lean_inc_ref(x_7); -lean_inc_ref(x_6); -lean_inc_ref(x_5); -lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); -lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); -lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); -lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); -lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); -lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); -lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); -lean_dec(x_26); -x_27 = lean_array_fget(x_7, x_1); -x_28 = !lean_is_exclusive(x_27); -if (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_27, 11); -lean_dec(x_29); -x_30 = lean_box(0); -x_31 = lean_array_fset(x_7, x_1, x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_27, 11, x_32); -x_33 = lean_array_fset(x_31, x_1, x_27); -lean_ctor_set(x_3, 3, x_33); -return x_3; -} -else -{ -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; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -x_36 = lean_ctor_get(x_27, 2); -x_37 = lean_ctor_get(x_27, 3); -x_38 = lean_ctor_get(x_27, 4); -x_39 = lean_ctor_get(x_27, 5); -x_40 = lean_ctor_get(x_27, 6); -x_41 = lean_ctor_get(x_27, 7); -x_42 = lean_ctor_get(x_27, 8); -x_43 = lean_ctor_get(x_27, 9); -x_44 = lean_ctor_get(x_27, 10); -x_45 = lean_ctor_get(x_27, 12); -x_46 = lean_ctor_get(x_27, 13); -x_47 = lean_ctor_get(x_27, 14); -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_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -x_48 = lean_box(0); -x_49 = lean_array_fset(x_7, x_1, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_2); -x_51 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_35); -lean_ctor_set(x_51, 2, x_36); -lean_ctor_set(x_51, 3, x_37); -lean_ctor_set(x_51, 4, x_38); -lean_ctor_set(x_51, 5, x_39); -lean_ctor_set(x_51, 6, x_40); -lean_ctor_set(x_51, 7, x_41); -lean_ctor_set(x_51, 8, x_42); -lean_ctor_set(x_51, 9, x_43); -lean_ctor_set(x_51, 10, x_44); -lean_ctor_set(x_51, 11, x_50); -lean_ctor_set(x_51, 12, x_45); -lean_ctor_set(x_51, 13, x_46); -lean_ctor_set(x_51, 14, x_47); -x_52 = lean_array_fset(x_49, x_1, x_51); -lean_ctor_set(x_3, 3, x_52); -return x_3; -} -} -else -{ -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_dec(x_3); -x_53 = lean_array_fget(x_7, x_1); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 2); -lean_inc_ref(x_56); -x_57 = lean_ctor_get(x_53, 3); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 4); -lean_inc_ref(x_58); -x_59 = lean_ctor_get(x_53, 5); -lean_inc_ref(x_59); -x_60 = lean_ctor_get(x_53, 6); -lean_inc(x_60); -x_61 = lean_ctor_get(x_53, 7); -lean_inc(x_61); -x_62 = lean_ctor_get(x_53, 8); -lean_inc(x_62); -x_63 = lean_ctor_get(x_53, 9); -lean_inc(x_63); -x_64 = lean_ctor_get(x_53, 10); -lean_inc(x_64); -x_65 = lean_ctor_get(x_53, 12); -lean_inc_ref(x_65); -x_66 = lean_ctor_get(x_53, 13); -lean_inc_ref(x_66); -x_67 = lean_ctor_get(x_53, 14); -lean_inc_ref(x_67); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - lean_ctor_release(x_53, 2); - lean_ctor_release(x_53, 3); - lean_ctor_release(x_53, 4); - lean_ctor_release(x_53, 5); - lean_ctor_release(x_53, 6); - lean_ctor_release(x_53, 7); - lean_ctor_release(x_53, 8); - lean_ctor_release(x_53, 9); - lean_ctor_release(x_53, 10); - lean_ctor_release(x_53, 11); - lean_ctor_release(x_53, 12); - lean_ctor_release(x_53, 13); - lean_ctor_release(x_53, 14); - x_68 = x_53; -} else { - lean_dec_ref(x_53); - x_68 = lean_box(0); -} -x_69 = lean_box(0); -x_70 = lean_array_fset(x_7, x_1, x_69); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_2); -if (lean_is_scalar(x_68)) { - x_72 = lean_alloc_ctor(0, 15, 0); -} else { - x_72 = x_68; -} -lean_ctor_set(x_72, 0, x_54); -lean_ctor_set(x_72, 1, x_55); -lean_ctor_set(x_72, 2, x_56); -lean_ctor_set(x_72, 3, x_57); -lean_ctor_set(x_72, 4, x_58); -lean_ctor_set(x_72, 5, x_59); -lean_ctor_set(x_72, 6, x_60); -lean_ctor_set(x_72, 7, x_61); -lean_ctor_set(x_72, 8, x_62); -lean_ctor_set(x_72, 9, x_63); -lean_ctor_set(x_72, 10, x_64); -lean_ctor_set(x_72, 11, x_71); -lean_ctor_set(x_72, 12, x_65); -lean_ctor_set(x_72, 13, x_66); -lean_ctor_set(x_72, 14, x_67); -x_73 = lean_array_fset(x_70, x_1, x_72); -x_74 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_74, 0, x_4); -lean_ctor_set(x_74, 1, x_5); -lean_ctor_set(x_74, 2, x_6); -lean_ctor_set(x_74, 3, x_73); -lean_ctor_set(x_74, 4, x_8); -lean_ctor_set(x_74, 5, x_9); -lean_ctor_set(x_74, 6, x_10); -lean_ctor_set(x_74, 7, x_11); -lean_ctor_set(x_74, 8, x_12); -lean_ctor_set(x_74, 9, x_13); -return x_74; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 11); -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; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec_ref(x_11); -x_15 = lean_ctor_get(x_12, 2); -lean_inc_ref(x_15); -x_16 = lean_ctor_get(x_12, 3); -lean_inc(x_16); -x_17 = lean_ctor_get(x_12, 4); -lean_inc_ref(x_17); -lean_dec(x_12); -lean_inc(x_2); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0(x_16, x_15, x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -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); -lean_inc(x_19); -x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___lam__0___boxed), 3, 2); -lean_closure_set(x_21, 0, x_1); -lean_closure_set(x_21, 1, x_19); -x_22 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -x_23 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_22, x_21, x_2, x_20); -lean_dec(x_2); -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -lean_ctor_set(x_23, 0, x_19); -return x_23; -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -x_28 = !lean_is_exclusive(x_23); -if (x_28 == 0) -{ -return x_23; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_23, 0); -x_30 = lean_ctor_get(x_23, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_23); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -lean_dec(x_2); -lean_dec(x_1); -return x_18; -} -} -else -{ -uint8_t x_32; -lean_inc_ref(x_13); -lean_dec(x_12); -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_11); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_11, 0); -lean_dec(x_33); -x_34 = lean_ctor_get(x_13, 0); -lean_inc(x_34); -lean_dec_ref(x_13); -lean_ctor_set(x_11, 0, x_34); -return x_11; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_11, 1); -lean_inc(x_35); -lean_dec(x_11); -x_36 = lean_ctor_get(x_13, 0); -lean_inc(x_36); -lean_dec_ref(x_13); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; -} -} -} -else -{ -uint8_t x_38; -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_11); -if (x_38 == 0) -{ -return x_11; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_11, 0); -x_40 = lean_ctor_get(x_11, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_11); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_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, 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; -x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___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); -lean_dec(x_6); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_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, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__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); -lean_dec(x_4); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___lam__0(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +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; uint8_t x_18; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); x_6 = lean_ctor_get(x_3, 2); @@ -3803,18 +1365,24 @@ x_10 = lean_ctor_get(x_3, 6); x_11 = lean_ctor_get(x_3, 7); x_12 = lean_ctor_get(x_3, 8); x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_7); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) { lean_dec_ref(x_2); return x_3; } else { -uint8_t x_16; -lean_inc(x_13); +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); lean_inc_ref(x_10); @@ -3824,194 +1392,133 @@ lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); +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; uint8_t x_34; +x_20 = lean_ctor_get(x_3, 12); lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); +x_21 = lean_ctor_get(x_3, 11); lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); +x_22 = lean_ctor_get(x_3, 10); lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 9); lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 8); lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); +x_25 = lean_ctor_get(x_3, 7); lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); +x_26 = lean_ctor_get(x_3, 6); lean_dec(x_26); -x_27 = lean_array_fget(x_7, x_1); -x_28 = !lean_is_exclusive(x_27); -if (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_27, 7); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); lean_dec(x_29); -x_30 = lean_box(0); -x_31 = lean_array_fset(x_7, x_1, x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_27, 7, x_32); -x_33 = lean_array_fset(x_31, x_1, x_27); -lean_ctor_set(x_3, 3, x_33); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_33, 4); +lean_dec(x_35); +x_36 = lean_box(0); +x_37 = lean_array_fset(x_7, x_1, x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_2); +lean_ctor_set(x_33, 4, x_38); +x_39 = lean_array_fset(x_37, x_1, x_33); +lean_ctor_set(x_3, 3, x_39); return x_3; } else { -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; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -x_36 = lean_ctor_get(x_27, 2); -x_37 = lean_ctor_get(x_27, 3); -x_38 = lean_ctor_get(x_27, 4); -x_39 = lean_ctor_get(x_27, 5); -x_40 = lean_ctor_get(x_27, 6); -x_41 = lean_ctor_get(x_27, 8); -x_42 = lean_ctor_get(x_27, 9); -x_43 = lean_ctor_get(x_27, 10); -x_44 = lean_ctor_get(x_27, 11); -x_45 = lean_ctor_get(x_27, 12); -x_46 = lean_ctor_get(x_27, 13); -x_47 = lean_ctor_get(x_27, 14); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); +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; +x_40 = lean_ctor_get(x_33, 0); +x_41 = lean_ctor_get(x_33, 1); +x_42 = lean_ctor_get(x_33, 2); +x_43 = lean_ctor_get(x_33, 3); 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_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -x_48 = lean_box(0); -x_49 = lean_array_fset(x_7, x_1, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_2); -x_51 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_35); -lean_ctor_set(x_51, 2, x_36); -lean_ctor_set(x_51, 3, x_37); -lean_ctor_set(x_51, 4, x_38); -lean_ctor_set(x_51, 5, x_39); -lean_ctor_set(x_51, 6, x_40); -lean_ctor_set(x_51, 7, x_50); -lean_ctor_set(x_51, 8, x_41); -lean_ctor_set(x_51, 9, x_42); -lean_ctor_set(x_51, 10, x_43); -lean_ctor_set(x_51, 11, x_44); -lean_ctor_set(x_51, 12, x_45); -lean_ctor_set(x_51, 13, x_46); -lean_ctor_set(x_51, 14, x_47); -x_52 = lean_array_fset(x_49, x_1, x_51); -lean_ctor_set(x_3, 3, x_52); +lean_dec(x_33); +x_44 = lean_box(0); +x_45 = lean_array_fset(x_7, x_1, x_44); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_2); +x_47 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_41); +lean_ctor_set(x_47, 2, x_42); +lean_ctor_set(x_47, 3, x_43); +lean_ctor_set(x_47, 4, x_46); +x_48 = lean_array_fset(x_45, x_1, x_47); +lean_ctor_set(x_3, 3, x_48); return x_3; } } else { -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_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_dec(x_3); -x_53 = lean_array_fget(x_7, x_1); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 2); -lean_inc_ref(x_56); -x_57 = lean_ctor_get(x_53, 3); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 4); -lean_inc_ref(x_58); -x_59 = lean_ctor_get(x_53, 5); -lean_inc_ref(x_59); -x_60 = lean_ctor_get(x_53, 6); -lean_inc(x_60); -x_61 = lean_ctor_get(x_53, 8); -lean_inc(x_61); -x_62 = lean_ctor_get(x_53, 9); -lean_inc(x_62); -x_63 = lean_ctor_get(x_53, 10); -lean_inc(x_63); -x_64 = lean_ctor_get(x_53, 11); -lean_inc(x_64); -x_65 = lean_ctor_get(x_53, 12); -lean_inc_ref(x_65); -x_66 = lean_ctor_get(x_53, 13); -lean_inc_ref(x_66); -x_67 = lean_ctor_get(x_53, 14); -lean_inc_ref(x_67); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - lean_ctor_release(x_53, 2); - lean_ctor_release(x_53, 3); - lean_ctor_release(x_53, 4); - lean_ctor_release(x_53, 5); - lean_ctor_release(x_53, 6); - lean_ctor_release(x_53, 7); - lean_ctor_release(x_53, 8); - lean_ctor_release(x_53, 9); - lean_ctor_release(x_53, 10); - lean_ctor_release(x_53, 11); - lean_ctor_release(x_53, 12); - lean_ctor_release(x_53, 13); - lean_ctor_release(x_53, 14); - x_68 = x_53; +x_49 = lean_array_fget(x_7, x_1); +x_50 = lean_ctor_get(x_49, 0); +lean_inc_ref(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +x_52 = lean_ctor_get(x_49, 2); +lean_inc_ref(x_52); +x_53 = lean_ctor_get(x_49, 3); +lean_inc(x_53); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + lean_ctor_release(x_49, 2); + lean_ctor_release(x_49, 3); + lean_ctor_release(x_49, 4); + x_54 = x_49; } else { - lean_dec_ref(x_53); - x_68 = lean_box(0); + lean_dec_ref(x_49); + x_54 = lean_box(0); } -x_69 = lean_box(0); -x_70 = lean_array_fset(x_7, x_1, x_69); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_2); -if (lean_is_scalar(x_68)) { - x_72 = lean_alloc_ctor(0, 15, 0); +x_55 = lean_box(0); +x_56 = lean_array_fset(x_7, x_1, x_55); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_2); +if (lean_is_scalar(x_54)) { + x_58 = lean_alloc_ctor(0, 5, 0); } else { - x_72 = x_68; + x_58 = x_54; } -lean_ctor_set(x_72, 0, x_54); -lean_ctor_set(x_72, 1, x_55); -lean_ctor_set(x_72, 2, x_56); -lean_ctor_set(x_72, 3, x_57); -lean_ctor_set(x_72, 4, x_58); -lean_ctor_set(x_72, 5, x_59); -lean_ctor_set(x_72, 6, x_60); -lean_ctor_set(x_72, 7, x_71); -lean_ctor_set(x_72, 8, x_61); -lean_ctor_set(x_72, 9, x_62); -lean_ctor_set(x_72, 10, x_63); -lean_ctor_set(x_72, 11, x_64); -lean_ctor_set(x_72, 12, x_65); -lean_ctor_set(x_72, 13, x_66); -lean_ctor_set(x_72, 14, x_67); -x_73 = lean_array_fset(x_70, x_1, x_72); -x_74 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_74, 0, x_4); -lean_ctor_set(x_74, 1, x_5); -lean_ctor_set(x_74, 2, x_6); -lean_ctor_set(x_74, 3, x_73); -lean_ctor_set(x_74, 4, x_8); -lean_ctor_set(x_74, 5, x_9); -lean_ctor_set(x_74, 6, x_10); -lean_ctor_set(x_74, 7, x_11); -lean_ctor_set(x_74, 8, x_12); -lean_ctor_set(x_74, 9, x_13); -return x_74; +lean_ctor_set(x_58, 0, x_50); +lean_ctor_set(x_58, 1, x_51); +lean_ctor_set(x_58, 2, x_52); +lean_ctor_set(x_58, 3, x_53); +lean_ctor_set(x_58, 4, x_57); +x_59 = lean_array_fset(x_56, x_1, x_58); +x_60 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_60, 0, x_4); +lean_ctor_set(x_60, 1, x_5); +lean_ctor_set(x_60, 2, x_6); +lean_ctor_set(x_60, 3, x_59); +lean_ctor_set(x_60, 4, x_8); +lean_ctor_set(x_60, 5, x_9); +lean_ctor_set(x_60, 6, x_10); +lean_ctor_set(x_60, 7, x_11); +lean_ctor_set(x_60, 8, x_12); +lean_ctor_set(x_60, 9, x_13); +lean_ctor_set(x_60, 10, x_14); +lean_ctor_set(x_60, 11, x_15); +lean_ctor_set(x_60, 12, x_16); +return x_60; } } } @@ -4020,7 +1527,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0( _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Ring", 4, 4); +x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } @@ -4028,7 +1535,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1( _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("OfSemiring", 10, 10); +x_1 = lean_mk_string_unchecked("Grind", 5, 5); return x_1; } } @@ -4036,19 +1543,35 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__2( _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("toQ", 3, 3); +x_1 = lean_mk_string_unchecked("Ring", 4, 4); return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("OfSemiring", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("toQ", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__4; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__3; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__2; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0; x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); return x_6; } @@ -4057,59 +1580,62 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getToQFn(lean_object* _start: { lean_object* x_11; lean_object* x_26; -x_26 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 7); +x_28 = lean_ctor_get(x_27, 4); 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; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec_ref(x_26); -x_30 = lean_ctor_get(x_27, 2); -lean_inc_ref(x_30); -x_31 = lean_ctor_get(x_27, 3); -lean_inc(x_31); -x_32 = lean_ctor_get(x_27, 4); -lean_inc_ref(x_32); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_29 = lean_ctor_get(x_27, 0); +lean_inc_ref(x_29); lean_dec(x_27); -x_33 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__3; -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_31); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_mkConst(x_33, x_35); -x_37 = l_Lean_mkAppB(x_36, x_30, x_32); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec_ref(x_26); +x_31 = lean_ctor_get(x_29, 1); +lean_inc_ref(x_31); +x_32 = lean_ctor_get(x_29, 2); +lean_inc(x_32); +x_33 = lean_ctor_get(x_29, 3); +lean_inc_ref(x_33); +lean_dec_ref(x_29); +x_34 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__5; +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_32); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_mkConst(x_34, x_36); +x_38 = l_Lean_mkAppB(x_37, x_31, x_33); lean_inc(x_5); lean_inc(x_2); -x_38 = lean_grind_canon(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -if (lean_obj_tag(x_38) == 0) +x_39 = lean_grind_canon(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -lean_dec_ref(x_38); -x_41 = l_Lean_Meta_Grind_shareCommon___redArg(x_39, x_5, x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec_ref(x_39); +x_42 = l_Lean_Meta_Grind_shareCommon___redArg(x_40, x_5, x_41); lean_dec(x_5); -x_11 = x_41; +x_11 = x_42; goto block_25; } else { lean_dec(x_5); -x_11 = x_38; +x_11 = x_39; goto block_25; } } else { -uint8_t x_42; +uint8_t x_43; lean_inc_ref(x_28); lean_dec(x_27); lean_dec(x_9); @@ -4121,37 +1647,37 @@ lean_dec_ref(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_26); -if (x_42 == 0) +x_43 = !lean_is_exclusive(x_26); +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_26, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_28, 0); -lean_inc(x_44); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_26, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_28, 0); +lean_inc(x_45); lean_dec_ref(x_28); -lean_ctor_set(x_26, 0, x_44); +lean_ctor_set(x_26, 0, x_45); return x_26; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_26, 1); -lean_inc(x_45); -lean_dec(x_26); -x_46 = lean_ctor_get(x_28, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_26, 1); lean_inc(x_46); +lean_dec(x_26); +x_47 = lean_ctor_get(x_28, 0); +lean_inc(x_47); lean_dec_ref(x_28); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } } else { -uint8_t x_48; +uint8_t x_49; lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); @@ -4161,23 +1687,23 @@ lean_dec_ref(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_26); -if (x_48 == 0) +x_49 = !lean_is_exclusive(x_26); +if (x_49 == 0) { return x_26; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_26, 0); -x_50 = lean_ctor_get(x_26, 1); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_26, 0); +x_51 = lean_ctor_get(x_26, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); lean_dec(x_26); -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; +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; } } block_25: @@ -4194,7 +1720,7 @@ lean_inc(x_12); x_14 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getToQFn___lam__0___boxed), 3, 2); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_12); -x_15 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; +x_15 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; x_16 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_15, x_14, x_2, x_13); lean_dec(x_2); if (lean_obj_tag(x_16) == 0) @@ -4293,8 +1819,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0; x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1); return x_4; } @@ -4383,7 +1909,7 @@ return x_12; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +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; uint8_t x_18; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); x_6 = lean_ctor_get(x_3, 2); @@ -4394,18 +1920,24 @@ x_10 = lean_ctor_get(x_3, 6); x_11 = lean_ctor_get(x_3, 7); x_12 = lean_ctor_get(x_3, 8); x_13 = lean_ctor_get(x_3, 9); -x_14 = lean_array_get_size(x_7); -x_15 = lean_nat_dec_lt(x_1, x_14); -lean_dec(x_14); -if (x_15 == 0) +x_14 = lean_ctor_get(x_3, 10); +x_15 = lean_ctor_get(x_3, 11); +x_16 = lean_ctor_get(x_3, 12); +x_17 = lean_array_get_size(x_7); +x_18 = lean_nat_dec_lt(x_1, x_17); +lean_dec(x_17); +if (x_18 == 0) { lean_dec(x_2); return x_3; } else { -uint8_t x_16; -lean_inc(x_13); +uint8_t x_19; +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); lean_inc_ref(x_10); @@ -4415,194 +1947,133 @@ lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); lean_inc_ref(x_4); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_17 = lean_ctor_get(x_3, 9); -lean_dec(x_17); -x_18 = lean_ctor_get(x_3, 8); -lean_dec(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_dec(x_19); -x_20 = lean_ctor_get(x_3, 6); +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; uint8_t x_34; +x_20 = lean_ctor_get(x_3, 12); lean_dec(x_20); -x_21 = lean_ctor_get(x_3, 5); +x_21 = lean_ctor_get(x_3, 11); lean_dec(x_21); -x_22 = lean_ctor_get(x_3, 4); +x_22 = lean_ctor_get(x_3, 10); lean_dec(x_22); -x_23 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 9); lean_dec(x_23); -x_24 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 8); lean_dec(x_24); -x_25 = lean_ctor_get(x_3, 1); +x_25 = lean_ctor_get(x_3, 7); lean_dec(x_25); -x_26 = lean_ctor_get(x_3, 0); +x_26 = lean_ctor_get(x_3, 6); lean_dec(x_26); -x_27 = lean_array_fget(x_7, x_1); -x_28 = !lean_is_exclusive(x_27); -if (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_27, 6); +x_27 = lean_ctor_get(x_3, 5); +lean_dec(x_27); +x_28 = lean_ctor_get(x_3, 4); +lean_dec(x_28); +x_29 = lean_ctor_get(x_3, 3); lean_dec(x_29); -x_30 = lean_box(0); -x_31 = lean_array_fset(x_7, x_1, x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_27, 6, x_32); -x_33 = lean_array_fset(x_31, x_1, x_27); -lean_ctor_set(x_3, 3, x_33); +x_30 = lean_ctor_get(x_3, 2); +lean_dec(x_30); +x_31 = lean_ctor_get(x_3, 1); +lean_dec(x_31); +x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_32); +x_33 = lean_array_fget(x_7, x_1); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_33, 3); +lean_dec(x_35); +x_36 = lean_box(0); +x_37 = lean_array_fset(x_7, x_1, x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_2); +lean_ctor_set(x_33, 3, x_38); +x_39 = lean_array_fset(x_37, x_1, x_33); +lean_ctor_set(x_3, 3, x_39); return x_3; } else { -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; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -x_36 = lean_ctor_get(x_27, 2); -x_37 = lean_ctor_get(x_27, 3); -x_38 = lean_ctor_get(x_27, 4); -x_39 = lean_ctor_get(x_27, 5); -x_40 = lean_ctor_get(x_27, 7); -x_41 = lean_ctor_get(x_27, 8); -x_42 = lean_ctor_get(x_27, 9); -x_43 = lean_ctor_get(x_27, 10); -x_44 = lean_ctor_get(x_27, 11); -x_45 = lean_ctor_get(x_27, 12); -x_46 = lean_ctor_get(x_27, 13); -x_47 = lean_ctor_get(x_27, 14); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); +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; +x_40 = lean_ctor_get(x_33, 0); +x_41 = lean_ctor_get(x_33, 1); +x_42 = lean_ctor_get(x_33, 2); +x_43 = lean_ctor_get(x_33, 4); 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_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_27); -x_48 = lean_box(0); -x_49 = lean_array_fset(x_7, x_1, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_2); -x_51 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_35); -lean_ctor_set(x_51, 2, x_36); -lean_ctor_set(x_51, 3, x_37); -lean_ctor_set(x_51, 4, x_38); -lean_ctor_set(x_51, 5, x_39); -lean_ctor_set(x_51, 6, x_50); -lean_ctor_set(x_51, 7, x_40); -lean_ctor_set(x_51, 8, x_41); -lean_ctor_set(x_51, 9, x_42); -lean_ctor_set(x_51, 10, x_43); -lean_ctor_set(x_51, 11, x_44); -lean_ctor_set(x_51, 12, x_45); -lean_ctor_set(x_51, 13, x_46); -lean_ctor_set(x_51, 14, x_47); -x_52 = lean_array_fset(x_49, x_1, x_51); -lean_ctor_set(x_3, 3, x_52); +lean_dec(x_33); +x_44 = lean_box(0); +x_45 = lean_array_fset(x_7, x_1, x_44); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_2); +x_47 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_41); +lean_ctor_set(x_47, 2, x_42); +lean_ctor_set(x_47, 3, x_46); +lean_ctor_set(x_47, 4, x_43); +x_48 = lean_array_fset(x_45, x_1, x_47); +lean_ctor_set(x_3, 3, x_48); return x_3; } } else { -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_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_dec(x_3); -x_53 = lean_array_fget(x_7, x_1); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 2); -lean_inc_ref(x_56); -x_57 = lean_ctor_get(x_53, 3); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 4); -lean_inc_ref(x_58); -x_59 = lean_ctor_get(x_53, 5); -lean_inc_ref(x_59); -x_60 = lean_ctor_get(x_53, 7); -lean_inc(x_60); -x_61 = lean_ctor_get(x_53, 8); -lean_inc(x_61); -x_62 = lean_ctor_get(x_53, 9); -lean_inc(x_62); -x_63 = lean_ctor_get(x_53, 10); -lean_inc(x_63); -x_64 = lean_ctor_get(x_53, 11); -lean_inc(x_64); -x_65 = lean_ctor_get(x_53, 12); -lean_inc_ref(x_65); -x_66 = lean_ctor_get(x_53, 13); -lean_inc_ref(x_66); -x_67 = lean_ctor_get(x_53, 14); -lean_inc_ref(x_67); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - lean_ctor_release(x_53, 2); - lean_ctor_release(x_53, 3); - lean_ctor_release(x_53, 4); - lean_ctor_release(x_53, 5); - lean_ctor_release(x_53, 6); - lean_ctor_release(x_53, 7); - lean_ctor_release(x_53, 8); - lean_ctor_release(x_53, 9); - lean_ctor_release(x_53, 10); - lean_ctor_release(x_53, 11); - lean_ctor_release(x_53, 12); - lean_ctor_release(x_53, 13); - lean_ctor_release(x_53, 14); - x_68 = x_53; +x_49 = lean_array_fget(x_7, x_1); +x_50 = lean_ctor_get(x_49, 0); +lean_inc_ref(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +x_52 = lean_ctor_get(x_49, 2); +lean_inc_ref(x_52); +x_53 = lean_ctor_get(x_49, 4); +lean_inc(x_53); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + lean_ctor_release(x_49, 2); + lean_ctor_release(x_49, 3); + lean_ctor_release(x_49, 4); + x_54 = x_49; } else { - lean_dec_ref(x_53); - x_68 = lean_box(0); + lean_dec_ref(x_49); + x_54 = lean_box(0); } -x_69 = lean_box(0); -x_70 = lean_array_fset(x_7, x_1, x_69); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_2); -if (lean_is_scalar(x_68)) { - x_72 = lean_alloc_ctor(0, 15, 0); +x_55 = lean_box(0); +x_56 = lean_array_fset(x_7, x_1, x_55); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_2); +if (lean_is_scalar(x_54)) { + x_58 = lean_alloc_ctor(0, 5, 0); } else { - x_72 = x_68; + x_58 = x_54; } -lean_ctor_set(x_72, 0, x_54); -lean_ctor_set(x_72, 1, x_55); -lean_ctor_set(x_72, 2, x_56); -lean_ctor_set(x_72, 3, x_57); -lean_ctor_set(x_72, 4, x_58); -lean_ctor_set(x_72, 5, x_59); -lean_ctor_set(x_72, 6, x_71); -lean_ctor_set(x_72, 7, x_60); -lean_ctor_set(x_72, 8, x_61); -lean_ctor_set(x_72, 9, x_62); -lean_ctor_set(x_72, 10, x_63); -lean_ctor_set(x_72, 11, x_64); -lean_ctor_set(x_72, 12, x_65); -lean_ctor_set(x_72, 13, x_66); -lean_ctor_set(x_72, 14, x_67); -x_73 = lean_array_fset(x_70, x_1, x_72); -x_74 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_74, 0, x_4); -lean_ctor_set(x_74, 1, x_5); -lean_ctor_set(x_74, 2, x_6); -lean_ctor_set(x_74, 3, x_73); -lean_ctor_set(x_74, 4, x_8); -lean_ctor_set(x_74, 5, x_9); -lean_ctor_set(x_74, 6, x_10); -lean_ctor_set(x_74, 7, x_11); -lean_ctor_set(x_74, 8, x_12); -lean_ctor_set(x_74, 9, x_13); -return x_74; +lean_ctor_set(x_58, 0, x_50); +lean_ctor_set(x_58, 1, x_51); +lean_ctor_set(x_58, 2, x_52); +lean_ctor_set(x_58, 3, x_57); +lean_ctor_set(x_58, 4, x_53); +x_59 = lean_array_fset(x_56, x_1, x_58); +x_60 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_60, 0, x_4); +lean_ctor_set(x_60, 1, x_5); +lean_ctor_set(x_60, 2, x_6); +lean_ctor_set(x_60, 3, x_59); +lean_ctor_set(x_60, 4, x_8); +lean_ctor_set(x_60, 5, x_9); +lean_ctor_set(x_60, 6, x_10); +lean_ctor_set(x_60, 7, x_11); +lean_ctor_set(x_60, 8, x_12); +lean_ctor_set(x_60, 9, x_13); +lean_ctor_set(x_60, 10, x_14); +lean_ctor_set(x_60, 11, x_15); +lean_ctor_set(x_60, 12, x_16); +return x_60; } } } @@ -4611,96 +2082,99 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_ _start: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 6); +x_13 = lean_ctor_get(x_12, 3); if (lean_obj_tag(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_11, 1); -lean_inc(x_14); -lean_dec_ref(x_11); -x_15 = lean_ctor_get(x_12, 2); -lean_inc_ref(x_15); -x_16 = lean_ctor_get(x_12, 3); -lean_inc(x_16); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_12, 0); +lean_inc_ref(x_14); lean_dec(x_12); -x_17 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg(x_16, x_15, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_17) == 0) +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec_ref(x_11); +x_16 = lean_ctor_get(x_14, 1); +lean_inc_ref(x_16); +x_17 = lean_ctor_get(x_14, 2); +lean_inc(x_17); +lean_dec_ref(x_14); +x_18 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg(x_17, x_16, x_6, x_7, x_8, x_9, x_15); +if (lean_obj_tag(x_18) == 0) { -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_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec_ref(x_17); -lean_inc(x_18); -x_20 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f___lam__0___boxed), 3, 2); -lean_closure_set(x_20, 0, x_1); -lean_closure_set(x_20, 1, x_18); -x_21 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -x_22 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_21, x_20, x_2, x_19); -if (lean_obj_tag(x_22) == 0) +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec_ref(x_18); +lean_inc(x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddRightCancelInst_x3f___lam__0___boxed), 3, 2); +lean_closure_set(x_21, 0, x_1); +lean_closure_set(x_21, 1, x_19); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; +x_23 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_22, x_21, x_2, x_20); +if (lean_obj_tag(x_23) == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -lean_ctor_set(x_22, 0, x_18); -return x_22; +lean_object* x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_19); +return x_23; } else { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_19); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } else { -uint8_t x_27; -lean_dec(x_18); -x_27 = !lean_is_exclusive(x_22); -if (x_27 == 0) +uint8_t x_28; +lean_dec(x_19); +x_28 = !lean_is_exclusive(x_23); +if (x_28 == 0) { -return x_22; +return x_23; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_22, 0); -x_29 = lean_ctor_get(x_22, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_22); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; +lean_dec(x_23); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } else { lean_dec(x_1); -return x_17; +return x_18; } } else { -uint8_t x_31; +uint8_t x_32; lean_inc_ref(x_13); lean_dec(x_12); lean_dec(x_9); @@ -4708,59 +2182,59 @@ lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_11); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_11); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_11, 0); -lean_dec(x_32); -x_33 = lean_ctor_get(x_13, 0); -lean_inc(x_33); +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_11, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_13, 0); +lean_inc(x_34); lean_dec_ref(x_13); -lean_ctor_set(x_11, 0, x_33); +lean_ctor_set(x_11, 0, x_34); return x_11; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_11, 1); -lean_inc(x_34); -lean_dec(x_11); -x_35 = lean_ctor_get(x_13, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_11, 1); lean_inc(x_35); +lean_dec(x_11); +x_36 = lean_ctor_get(x_13, 0); +lean_inc(x_36); lean_dec_ref(x_13); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -return x_36; +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; } } } else { -uint8_t x_37; +uint8_t x_38; lean_dec(x_9); lean_dec_ref(x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_11); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_11); +if (x_38 == 0) { return x_11; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_11, 0); -x_39 = lean_ctor_get(x_11, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_11, 0); +x_40 = lean_ctor_get(x_11, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); lean_dec(x_11); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } @@ -4786,6 +2260,907 @@ lean_dec(x_2); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 4); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 4, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 5); +x_11 = lean_ctor_get(x_2, 6); +x_12 = lean_ctor_get(x_2, 7); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_16); +lean_ctor_set(x_17, 5, x_10); +lean_ctor_set(x_17, 6, x_11); +lean_ctor_set(x_17, 7, x_12); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_1, lean_box(0), x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_inc_ref(x_4); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__0), 2, 1); +lean_closure_set(x_5, 0, x_4); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__1), 3, 2); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_4); +x_7 = lean_apply_1(x_2, x_5); +x_8 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_7, x_6); +return x_8; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instHAdd", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__0; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Semiring", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("toAdd", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___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_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__3; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___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_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("HAdd", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__5; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("hAdd", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__7; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__5; +x_3 = l_Lean_Name_mkStr2(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___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) { +_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; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__1; +x_12 = lean_box(0); +lean_inc(x_1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_12); +lean_inc_ref(x_13); +x_14 = l_Lean_mkConst(x_11, x_13); +x_15 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__4; +x_16 = l_Lean_mkConst(x_15, x_13); +lean_inc_ref(x_2); +x_17 = l_Lean_mkAppB(x_16, x_2, x_3); +lean_inc_ref(x_2); +x_18 = l_Lean_mkAppB(x_14, x_2, x_17); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__6; +x_20 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__8; +x_21 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___redArg(x_4, x_5, x_6, x_7, x_2, x_1, x_19, x_20, x_18); +x_22 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_21, x_9); +return x_22; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___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) { +_start: +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 4); +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_15; lean_object* x_16; +x_10 = lean_ctor_get(x_8, 1); +lean_inc_ref(x_10); +x_11 = lean_ctor_get(x_8, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_8, 3); +lean_inc_ref(x_12); +lean_dec_ref(x_8); +lean_inc(x_5); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3), 10, 9); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_10); +lean_closure_set(x_13, 2, x_12); +lean_closure_set(x_13, 3, x_1); +lean_closure_set(x_13, 4, x_2); +lean_closure_set(x_13, 5, x_3); +lean_closure_set(x_13, 6, x_4); +lean_closure_set(x_13, 7, x_5); +lean_closure_set(x_13, 8, x_6); +x_14 = lean_box(0); +x_15 = lean_apply_2(x_7, lean_box(0), x_14); +x_16 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_15, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_inc_ref(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_9, 0); +lean_inc(x_17); +lean_dec_ref(x_9); +x_18 = lean_apply_2(x_7, lean_box(0), x_17); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_dec_ref(x_5); +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +lean_inc(x_7); +lean_inc(x_10); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__2), 4, 3); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_9); +lean_closure_set(x_11, 2, x_7); +lean_inc(x_7); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__4), 8, 7); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_3); +lean_closure_set(x_12, 3, x_4); +lean_closure_set(x_12, 4, x_7); +lean_closure_set(x_12, 5, x_11); +lean_closure_set(x_12, 6, x_10); +x_13 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 5); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 5, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 6); +x_12 = lean_ctor_get(x_2, 7); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_10); +lean_ctor_set(x_17, 5, x_16); +lean_ctor_set(x_17, 6, x_11); +lean_ctor_set(x_17, 7, x_12); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_1, lean_box(0), x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_inc_ref(x_4); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__0), 2, 1); +lean_closure_set(x_5, 0, x_4); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__1), 3, 2); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_4); +x_7 = lean_apply_1(x_2, x_5); +x_8 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_7, x_6); +return x_8; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instHMul", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__0; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("toMul", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__3() { +_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_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__2; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___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_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("HMul", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__4; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("hMul", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__6; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__4; +x_3 = l_Lean_Name_mkStr2(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___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) { +_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; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__1; +x_12 = lean_box(0); +lean_inc(x_1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_12); +lean_inc_ref(x_13); +x_14 = l_Lean_mkConst(x_11, x_13); +x_15 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__3; +x_16 = l_Lean_mkConst(x_15, x_13); +lean_inc_ref(x_2); +x_17 = l_Lean_mkAppB(x_16, x_2, x_3); +lean_inc_ref(x_2); +x_18 = l_Lean_mkAppB(x_14, x_2, x_17); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__5; +x_20 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__7; +x_21 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___redArg(x_4, x_5, x_6, x_7, x_2, x_1, x_19, x_20, x_18); +x_22 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_21, x_9); +return x_22; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___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) { +_start: +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 5); +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_15; lean_object* x_16; +x_10 = lean_ctor_get(x_8, 1); +lean_inc_ref(x_10); +x_11 = lean_ctor_get(x_8, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_8, 3); +lean_inc_ref(x_12); +lean_dec_ref(x_8); +lean_inc(x_5); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3), 10, 9); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_10); +lean_closure_set(x_13, 2, x_12); +lean_closure_set(x_13, 3, x_1); +lean_closure_set(x_13, 4, x_2); +lean_closure_set(x_13, 5, x_3); +lean_closure_set(x_13, 6, x_4); +lean_closure_set(x_13, 7, x_5); +lean_closure_set(x_13, 8, x_6); +x_14 = lean_box(0); +x_15 = lean_apply_2(x_7, lean_box(0), x_14); +x_16 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_15, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_inc_ref(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_9, 0); +lean_inc(x_17); +lean_dec_ref(x_9); +x_18 = lean_apply_2(x_7, lean_box(0), x_17); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_dec_ref(x_5); +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +lean_inc(x_7); +lean_inc(x_10); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__2), 4, 3); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_9); +lean_closure_set(x_11, 2, x_7); +lean_inc(x_7); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__4), 8, 7); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_3); +lean_closure_set(x_12, 3, x_4); +lean_closure_set(x_12, 4, x_7); +lean_closure_set(x_12, 5, x_11); +lean_closure_set(x_12, 6, x_10); +x_13 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 6); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 6, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 5); +x_12 = lean_ctor_get(x_2, 7); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_10); +lean_ctor_set(x_17, 5, x_11); +lean_ctor_set(x_17, 6, x_16); +lean_ctor_set(x_17, 7, x_12); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_1, lean_box(0), x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_inc_ref(x_4); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__0), 2, 1); +lean_closure_set(x_5, 0, x_4); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__1), 3, 2); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_4); +x_7 = lean_apply_1(x_2, x_5); +x_8 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_7, x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___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) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_12 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_11, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___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) { +_start: +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 6); +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_15; lean_object* x_16; +x_10 = lean_ctor_get(x_8, 1); +lean_inc_ref(x_10); +x_11 = lean_ctor_get(x_8, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_8, 3); +lean_inc_ref(x_12); +lean_dec_ref(x_8); +lean_inc(x_5); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__3), 10, 9); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_2); +lean_closure_set(x_13, 2, x_3); +lean_closure_set(x_13, 3, x_4); +lean_closure_set(x_13, 4, x_11); +lean_closure_set(x_13, 5, x_10); +lean_closure_set(x_13, 6, x_12); +lean_closure_set(x_13, 7, x_5); +lean_closure_set(x_13, 8, x_6); +x_14 = lean_box(0); +x_15 = lean_apply_2(x_7, lean_box(0), x_14); +x_16 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_15, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_inc_ref(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_9, 0); +lean_inc(x_17); +lean_dec_ref(x_9); +x_18 = lean_apply_2(x_7, lean_box(0), x_17); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_dec_ref(x_5); +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +lean_inc(x_7); +lean_inc(x_10); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__2), 4, 3); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_9); +lean_closure_set(x_11, 2, x_7); +lean_inc(x_7); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg___lam__4), 8, 7); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_3); +lean_closure_set(x_12, 3, x_4); +lean_closure_set(x_12, 4, x_7); +lean_closure_set(x_12, 5, x_11); +lean_closure_set(x_12, 6, x_10); +x_13 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn_x27___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 7); +lean_dec(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_2, 7, x_5); +return x_2; +} +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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 2); +x_9 = lean_ctor_get(x_2, 3); +x_10 = lean_ctor_get(x_2, 4); +x_11 = lean_ctor_get(x_2, 5); +x_12 = lean_ctor_get(x_2, 6); +x_13 = lean_ctor_get(x_2, 8); +x_14 = lean_ctor_get(x_2, 9); +x_15 = lean_ctor_get(x_2, 10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 2, x_8); +lean_ctor_set(x_17, 3, x_9); +lean_ctor_set(x_17, 4, x_10); +lean_ctor_set(x_17, 5, x_11); +lean_ctor_set(x_17, 6, x_12); +lean_ctor_set(x_17, 7, x_16); +lean_ctor_set(x_17, 8, x_13); +lean_ctor_set(x_17, 9, x_14); +lean_ctor_set(x_17, 10, x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_1, lean_box(0), x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_inc_ref(x_4); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__0), 2, 1); +lean_closure_set(x_5, 0, x_4); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__1), 3, 2); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_4); +x_7 = lean_apply_1(x_2, x_5); +x_8 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_7, x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___redArg(x_1, x_2, x_3, x_4, x_5, x_6); +x_11 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_10, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___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) { +_start: +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_ctor_get(x_7, 1); +lean_inc_ref(x_9); +x_10 = lean_ctor_get(x_7, 2); +lean_inc(x_10); +x_11 = lean_ctor_get(x_7, 3); +lean_inc_ref(x_11); +lean_dec_ref(x_7); +lean_inc(x_4); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__3), 9, 8); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_3); +lean_closure_set(x_12, 3, x_10); +lean_closure_set(x_12, 4, x_9); +lean_closure_set(x_12, 5, x_11); +lean_closure_set(x_12, 6, x_4); +lean_closure_set(x_12, 7, x_5); +x_13 = lean_box(0); +x_14 = lean_apply_2(x_6, lean_box(0), x_13); +x_15 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_14, x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +lean_inc_ref(x_8); +lean_dec_ref(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +lean_dec_ref(x_8); +x_17 = lean_apply_2(x_6, lean_box(0), x_16); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +lean_dec_ref(x_4); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_inc(x_6); +lean_inc(x_9); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__2), 4, 3); +lean_closure_set(x_10, 0, x_9); +lean_closure_set(x_10, 1, x_8); +lean_closure_set(x_10, 2, x_6); +lean_inc(x_6); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg___lam__4), 7, 6); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_2); +lean_closure_set(x_11, 2, x_3); +lean_closure_set(x_11, 3, x_6); +lean_closure_set(x_11, 4, x_10); +lean_closure_set(x_11, 5, x_9); +x_12 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27(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; +x_6 = l_Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27___redArg(x_2, x_3, x_4, x_5); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -5662,7 +4037,7 @@ return x_3; } else { -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_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; x_7 = lean_ctor_get(x_3, 0); x_8 = lean_ctor_get(x_3, 1); x_9 = lean_ctor_get(x_3, 2); @@ -5673,6 +4048,12 @@ x_13 = lean_ctor_get(x_3, 6); x_14 = lean_ctor_get(x_3, 7); x_15 = lean_ctor_get(x_3, 8); x_16 = lean_ctor_get(x_3, 9); +x_17 = lean_ctor_get(x_3, 10); +x_18 = lean_ctor_get(x_3, 11); +x_19 = lean_ctor_get(x_3, 12); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -5684,19 +4065,22 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_3); -x_17 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_12, x_1, x_2); -x_18 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_8); -lean_ctor_set(x_18, 2, x_9); -lean_ctor_set(x_18, 3, x_10); -lean_ctor_set(x_18, 4, x_11); -lean_ctor_set(x_18, 5, x_17); -lean_ctor_set(x_18, 6, x_13); -lean_ctor_set(x_18, 7, x_14); -lean_ctor_set(x_18, 8, x_15); -lean_ctor_set(x_18, 9, x_16); -return x_18; +x_20 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_12, x_1, x_2); +x_21 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_20); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_17); +lean_ctor_set(x_21, 11, x_18); +lean_ctor_set(x_21, 12, x_19); +return x_21; } } } @@ -5736,7 +4120,7 @@ lean_dec_ref(x_16); x_19 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___lam__0), 3, 2); lean_closure_set(x_19, 0, x_1); lean_closure_set(x_19, 1, x_2); -x_20 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; +x_20 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; x_21 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_20, x_19, x_3, x_18); return x_21; } @@ -5931,10 +4315,279 @@ lean_dec(x_3); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVar___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM___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) { _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; 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_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM___lam__0___boxed), 11, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM___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: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__0(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; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 9); +x_8 = lean_ctor_get(x_5, 10); +lean_inc_ref(x_1); +x_9 = l_Lean_PersistentArray_push___redArg(x_7, x_1); +x_10 = l_Lean_PersistentHashMap_insert___redArg(x_2, x_3, x_8, x_1, x_4); +lean_ctor_set(x_5, 10, x_10); +lean_ctor_set(x_5, 9, x_9); +return x_5; +} +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; +x_11 = lean_ctor_get(x_5, 0); +x_12 = lean_ctor_get(x_5, 1); +x_13 = lean_ctor_get(x_5, 2); +x_14 = lean_ctor_get(x_5, 3); +x_15 = lean_ctor_get(x_5, 4); +x_16 = lean_ctor_get(x_5, 5); +x_17 = lean_ctor_get(x_5, 6); +x_18 = lean_ctor_get(x_5, 7); +x_19 = lean_ctor_get(x_5, 8); +x_20 = lean_ctor_get(x_5, 9); +x_21 = lean_ctor_get(x_5, 10); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_5); +lean_inc_ref(x_1); +x_22 = l_Lean_PersistentArray_push___redArg(x_20, x_1); +x_23 = l_Lean_PersistentHashMap_insert___redArg(x_2, x_3, x_21, x_1, x_4); +x_24 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_12); +lean_ctor_set(x_24, 2, x_13); +lean_ctor_set(x_24, 3, x_14); +lean_ctor_set(x_24, 4, x_15); +lean_ctor_set(x_24, 5, x_16); +lean_ctor_set(x_24, 6, x_17); +lean_ctor_set(x_24, 7, x_18); +lean_ctor_set(x_24, 8, x_19); +lean_ctor_set(x_24, 9, x_22); +lean_ctor_set(x_24, 10, x_23); +return x_24; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_1, lean_box(0), x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__2(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; +x_6 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; +x_7 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_SolverExtension_markTerm), 12, 3); +lean_closure_set(x_7, 0, lean_box(0)); +lean_closure_set(x_7, 1, x_6); +lean_closure_set(x_7, 2, x_1); +x_8 = lean_apply_2(x_2, lean_box(0), x_7); +x_9 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_8, x_4); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__3(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; +x_6 = lean_apply_1(x_1, x_2); +x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___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) { +_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; +x_11 = lean_ctor_get(x_1, 2); +lean_inc(x_11); +lean_dec(x_1); +lean_inc(x_11); +lean_inc_ref(x_2); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__0), 5, 4); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_3); +lean_closure_set(x_12, 2, x_4); +lean_closure_set(x_12, 3, x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__1), 3, 2); +lean_closure_set(x_13, 0, x_5); +lean_closure_set(x_13, 1, x_11); +lean_inc(x_7); +lean_inc_ref(x_2); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__2), 5, 4); +lean_closure_set(x_14, 0, x_2); +lean_closure_set(x_14, 1, x_6); +lean_closure_set(x_14, 2, x_7); +lean_closure_set(x_14, 3, x_13); +lean_inc(x_7); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__3), 5, 4); +lean_closure_set(x_15, 0, x_8); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_7); +lean_closure_set(x_15, 3, x_14); +x_16 = lean_apply_1(x_9, x_12); +x_17 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_16, x_15); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; +x_10 = lean_ctor_get(x_9, 9); +lean_inc_ref(x_10); +x_11 = lean_ctor_get(x_9, 10); +lean_inc_ref(x_11); +lean_dec_ref(x_9); +lean_inc_ref(x_3); +lean_inc_ref(x_2); +lean_inc_ref(x_1); +x_12 = l_Lean_PersistentHashMap_find_x3f___redArg(x_1, x_2, x_11, x_3); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_inc(x_6); +lean_inc(x_4); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__4), 10, 9); +lean_closure_set(x_13, 0, x_10); +lean_closure_set(x_13, 1, x_3); +lean_closure_set(x_13, 2, x_1); +lean_closure_set(x_13, 3, x_2); +lean_closure_set(x_13, 4, x_4); +lean_closure_set(x_13, 5, x_5); +lean_closure_set(x_13, 6, x_6); +lean_closure_set(x_13, 7, x_7); +lean_closure_set(x_13, 8, x_8); +x_14 = lean_box(0); +x_15 = lean_apply_2(x_4, lean_box(0), x_14); +x_16 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_15, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec_ref(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +lean_dec_ref(x_12); +x_18 = lean_apply_2(x_4, lean_box(0), x_17); +return x_18; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_instBEqExprPtr___lam__0___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_instHashableExprPtr___lam__0___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___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; 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; +x_6 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec_ref(x_2); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_3, 1); +lean_inc(x_9); +lean_dec_ref(x_3); +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +lean_dec_ref(x_6); +x_11 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__0; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__1; +lean_inc(x_7); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___lam__5), 9, 8); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +lean_closure_set(x_13, 2, x_5); +lean_closure_set(x_13, 3, x_10); +lean_closure_set(x_13, 4, x_1); +lean_closure_set(x_13, 5, x_7); +lean_closure_set(x_13, 6, x_4); +lean_closure_set(x_13, 7, x_9); +x_14 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_13); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; 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; uint8_t x_19; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_ctor_get(x_4, 1); x_7 = lean_ctor_get(x_4, 2); @@ -5945,10 +4598,13 @@ x_11 = lean_ctor_get(x_4, 6); x_12 = lean_ctor_get(x_4, 7); x_13 = lean_ctor_get(x_4, 8); x_14 = lean_ctor_get(x_4, 9); -x_15 = lean_array_get_size(x_8); -x_16 = lean_nat_dec_lt(x_1, x_15); -lean_dec(x_15); -if (x_16 == 0) +x_15 = lean_ctor_get(x_4, 10); +x_16 = lean_ctor_get(x_4, 11); +x_17 = lean_ctor_get(x_4, 12); +x_18 = lean_array_get_size(x_8); +x_19 = lean_nat_dec_lt(x_1, x_18); +lean_dec(x_18); +if (x_19 == 0) { lean_dec(x_3); lean_dec_ref(x_2); @@ -5956,8 +4612,11 @@ return x_4; } else { -uint8_t x_17; -lean_inc(x_14); +uint8_t x_20; +lean_inc(x_17); +lean_inc_ref(x_16); +lean_inc_ref(x_15); +lean_inc_ref(x_14); lean_inc_ref(x_13); lean_inc_ref(x_12); lean_inc_ref(x_11); @@ -5967,66 +4626,77 @@ lean_inc_ref(x_8); lean_inc_ref(x_7); lean_inc_ref(x_6); lean_inc_ref(x_5); -x_17 = !lean_is_exclusive(x_4); -if (x_17 == 0) +x_20 = !lean_is_exclusive(x_4); +if (x_20 == 0) { -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; uint8_t x_29; -x_18 = lean_ctor_get(x_4, 9); -lean_dec(x_18); -x_19 = lean_ctor_get(x_4, 8); -lean_dec(x_19); -x_20 = lean_ctor_get(x_4, 7); -lean_dec(x_20); -x_21 = lean_ctor_get(x_4, 6); +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; uint8_t x_35; +x_21 = lean_ctor_get(x_4, 12); lean_dec(x_21); -x_22 = lean_ctor_get(x_4, 5); +x_22 = lean_ctor_get(x_4, 11); lean_dec(x_22); -x_23 = lean_ctor_get(x_4, 4); +x_23 = lean_ctor_get(x_4, 10); lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 3); +x_24 = lean_ctor_get(x_4, 9); lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 2); +x_25 = lean_ctor_get(x_4, 8); lean_dec(x_25); -x_26 = lean_ctor_get(x_4, 1); +x_26 = lean_ctor_get(x_4, 7); lean_dec(x_26); -x_27 = lean_ctor_get(x_4, 0); +x_27 = lean_ctor_get(x_4, 6); lean_dec(x_27); -x_28 = lean_array_fget(x_8, x_1); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_28 = lean_ctor_get(x_4, 5); +lean_dec(x_28); +x_29 = lean_ctor_get(x_4, 4); +lean_dec(x_29); +x_30 = lean_ctor_get(x_4, 3); +lean_dec(x_30); +x_31 = lean_ctor_get(x_4, 2); +lean_dec(x_31); +x_32 = lean_ctor_get(x_4, 1); +lean_dec(x_32); +x_33 = lean_ctor_get(x_4, 0); +lean_dec(x_33); +x_34 = lean_array_fget(x_8, x_1); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 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; -x_30 = lean_ctor_get(x_28, 13); -x_31 = lean_ctor_get(x_28, 14); -x_32 = lean_box(0); -x_33 = lean_array_fset(x_8, x_1, x_32); +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_34, 0); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_38 = lean_ctor_get(x_36, 9); +x_39 = lean_ctor_get(x_36, 10); +x_40 = lean_box(0); +x_41 = lean_array_fset(x_8, x_1, x_40); lean_inc_ref(x_2); -x_34 = l_Lean_PersistentArray_push___redArg(x_30, x_2); -x_35 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_31, x_2, x_3); -lean_ctor_set(x_28, 14, x_35); -lean_ctor_set(x_28, 13, x_34); -x_36 = lean_array_fset(x_33, x_1, x_28); -lean_ctor_set(x_4, 3, x_36); +x_42 = l_Lean_PersistentArray_push___redArg(x_38, x_2); +x_43 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_39, x_2, x_3); +lean_ctor_set(x_36, 10, x_43); +lean_ctor_set(x_36, 9, x_42); +x_44 = lean_array_fset(x_41, x_1, x_34); +lean_ctor_set(x_4, 3, x_44); return x_4; } 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_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_37 = lean_ctor_get(x_28, 0); -x_38 = lean_ctor_get(x_28, 1); -x_39 = lean_ctor_get(x_28, 2); -x_40 = lean_ctor_get(x_28, 3); -x_41 = lean_ctor_get(x_28, 4); -x_42 = lean_ctor_get(x_28, 5); -x_43 = lean_ctor_get(x_28, 6); -x_44 = lean_ctor_get(x_28, 7); -x_45 = lean_ctor_get(x_28, 8); -x_46 = lean_ctor_get(x_28, 9); -x_47 = lean_ctor_get(x_28, 10); -x_48 = lean_ctor_get(x_28, 11); -x_49 = lean_ctor_get(x_28, 12); -x_50 = lean_ctor_get(x_28, 13); -x_51 = lean_ctor_get(x_28, 14); +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; +x_45 = lean_ctor_get(x_36, 0); +x_46 = lean_ctor_get(x_36, 1); +x_47 = lean_ctor_get(x_36, 2); +x_48 = lean_ctor_get(x_36, 3); +x_49 = lean_ctor_get(x_36, 4); +x_50 = lean_ctor_get(x_36, 5); +x_51 = lean_ctor_get(x_36, 6); +x_52 = lean_ctor_get(x_36, 7); +x_53 = lean_ctor_get(x_36, 8); +x_54 = lean_ctor_get(x_36, 9); +x_55 = lean_ctor_get(x_36, 10); +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_inc(x_49); @@ -6034,135 +4704,639 @@ lean_inc(x_48); 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_inc(x_37); -lean_dec(x_28); -x_52 = lean_box(0); -x_53 = lean_array_fset(x_8, x_1, x_52); +lean_dec(x_36); +x_56 = lean_box(0); +x_57 = lean_array_fset(x_8, x_1, x_56); lean_inc_ref(x_2); -x_54 = l_Lean_PersistentArray_push___redArg(x_50, x_2); -x_55 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_51, x_2, x_3); -x_56 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_56, 0, x_37); -lean_ctor_set(x_56, 1, x_38); -lean_ctor_set(x_56, 2, x_39); -lean_ctor_set(x_56, 3, x_40); -lean_ctor_set(x_56, 4, x_41); -lean_ctor_set(x_56, 5, x_42); -lean_ctor_set(x_56, 6, x_43); -lean_ctor_set(x_56, 7, x_44); -lean_ctor_set(x_56, 8, x_45); -lean_ctor_set(x_56, 9, x_46); -lean_ctor_set(x_56, 10, x_47); -lean_ctor_set(x_56, 11, x_48); -lean_ctor_set(x_56, 12, x_49); -lean_ctor_set(x_56, 13, x_54); -lean_ctor_set(x_56, 14, x_55); -x_57 = lean_array_fset(x_53, x_1, x_56); -lean_ctor_set(x_4, 3, x_57); +x_58 = l_Lean_PersistentArray_push___redArg(x_54, x_2); +x_59 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_55, x_2, x_3); +x_60 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_60, 0, x_45); +lean_ctor_set(x_60, 1, x_46); +lean_ctor_set(x_60, 2, x_47); +lean_ctor_set(x_60, 3, x_48); +lean_ctor_set(x_60, 4, x_49); +lean_ctor_set(x_60, 5, x_50); +lean_ctor_set(x_60, 6, x_51); +lean_ctor_set(x_60, 7, x_52); +lean_ctor_set(x_60, 8, x_53); +lean_ctor_set(x_60, 9, x_58); +lean_ctor_set(x_60, 10, x_59); +lean_ctor_set(x_34, 0, x_60); +x_61 = lean_array_fset(x_57, x_1, x_34); +lean_ctor_set(x_4, 3, x_61); return x_4; } } else { -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_dec(x_4); -x_58 = lean_array_fget(x_8, x_1); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_58, 2); -lean_inc_ref(x_61); -x_62 = lean_ctor_get(x_58, 3); -lean_inc(x_62); -x_63 = lean_ctor_get(x_58, 4); -lean_inc_ref(x_63); -x_64 = lean_ctor_get(x_58, 5); -lean_inc_ref(x_64); -x_65 = lean_ctor_get(x_58, 6); -lean_inc(x_65); -x_66 = lean_ctor_get(x_58, 7); +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_62 = lean_ctor_get(x_34, 0); +x_63 = lean_ctor_get(x_34, 1); +x_64 = lean_ctor_get(x_34, 2); +x_65 = lean_ctor_get(x_34, 3); +x_66 = lean_ctor_get(x_34, 4); lean_inc(x_66); -x_67 = lean_ctor_get(x_58, 8); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_34); +x_67 = lean_ctor_get(x_62, 0); lean_inc(x_67); -x_68 = lean_ctor_get(x_58, 9); -lean_inc(x_68); -x_69 = lean_ctor_get(x_58, 10); +x_68 = lean_ctor_get(x_62, 1); +lean_inc_ref(x_68); +x_69 = lean_ctor_get(x_62, 2); lean_inc(x_69); -x_70 = lean_ctor_get(x_58, 11); -lean_inc(x_70); -x_71 = lean_ctor_get(x_58, 12); -lean_inc_ref(x_71); -x_72 = lean_ctor_get(x_58, 13); -lean_inc_ref(x_72); -x_73 = lean_ctor_get(x_58, 14); -lean_inc_ref(x_73); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - lean_ctor_release(x_58, 2); - lean_ctor_release(x_58, 3); - lean_ctor_release(x_58, 4); - lean_ctor_release(x_58, 5); - lean_ctor_release(x_58, 6); - lean_ctor_release(x_58, 7); - lean_ctor_release(x_58, 8); - lean_ctor_release(x_58, 9); - lean_ctor_release(x_58, 10); - lean_ctor_release(x_58, 11); - lean_ctor_release(x_58, 12); - lean_ctor_release(x_58, 13); - lean_ctor_release(x_58, 14); - x_74 = x_58; +x_70 = lean_ctor_get(x_62, 3); +lean_inc_ref(x_70); +x_71 = lean_ctor_get(x_62, 4); +lean_inc(x_71); +x_72 = lean_ctor_get(x_62, 5); +lean_inc(x_72); +x_73 = lean_ctor_get(x_62, 6); +lean_inc(x_73); +x_74 = lean_ctor_get(x_62, 7); +lean_inc(x_74); +x_75 = lean_ctor_get(x_62, 8); +lean_inc_ref(x_75); +x_76 = lean_ctor_get(x_62, 9); +lean_inc_ref(x_76); +x_77 = lean_ctor_get(x_62, 10); +lean_inc_ref(x_77); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + lean_ctor_release(x_62, 2); + lean_ctor_release(x_62, 3); + lean_ctor_release(x_62, 4); + lean_ctor_release(x_62, 5); + lean_ctor_release(x_62, 6); + lean_ctor_release(x_62, 7); + lean_ctor_release(x_62, 8); + lean_ctor_release(x_62, 9); + lean_ctor_release(x_62, 10); + x_78 = x_62; } else { - lean_dec_ref(x_58); - x_74 = lean_box(0); + lean_dec_ref(x_62); + x_78 = lean_box(0); } -x_75 = lean_box(0); -x_76 = lean_array_fset(x_8, x_1, x_75); +x_79 = lean_box(0); +x_80 = lean_array_fset(x_8, x_1, x_79); lean_inc_ref(x_2); -x_77 = l_Lean_PersistentArray_push___redArg(x_72, x_2); -x_78 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_73, x_2, x_3); -if (lean_is_scalar(x_74)) { - x_79 = lean_alloc_ctor(0, 15, 0); +x_81 = l_Lean_PersistentArray_push___redArg(x_76, x_2); +x_82 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_77, x_2, x_3); +if (lean_is_scalar(x_78)) { + x_83 = lean_alloc_ctor(0, 11, 0); } else { - x_79 = x_74; + x_83 = x_78; } -lean_ctor_set(x_79, 0, x_59); -lean_ctor_set(x_79, 1, x_60); -lean_ctor_set(x_79, 2, x_61); -lean_ctor_set(x_79, 3, x_62); -lean_ctor_set(x_79, 4, x_63); -lean_ctor_set(x_79, 5, x_64); -lean_ctor_set(x_79, 6, x_65); -lean_ctor_set(x_79, 7, x_66); -lean_ctor_set(x_79, 8, x_67); -lean_ctor_set(x_79, 9, x_68); -lean_ctor_set(x_79, 10, x_69); -lean_ctor_set(x_79, 11, x_70); -lean_ctor_set(x_79, 12, x_71); -lean_ctor_set(x_79, 13, x_77); -lean_ctor_set(x_79, 14, x_78); -x_80 = lean_array_fset(x_76, x_1, x_79); -x_81 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_81, 0, x_5); -lean_ctor_set(x_81, 1, x_6); -lean_ctor_set(x_81, 2, x_7); -lean_ctor_set(x_81, 3, x_80); -lean_ctor_set(x_81, 4, x_9); -lean_ctor_set(x_81, 5, x_10); -lean_ctor_set(x_81, 6, x_11); -lean_ctor_set(x_81, 7, x_12); -lean_ctor_set(x_81, 8, x_13); -lean_ctor_set(x_81, 9, x_14); -return x_81; +lean_ctor_set(x_83, 0, x_67); +lean_ctor_set(x_83, 1, x_68); +lean_ctor_set(x_83, 2, x_69); +lean_ctor_set(x_83, 3, x_70); +lean_ctor_set(x_83, 4, x_71); +lean_ctor_set(x_83, 5, x_72); +lean_ctor_set(x_83, 6, x_73); +lean_ctor_set(x_83, 7, x_74); +lean_ctor_set(x_83, 8, x_75); +lean_ctor_set(x_83, 9, x_81); +lean_ctor_set(x_83, 10, x_82); +x_84 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_63); +lean_ctor_set(x_84, 2, x_64); +lean_ctor_set(x_84, 3, x_65); +lean_ctor_set(x_84, 4, x_66); +x_85 = lean_array_fset(x_80, x_1, x_84); +lean_ctor_set(x_4, 3, x_85); +return x_4; +} +} +else +{ +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_dec(x_4); +x_86 = lean_array_fget(x_8, x_1); +x_87 = lean_ctor_get(x_86, 0); +lean_inc_ref(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_86, 2); +lean_inc_ref(x_89); +x_90 = lean_ctor_get(x_86, 3); +lean_inc(x_90); +x_91 = lean_ctor_get(x_86, 4); +lean_inc(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; +} else { + lean_dec_ref(x_86); + x_92 = lean_box(0); +} +x_93 = lean_ctor_get(x_87, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_87, 1); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_87, 2); +lean_inc(x_95); +x_96 = lean_ctor_get(x_87, 3); +lean_inc_ref(x_96); +x_97 = lean_ctor_get(x_87, 4); +lean_inc(x_97); +x_98 = lean_ctor_get(x_87, 5); +lean_inc(x_98); +x_99 = lean_ctor_get(x_87, 6); +lean_inc(x_99); +x_100 = lean_ctor_get(x_87, 7); +lean_inc(x_100); +x_101 = lean_ctor_get(x_87, 8); +lean_inc_ref(x_101); +x_102 = lean_ctor_get(x_87, 9); +lean_inc_ref(x_102); +x_103 = lean_ctor_get(x_87, 10); +lean_inc_ref(x_103); +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); + lean_ctor_release(x_87, 5); + lean_ctor_release(x_87, 6); + lean_ctor_release(x_87, 7); + lean_ctor_release(x_87, 8); + lean_ctor_release(x_87, 9); + lean_ctor_release(x_87, 10); + x_104 = x_87; +} else { + lean_dec_ref(x_87); + x_104 = lean_box(0); +} +x_105 = lean_box(0); +x_106 = lean_array_fset(x_8, x_1, x_105); +lean_inc_ref(x_2); +x_107 = l_Lean_PersistentArray_push___redArg(x_102, x_2); +x_108 = l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0___redArg(x_103, x_2, x_3); +if (lean_is_scalar(x_104)) { + x_109 = lean_alloc_ctor(0, 11, 0); +} else { + x_109 = x_104; +} +lean_ctor_set(x_109, 0, x_93); +lean_ctor_set(x_109, 1, x_94); +lean_ctor_set(x_109, 2, x_95); +lean_ctor_set(x_109, 3, x_96); +lean_ctor_set(x_109, 4, x_97); +lean_ctor_set(x_109, 5, x_98); +lean_ctor_set(x_109, 6, x_99); +lean_ctor_set(x_109, 7, x_100); +lean_ctor_set(x_109, 8, x_101); +lean_ctor_set(x_109, 9, x_107); +lean_ctor_set(x_109, 10, x_108); +if (lean_is_scalar(x_92)) { + x_110 = lean_alloc_ctor(0, 5, 0); +} else { + x_110 = x_92; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_88); +lean_ctor_set(x_110, 2, x_89); +lean_ctor_set(x_110, 3, x_90); +lean_ctor_set(x_110, 4, x_91); +x_111 = lean_array_fset(x_106, x_1, x_110); +x_112 = lean_alloc_ctor(0, 13, 0); +lean_ctor_set(x_112, 0, x_5); +lean_ctor_set(x_112, 1, x_6); +lean_ctor_set(x_112, 2, x_7); +lean_ctor_set(x_112, 3, x_111); +lean_ctor_set(x_112, 4, x_9); +lean_ctor_set(x_112, 5, x_10); +lean_ctor_set(x_112, 6, x_11); +lean_ctor_set(x_112, 7, x_12); +lean_ctor_set(x_112, 8, x_13); +lean_ctor_set(x_112, 9, x_14); +lean_ctor_set(x_112, 10, x_15); +lean_ctor_set(x_112, 11, x_16); +lean_ctor_set(x_112, 12, x_17); +return x_112; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +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_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_12, 1); +x_17 = lean_ctor_get(x_12, 0); +lean_dec(x_17); +x_18 = lean_ctor_get(x_14, 9); +lean_inc_ref(x_18); +x_19 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_19); +lean_dec_ref(x_14); +x_20 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0___redArg(x_19, x_1); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_free_object(x_12); +x_21 = lean_ctor_get(x_18, 2); +lean_inc(x_21); +lean_dec_ref(x_18); +lean_inc(x_21); +lean_inc_ref(x_1); +lean_inc(x_2); +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0___lam__0___boxed), 4, 3); +lean_closure_set(x_22, 0, x_2); +lean_closure_set(x_22, 1, x_1); +lean_closure_set(x_22, 2, x_21); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; +x_24 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_23, x_22, x_3, x_16); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec_ref(x_24); +lean_inc_ref(x_1); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec_ref(x_26); +x_28 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_23, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +if (lean_obj_tag(x_28) == 0) +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +lean_ctor_set(x_28, 0, x_21); +return x_28; +} +else +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_21); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +else +{ +uint8_t x_33; +lean_dec(x_21); +x_33 = !lean_is_exclusive(x_28); +if (x_33 == 0) +{ +return x_28; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_28, 0); +x_35 = lean_ctor_get(x_28, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_28); +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; +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_21); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_37 = !lean_is_exclusive(x_26); +if (x_37 == 0) +{ +return x_26; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_26, 0); +x_39 = lean_ctor_get(x_26, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_26); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_21); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_41 = !lean_is_exclusive(x_24); +if (x_41 == 0) +{ +return x_24; +} +else +{ +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_dec(x_24); +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 +{ +lean_object* x_45; +lean_dec_ref(x_18); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_45 = lean_ctor_get(x_20, 0); +lean_inc(x_45); +lean_dec_ref(x_20); +lean_ctor_set(x_12, 0, x_45); +return x_12; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_12, 1); +lean_inc(x_46); +lean_dec(x_12); +x_47 = lean_ctor_get(x_14, 9); +lean_inc_ref(x_47); +x_48 = lean_ctor_get(x_14, 10); +lean_inc_ref(x_48); +lean_dec_ref(x_14); +x_49 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0___redArg(x_48, x_1); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_47, 2); +lean_inc(x_50); +lean_dec_ref(x_47); +lean_inc(x_50); +lean_inc_ref(x_1); +lean_inc(x_2); +x_51 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0___lam__0___boxed), 4, 3); +lean_closure_set(x_51, 0, x_2); +lean_closure_set(x_51, 1, x_1); +lean_closure_set(x_51, 2, x_50); +x_52 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0; +x_53 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_52, x_51, x_3, x_46); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec_ref(x_53); +lean_inc_ref(x_1); +x_55 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_54); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec_ref(x_55); +x_57 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_52, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_56); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +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_50); +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_dec(x_50); +x_61 = lean_ctor_get(x_57, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_63 = x_57; +} else { + lean_dec_ref(x_57); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_50); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec_ref(x_1); +x_65 = lean_ctor_get(x_55, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_55, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_67 = x_55; +} else { + lean_dec_ref(x_55); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_50); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_69 = lean_ctor_get(x_53, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_53, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_71 = x_53; +} else { + lean_dec_ref(x_53); + 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_dec_ref(x_47); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_73 = lean_ctor_get(x_49, 0); +lean_inc(x_73); +lean_dec_ref(x_49); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_46); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_75 = !lean_is_exclusive(x_12); +if (x_75 == 0) +{ +return x_12; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_12, 0); +x_77 = lean_ctor_get(x_12, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_12); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } } } @@ -6171,94 +5345,230 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVar(lean_object* x_ _start: { lean_object* x_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) +x_12 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0(x_1, 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_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +lean_object* x_5; +x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___at___Lean_Meta_Grind_Arith_CommRing_mkSVar_spec__0___lam__0(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__0() { +_start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); -x_16 = lean_ctor_get(x_14, 13); -lean_inc_ref(x_16); -x_17 = lean_ctor_get(x_14, 14); -lean_inc_ref(x_17); -lean_dec(x_14); -x_18 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0___redArg(x_17, x_1); -if (lean_obj_tag(x_18) == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`grind` failed to find instance", 31, 31); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__1() { +_start: { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -lean_free_object(x_12); -x_19 = lean_ctor_get(x_16, 2); -lean_inc(x_19); -lean_dec_ref(x_16); -lean_inc(x_19); +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_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) { +_start: +{ +lean_object* x_7; +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc(x_3); +lean_inc_ref(x_2); lean_inc_ref(x_1); -lean_inc(x_2); -x_20 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVar___lam__0___boxed), 4, 3); -lean_closure_set(x_20, 0, x_2); -lean_closure_set(x_20, 1, x_1); -lean_closure_set(x_20, 2, x_19); -x_21 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -x_22 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_21, x_20, x_3, x_15); -if (lean_obj_tag(x_22) == 0) +x_7 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec_ref(x_22); -lean_inc_ref(x_1); -x_24 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); -if (lean_obj_tag(x_24) == 0) +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec_ref(x_24); -x_26 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_21, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -lean_ctor_set(x_26, 0, x_19); -return x_26; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec_ref(x_7); +x_10 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__1; +x_11 = l_Lean_indentExpr(x_1); +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_throwError___at___Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring_spec__0___redArg(x_12, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_13; } else { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); +uint8_t x_14; +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_14 = !lean_is_exclusive(x_7); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_7, 0); +lean_dec(x_15); +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +lean_dec_ref(x_8); +lean_ctor_set(x_7, 0, x_16); +return x_7; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_7, 1); +lean_inc(x_17); +lean_dec(x_7); +x_18 = lean_ctor_get(x_8, 0); +lean_inc(x_18); +lean_dec_ref(x_8); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +} +} +else +{ +uint8_t x_20; +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_20 = !lean_is_exclusive(x_7); +if (x_20 == 0) +{ +return x_7; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_7, 0); +x_22 = lean_ctor_get(x_7, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_7); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg(x_1, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_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_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; +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_16); +lean_inc_ref(x_17); +x_18 = l_Lean_mkConst(x_3, x_17); +lean_inc_ref(x_1); +x_19 = l_Lean_Expr_app___override(x_18, x_1); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_20 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg(x_19, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +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); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_21); +lean_inc(x_4); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_4, x_21, x_5, x_11, x_12, x_13, x_14, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec_ref(x_23); +x_25 = l_Lean_mkConst(x_4, x_17); +x_26 = l_Lean_mkAppB(x_25, x_1, x_21); +lean_inc(x_10); +x_27 = lean_grind_canon(x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_19); -lean_ctor_set(x_30, 1, x_29); +lean_dec_ref(x_27); +x_30 = l_Lean_Meta_Grind_shareCommon___redArg(x_28, x_10, x_29); +lean_dec(x_10); return x_30; } +else +{ +lean_dec(x_10); +return x_27; +} } else { uint8_t x_31; -lean_dec(x_19); -x_31 = !lean_is_exclusive(x_26); +lean_dec(x_21); +lean_dec_ref(x_17); +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_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec_ref(x_1); +x_31 = !lean_is_exclusive(x_23); if (x_31 == 0) { -return x_26; +return x_23; } else { lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); +x_32 = lean_ctor_get(x_23, 0); +x_33 = lean_ctor_get(x_23, 1); lean_inc(x_33); lean_inc(x_32); -lean_dec(x_26); +lean_dec(x_23); x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); @@ -6268,452 +5578,23 @@ return x_34; } else { -uint8_t x_35; -lean_dec(x_19); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec_ref(x_1); -x_35 = !lean_is_exclusive(x_24); -if (x_35 == 0) -{ -return x_24; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_24, 0); -x_37 = lean_ctor_get(x_24, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_24); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_19); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_39 = !lean_is_exclusive(x_22); -if (x_39 == 0) -{ -return x_22; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_22, 0); -x_41 = lean_ctor_get(x_22, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_22); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -lean_object* x_43; -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(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_43 = lean_ctor_get(x_18, 0); -lean_inc(x_43); -lean_dec_ref(x_18); -lean_ctor_set(x_12, 0, x_43); -return x_12; -} -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_12, 0); -x_45 = lean_ctor_get(x_12, 1); -lean_inc(x_45); -lean_inc(x_44); +lean_dec_ref(x_17); +lean_dec(x_14); +lean_dec_ref(x_13); lean_dec(x_12); -x_46 = lean_ctor_get(x_44, 13); -lean_inc_ref(x_46); -x_47 = lean_ctor_get(x_44, 14); -lean_inc_ref(x_47); -lean_dec(x_44); -x_48 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0___redArg(x_47, x_1); -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_46, 2); -lean_inc(x_49); -lean_dec_ref(x_46); -lean_inc(x_49); -lean_inc_ref(x_1); -lean_inc(x_2); -x_50 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_mkSVar___lam__0___boxed), 4, 3); -lean_closure_set(x_50, 0, x_2); -lean_closure_set(x_50, 1, x_1); -lean_closure_set(x_50, 2, x_49); -x_51 = l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0; -x_52 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_SolverExtension_modifyStateImpl___redArg(x_51, x_50, x_3, x_45); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec_ref(x_52); -lean_inc_ref(x_1); -x_54 = l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_53); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec_ref(x_54); -x_56 = l_Lean_Meta_Grind_SolverExtension_markTerm___redArg(x_51, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_55); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -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; -} else { - lean_dec_ref(x_56); - x_58 = lean_box(0); -} -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(0, 2, 0); -} else { - x_59 = x_58; -} -lean_ctor_set(x_59, 0, x_49); -lean_ctor_set(x_59, 1, x_57); -return x_59; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_49); -x_60 = lean_ctor_get(x_56, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_56, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_62 = x_56; -} else { - lean_dec_ref(x_56); - x_62 = lean_box(0); -} -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(1, 2, 0); -} else { - x_63 = x_62; -} -lean_ctor_set(x_63, 0, x_60); -lean_ctor_set(x_63, 1, x_61); -return x_63; -} -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_49); +lean_dec_ref(x_11); lean_dec(x_10); lean_dec_ref(x_9); 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_3); -lean_dec_ref(x_1); -x_64 = lean_ctor_get(x_54, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_54, 1); -lean_inc(x_65); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_66 = x_54; -} else { - lean_dec_ref(x_54); - 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(x_67, 0, x_64); -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_dec(x_49); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_68 = lean_ctor_get(x_52, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_52, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_70 = x_52; -} else { - lean_dec_ref(x_52); - x_70 = lean_box(0); -} -if (lean_is_scalar(x_70)) { - x_71 = lean_alloc_ctor(1, 2, 0); -} else { - x_71 = x_70; -} -lean_ctor_set(x_71, 0, x_68); -lean_ctor_set(x_71, 1, x_69); -return x_71; -} -} -else -{ -lean_object* x_72; lean_object* x_73; -lean_dec_ref(x_46); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_72 = lean_ctor_get(x_48, 0); -lean_inc(x_72); -lean_dec_ref(x_48); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_45); -return x_73; -} -} -} -else -{ -uint8_t x_74; -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_74 = !lean_is_exclusive(x_12); -if (x_74 == 0) -{ -return x_12; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_12, 0); -x_76 = lean_ctor_get(x_12, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_12); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkSVar___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_mkSVar___lam__0(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Nat_cast___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__0(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_nat_to_int(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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, 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; -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_2); -lean_ctor_set(x_16, 1, x_15); -lean_inc_ref(x_16); -x_17 = l_Lean_mkConst(x_3, x_16); -lean_inc_ref(x_1); -x_18 = l_Lean_Expr_app___override(x_17, x_1); -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_19 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg(x_18, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_19) == 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_inc(x_21); -lean_dec_ref(x_19); -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_20); -lean_inc(x_4); -x_22 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_4, x_20, x_5, x_10, x_11, x_12, x_13, x_21); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec_ref(x_22); -x_24 = l_Lean_mkConst(x_4, x_16); -x_25 = l_Lean_mkAppB(x_24, x_1, x_20); -lean_inc(x_9); -x_26 = lean_grind_canon(x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -if (lean_obj_tag(x_26) == 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); -x_29 = l_Lean_Meta_Grind_shareCommon___redArg(x_27, x_9, x_28); -lean_dec(x_9); -return x_29; -} -else -{ -lean_dec(x_9); -return x_26; -} -} -else -{ -uint8_t x_30; -lean_dec(x_20); -lean_dec_ref(x_16); -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(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec_ref(x_1); -x_30 = !lean_is_exclusive(x_22); -if (x_30 == 0) -{ -return x_22; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_22, 0); -x_32 = lean_ctor_get(x_22, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_22); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -else -{ -lean_dec_ref(x_16); -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(x_7); -lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_1); -return x_19; +return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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, 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; -x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1_spec__1___redArg(x_1, x_2, x_3, x_4, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___lam__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -6930,7 +5811,7 @@ return x_62; } } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__0() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__0() { _start: { lean_object* x_1; @@ -6938,19 +5819,19 @@ x_1 = lean_mk_string_unchecked("toNeg", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___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_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__0; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__2; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___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_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__2() { _start: { lean_object* x_1; @@ -6958,16 +5839,16 @@ x_1 = lean_mk_string_unchecked("Neg", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__2; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__4() { _start: { lean_object* x_1; @@ -6975,17 +5856,17 @@ x_1 = lean_mk_string_unchecked("neg", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__4; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__4; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__2; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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_object* x_10) { _start: { lean_object* x_11; @@ -7012,7 +5893,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_13, 3); lean_inc_ref(x_18); lean_dec_ref(x_13); -x_19 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__1; +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__1; x_20 = lean_box(0); lean_inc(x_17); x_21 = lean_alloc_ctor(1, 2, 0); @@ -7021,8 +5902,8 @@ lean_ctor_set(x_21, 1, x_20); x_22 = l_Lean_mkConst(x_19, x_21); lean_inc_ref(x_16); x_23 = l_Lean_mkAppB(x_22, x_16, x_18); -x_24 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__3; -x_25 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__5; +x_24 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__3; +x_25 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__5; lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); @@ -7031,7 +5912,7 @@ lean_inc(x_5); lean_inc_ref(x_4); lean_inc(x_3); lean_inc(x_2); -x_26 = l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1_spec__1___redArg(x_16, x_17, x_24, x_25, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_26 = l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0(x_16, x_17, x_24, x_25, x_23, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; @@ -7041,7 +5922,7 @@ x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec_ref(x_26); lean_inc(x_27); -x_29 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___lam__0), 2, 1); +x_29 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___lam__0), 2, 1); lean_closure_set(x_29, 0, x_27); x_30 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing(x_29, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_28); lean_dec(x_9); @@ -7186,7 +6067,7 @@ return x_48; } } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__0() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__0() { _start: { lean_object* x_1; @@ -7194,19 +6075,19 @@ x_1 = lean_mk_string_unchecked("ofNat", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___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_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__0; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___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_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__2() { _start: { lean_object* x_1; @@ -7214,17 +6095,17 @@ x_1 = lean_mk_string_unchecked("OfNat", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__0; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__2; x_3 = l_Lean_Name_mkStr2(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -7233,7 +6114,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -7262,7 +6143,7 @@ lean_inc_ref(x_20); lean_dec_ref(x_14); x_21 = lean_nat_abs(x_1); x_22 = l_Lean_mkRawNatLit(x_21); -x_23 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__1; +x_23 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__1; x_24 = lean_box(0); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_19); @@ -7272,10 +6153,10 @@ x_26 = l_Lean_mkConst(x_23, x_25); lean_inc_ref(x_22); lean_inc_ref(x_18); x_27 = l_Lean_mkApp3(x_26, x_18, x_20, x_22); -x_28 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__3; +x_28 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__3; x_29 = l_Lean_mkConst(x_28, x_25); x_30 = l_Lean_mkApp3(x_29, x_18, x_22, x_27); -x_31 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__4; +x_31 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__4; x_32 = lean_int_dec_lt(x_1, x_31); if (x_32 == 0) { @@ -7294,7 +6175,7 @@ else { lean_object* x_33; lean_free_object(x_12); -x_33 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_33 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); if (lean_obj_tag(x_33) == 0) { uint8_t x_34; @@ -7344,7 +6225,7 @@ lean_inc_ref(x_44); lean_dec_ref(x_14); x_45 = lean_nat_abs(x_1); x_46 = l_Lean_mkRawNatLit(x_45); -x_47 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__1; +x_47 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__1; x_48 = lean_box(0); x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_43); @@ -7354,10 +6235,10 @@ x_50 = l_Lean_mkConst(x_47, x_49); lean_inc_ref(x_46); lean_inc_ref(x_42); x_51 = l_Lean_mkApp3(x_50, x_42, x_44, x_46); -x_52 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__3; +x_52 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__3; x_53 = l_Lean_mkConst(x_52, x_49); x_54 = l_Lean_mkApp3(x_53, x_42, x_46, x_51); -x_55 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__4; +x_55 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__4; x_56 = lean_int_dec_lt(x_1, x_55); if (x_56 == 0) { @@ -7378,7 +6259,7 @@ return x_57; else { lean_object* x_58; -x_58 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_41); +x_58 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_41); 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; @@ -7444,7 +6325,137 @@ return x_67; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__4___lam__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Nat_cast___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_nat_to_int(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_20; lean_object* x_21; lean_object* x_22; +x_16 = lean_box(0); +lean_inc(x_2); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_16); +lean_inc(x_2); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_2); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_18); +lean_inc_ref(x_19); +x_20 = l_Lean_mkConst(x_3, x_19); +lean_inc_ref_n(x_1, 3); +x_21 = l_Lean_mkApp3(x_20, x_1, x_1, x_1); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_22 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg(x_21, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec_ref(x_22); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_23); +lean_inc(x_4); +x_25 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_4, x_23, x_5, x_11, x_12, x_13, x_14, x_24); +if (lean_obj_tag(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_25, 1); +lean_inc(x_26); +lean_dec_ref(x_25); +x_27 = l_Lean_mkConst(x_4, x_19); +lean_inc_ref_n(x_1, 2); +x_28 = l_Lean_mkApp4(x_27, x_1, x_1, x_1, x_23); +lean_inc(x_10); +x_29 = lean_grind_canon(x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +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_Meta_Grind_shareCommon___redArg(x_30, x_10, x_31); +lean_dec(x_10); +return x_32; +} +else +{ +lean_dec(x_10); +return x_29; +} +} +else +{ +uint8_t x_33; +lean_dec(x_23); +lean_dec_ref(x_19); +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_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec_ref(x_1); +x_33 = !lean_is_exclusive(x_25); +if (x_33 == 0) +{ +return x_25; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_25, 0); +x_35 = lean_ctor_get(x_25, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_25); +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; +} +} +} +else +{ +lean_dec_ref(x_19); +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_8); +lean_dec(x_7); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_1); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5___lam__0(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -7661,7 +6672,7 @@ return x_62; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; @@ -7688,7 +6699,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_13, 4); lean_inc_ref(x_18); lean_dec_ref(x_13); -x_19 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__1; +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__1; x_20 = lean_box(0); lean_inc(x_17); x_21 = lean_alloc_ctor(1, 2, 0); @@ -7696,14 +6707,14 @@ lean_ctor_set(x_21, 0, x_17); lean_ctor_set(x_21, 1, x_20); lean_inc_ref(x_21); x_22 = l_Lean_mkConst(x_19, x_21); -x_23 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__6; +x_23 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__4; x_24 = l_Lean_mkConst(x_23, x_21); lean_inc_ref(x_16); x_25 = l_Lean_mkAppB(x_24, x_16, x_18); lean_inc_ref(x_16); x_26 = l_Lean_mkAppB(x_22, x_16, x_25); -x_27 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__8; -x_28 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__10; +x_27 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__6; +x_28 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__8; lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); @@ -7712,7 +6723,7 @@ lean_inc(x_5); lean_inc_ref(x_4); lean_inc(x_3); lean_inc(x_2); -x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0(x_16, x_17, x_27, x_28, x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5_spec__5(x_16, x_17, x_27, x_28, x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; @@ -7722,7 +6733,7 @@ x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec_ref(x_29); lean_inc(x_30); -x_32 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__4___lam__0), 2, 1); +x_32 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5___lam__0), 2, 1); lean_closure_set(x_32, 0, x_30); x_33 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing(x_32, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); lean_dec(x_9); @@ -7867,7 +6878,7 @@ return x_51; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5___lam__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__7___lam__0(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -8084,7 +7095,7 @@ return x_62; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; @@ -8111,7 +7122,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_13, 4); lean_inc_ref(x_18); lean_dec_ref(x_13); -x_19 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__1; +x_19 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__1; x_20 = lean_box(0); lean_inc(x_17); x_21 = lean_alloc_ctor(1, 2, 0); @@ -8119,14 +7130,14 @@ lean_ctor_set(x_21, 0, x_17); lean_ctor_set(x_21, 1, x_20); lean_inc_ref(x_21); x_22 = l_Lean_mkConst(x_19, x_21); -x_23 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__3; +x_23 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__3; x_24 = l_Lean_mkConst(x_23, x_21); lean_inc_ref(x_16); x_25 = l_Lean_mkAppB(x_24, x_16, x_18); lean_inc_ref(x_16); x_26 = l_Lean_mkAppB(x_22, x_16, x_25); -x_27 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__5; -x_28 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__7; +x_27 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__5; +x_28 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__7; lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); @@ -8135,7 +7146,7 @@ lean_inc(x_5); lean_inc_ref(x_4); lean_inc(x_3); lean_inc(x_2); -x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0(x_16, x_17, x_27, x_28, x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5_spec__5(x_16, x_17, x_27, x_28, x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; @@ -8145,7 +7156,7 @@ x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec_ref(x_29); lean_inc(x_30); -x_32 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5___lam__0), 2, 1); +x_32 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__7___lam__0), 2, 1); lean_closure_set(x_32, 0, x_30); x_33 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing(x_32, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); lean_dec(x_9); @@ -8290,7 +7301,207 @@ return x_51; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6___lam__0(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("HPow", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__0; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Level_ofNat(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Nat_mkType; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("npow", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__4; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2; +x_3 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1; +x_4 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn___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_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("hPow", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__6; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__0; +x_3 = l_Lean_Name_mkStr2(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__1; +x_15 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__2; +x_16 = lean_box(0); +lean_inc(x_1); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +lean_inc_ref(x_17); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_19, 1, x_18); +lean_inc_ref(x_19); +x_20 = l_Lean_mkConst(x_14, x_19); +x_21 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__3; +lean_inc_ref_n(x_2, 2); +x_22 = l_Lean_mkApp3(x_20, x_2, x_21, x_2); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +x_23 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg(x_22, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(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; +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 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__5; +x_27 = l_Lean_mkConst(x_26, x_17); +lean_inc_ref(x_2); +x_28 = l_Lean_mkAppB(x_27, x_2, x_3); +x_29 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__7; +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_24); +x_30 = l_Lean_Meta_Grind_Arith_CommRing_checkInst(x_29, x_24, x_28, x_9, x_10, x_11, x_12, x_25); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_mkConst(x_29, x_19); +lean_inc_ref(x_2); +x_33 = l_Lean_mkApp4(x_32, x_2, x_21, x_2, x_24); +lean_inc(x_8); +x_34 = lean_grind_canon(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +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 = l_Lean_Meta_Grind_shareCommon___redArg(x_35, x_8, x_36); +lean_dec(x_8); +return x_37; +} +else +{ +lean_dec(x_8); +return x_34; +} +} +else +{ +uint8_t x_38; +lean_dec(x_24); +lean_dec_ref(x_19); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_2); +x_38 = !lean_is_exclusive(x_30); +if (x_38 == 0) +{ +return x_30; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_30, 0); +x_40 = lean_ctor_get(x_30, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_30); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +lean_dec_ref(x_19); +lean_dec_ref(x_17); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_23; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8___lam__0(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -8507,7 +7718,7 @@ return x_62; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6(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_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8(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; @@ -8542,7 +7753,7 @@ lean_inc(x_5); lean_inc_ref(x_4); lean_inc(x_3); lean_inc(x_2); -x_19 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg(x_17, x_16, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_19 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8(x_17, x_16, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -8552,7 +7763,7 @@ x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec_ref(x_19); lean_inc(x_20); -x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6___lam__0), 2, 1); +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8___lam__0), 2, 1); lean_closure_set(x_22, 0, x_20); x_23 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommRing(x_22, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21); lean_dec(x_9); @@ -8697,155 +7908,95 @@ return x_41; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go(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) { +static lean_object* _init_l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedGoalM(lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10(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; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10___closed__0; +x_13 = lean_alloc_closure((void*)(l_instInhabitedForall___redArg___lam__0___boxed), 2, 1); +lean_closure_set(x_13, 0, x_12); +x_14 = lean_panic_fn(x_13, x_1); +x_15 = lean_apply_10(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_15; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Tactic.Grind.Arith.CommRing.SemiringM", 47, 47); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Grind.CommRing.Expr.denoteAsRingExpr.go", 44, 44); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("unreachable code has been reached", 33, 33); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__3() { +_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_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__2; +x_2 = lean_unsigned_to_nat(39u); +x_3 = lean_unsigned_to_nat(162u); +x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__1; +x_5 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__0; +x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(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: { switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); lean_dec_ref(x_1); -x_13 = lean_nat_to_int(x_12); -x_14 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); -lean_dec(x_13); -return x_14; +lean_dec(x_12); +return x_13; } case 1: { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_1, 0); -lean_inc(x_15); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); lean_dec_ref(x_1); -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_4); -lean_inc(x_3); -lean_inc(x_2); -x_16 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -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 = l_Lean_Meta_Grind_Arith_CommRing_getSemiring(x_2, x_3, x_4, x_5, x_6, 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); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec(x_3); +x_15 = lean_nat_to_int(x_14); +x_16 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); -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_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_22 = x_19; -} else { - lean_dec_ref(x_19); - x_22 = lean_box(0); -} -x_27 = lean_ctor_get(x_20, 13); -lean_inc_ref(x_27); -lean_dec(x_20); -x_28 = lean_ctor_get(x_27, 2); -x_29 = l_Lean_instInhabitedExpr; -x_30 = lean_nat_dec_lt(x_15, x_28); -if (x_30 == 0) -{ -lean_object* x_31; -lean_dec_ref(x_27); lean_dec(x_15); -x_31 = l_outOfBounds___redArg(x_29); -x_23 = x_31; -goto block_26; -} -else -{ -lean_object* x_32; -x_32 = l_Lean_PersistentArray_get_x21___redArg(x_29, x_27, x_15); -lean_dec(x_15); -x_23 = x_32; -goto block_26; -} -block_26: -{ -lean_object* x_24; lean_object* x_25; -x_24 = l_Lean_Expr_app___override(x_17, x_23); -if (lean_is_scalar(x_22)) { - x_25 = lean_alloc_ctor(0, 2, 0); -} else { - x_25 = x_22; -} -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_21); -return x_25; -} -} -else -{ -uint8_t x_33; -lean_dec(x_17); -lean_dec(x_15); -x_33 = !lean_is_exclusive(x_19); -if (x_33 == 0) -{ -return x_19; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_19, 0); -x_35 = lean_ctor_get(x_19, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_19); -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; -} -} -} -else -{ -lean_dec(x_15); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); return x_16; } -} -case 2: +case 3: { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_37); -x_38 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_38); +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); lean_dec_ref(x_1); lean_inc(x_10); lean_inc_ref(x_9); @@ -8855,15 +8006,129 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -x_39 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_39) == 0) +lean_inc(x_2); +x_18 = l_Lean_Meta_Grind_Arith_CommRing_getToQFn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_18) == 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_inc(x_20); +lean_dec_ref(x_18); +x_21 = l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +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_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_24 = x_21; +} else { + lean_dec_ref(x_21); + x_24 = lean_box(0); +} +x_29 = lean_ctor_get(x_22, 0); +lean_inc_ref(x_29); +lean_dec(x_22); +x_30 = lean_ctor_get(x_29, 9); +lean_inc_ref(x_30); +lean_dec_ref(x_29); +x_31 = lean_ctor_get(x_30, 2); +x_32 = l_Lean_instInhabitedExpr; +x_33 = lean_nat_dec_lt(x_17, x_31); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec_ref(x_30); +lean_dec(x_17); +x_34 = l_outOfBounds___redArg(x_32); +x_25 = x_34; +goto block_28; +} +else +{ +lean_object* x_35; +x_35 = l_Lean_PersistentArray_get_x21___redArg(x_32, x_30, x_17); +lean_dec(x_17); +x_25 = x_35; +goto block_28; +} +block_28: +{ +lean_object* x_26; lean_object* x_27; +x_26 = l_Lean_Expr_app___override(x_19, x_25); +if (lean_is_scalar(x_24)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_24; +} +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_23); +return x_27; +} +} +else +{ +uint8_t x_36; +lean_dec(x_19); +lean_dec(x_17); +x_36 = !lean_is_exclusive(x_21); +if (x_36 == 0) +{ +return x_21; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_21, 0); +x_38 = lean_ctor_get(x_21, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_21); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +lean_dec(x_17); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); +return x_18; +} +} +case 5: { lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec_ref(x_39); +x_40 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_40); +x_41 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_41); +lean_dec_ref(x_1); lean_inc(x_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -8872,8 +8137,7 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_42 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_41); +x_42 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; @@ -8882,45 +8146,79 @@ lean_inc(x_43); x_44 = lean_ctor_get(x_42, 1); lean_inc(x_44); lean_dec_ref(x_42); -x_45 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); +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_4); +lean_inc(x_3); +lean_inc(x_2); +x_45 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); 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_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec_ref(x_45); +x_48 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_45, 0); -x_48 = l_Lean_mkAppB(x_40, x_43, x_47); -lean_ctor_set(x_45, 0, x_48); -return x_45; +uint8_t x_49; +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_48, 0); +x_51 = l_Lean_mkAppB(x_43, x_46, x_50); +lean_ctor_set(x_48, 0, x_51); +return x_48; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_45, 0); -x_50 = lean_ctor_get(x_45, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_45); -x_51 = l_Lean_mkAppB(x_40, x_43, x_49); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -return x_52; +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_48, 0); +x_53 = lean_ctor_get(x_48, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_48); +x_54 = l_Lean_mkAppB(x_43, x_46, x_52); +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; +} +} +else +{ +lean_dec(x_46); +lean_dec(x_43); +return x_48; } } else { lean_dec(x_43); -lean_dec(x_40); +lean_dec_ref(x_41); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); return x_45; } } else { -lean_dec(x_40); -lean_dec_ref(x_38); +lean_dec_ref(x_41); +lean_dec_ref(x_40); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -8933,29 +8231,13 @@ lean_dec(x_2); return x_42; } } -else +case 7: { -lean_dec_ref(x_38); -lean_dec_ref(x_37); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -return x_39; -} -} -case 3: -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_53); -x_54 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_54); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_56); +x_57 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_57); lean_dec_ref(x_1); lean_inc(x_10); lean_inc_ref(x_9); @@ -8965,15 +8247,15 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -x_55 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_55) == 0) +x_58 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -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_dec_ref(x_55); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +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_10); lean_inc_ref(x_9); lean_inc(x_8); @@ -8983,54 +8265,70 @@ lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_58 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go(x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_57); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -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 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_60); +x_61 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_60); if (lean_obj_tag(x_61) == 0) { -uint8_t x_62; -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) +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); +x_64 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_63); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_61, 0); -x_64 = l_Lean_mkAppB(x_56, x_59, x_63); -lean_ctor_set(x_61, 0, x_64); -return x_61; +uint8_t x_65; +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_64, 0); +x_67 = l_Lean_mkAppB(x_59, x_62, x_66); +lean_ctor_set(x_64, 0, x_67); +return x_64; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_61, 0); -x_66 = lean_ctor_get(x_61, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_61); -x_67 = l_Lean_mkAppB(x_56, x_59, x_65); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_64, 0); +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_64); +x_70 = l_Lean_mkAppB(x_59, x_62, x_68); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +} +else +{ +lean_dec(x_62); +lean_dec(x_59); +return x_64; } } else { lean_dec(x_59); -lean_dec(x_56); +lean_dec_ref(x_57); +lean_dec(x_10); +lean_dec_ref(x_9); +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_3); +lean_dec(x_2); return x_61; } } else { -lean_dec(x_56); -lean_dec_ref(x_54); +lean_dec_ref(x_57); +lean_dec_ref(x_56); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -9043,29 +8341,13 @@ lean_dec(x_2); return x_58; } } -else +case 8: { -lean_dec_ref(x_54); -lean_dec_ref(x_53); -lean_dec(x_10); -lean_dec_ref(x_9); -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_3); -lean_dec(x_2); -return x_55; -} -} -default: -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_69); -x_70 = lean_ctor_get(x_1, 1); -lean_inc(x_70); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_72); +x_73 = lean_ctor_get(x_1, 1); +lean_inc(x_73); lean_dec_ref(x_1); lean_inc(x_10); lean_inc_ref(x_9); @@ -9075,56 +8357,56 @@ lean_inc(x_6); lean_inc_ref(x_5); lean_inc(x_4); lean_inc(x_3); -x_71 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec_ref(x_71); -x_74 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go(x_69, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_73); +x_74 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_74) == 0) { -uint8_t x_75; -x_75 = !lean_is_exclusive(x_74); -if (x_75 == 0) +lean_object* x_75; lean_object* x_76; lean_object* x_77; +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); +x_77 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_76); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_74, 0); -x_77 = l_Lean_mkNatLit(x_70); -x_78 = l_Lean_mkAppB(x_72, x_76, x_77); -lean_ctor_set(x_74, 0, x_78); -return x_74; +uint8_t x_78; +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = l_Lean_mkNatLit(x_73); +x_81 = l_Lean_mkAppB(x_75, x_79, x_80); +lean_ctor_set(x_77, 0, x_81); +return x_77; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_79 = lean_ctor_get(x_74, 0); -x_80 = lean_ctor_get(x_74, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_74); -x_81 = l_Lean_mkNatLit(x_70); -x_82 = l_Lean_mkAppB(x_72, x_79, x_81); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_80); -return x_83; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_82 = lean_ctor_get(x_77, 0); +x_83 = lean_ctor_get(x_77, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_77); +x_84 = l_Lean_mkNatLit(x_73); +x_85 = l_Lean_mkAppB(x_75, x_82, x_84); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_83); +return x_86; } } else { -lean_dec(x_72); -lean_dec(x_70); -return x_74; +lean_dec(x_75); +lean_dec(x_73); +return x_77; } } else { -lean_dec(x_70); -lean_dec_ref(x_69); +lean_dec(x_73); +lean_dec_ref(x_72); lean_dec(x_10); lean_dec_ref(x_9); lean_dec(x_8); @@ -9134,73 +8416,112 @@ lean_dec_ref(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_71; +return x_74; +} +} +default: +{ +lean_object* x_87; lean_object* x_88; +lean_dec_ref(x_1); +x_87 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__3; +x_88 = l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10(x_87, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_88; } } } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_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, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0(x_1, x_2, x_3, 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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_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, 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; -x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1_spec__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); +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__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); lean_dec(x_6); return x_16; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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_12; -x_12 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__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 = l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); lean_dec(x_1); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_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_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; +x_16 = l_Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5_spec__5(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(x_6); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getAddFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getMulFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6___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_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr(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_Grind_CommRing_Expr_denoteAsRingExpr(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; lean_inc(x_6); -x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -9222,7 +8543,9 @@ return x_12; } lean_object* initialize_Lean_Meta_Tactic_Grind_SynthInstance(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Types(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingM(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadRing(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadSemiring(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Ring_CommSemiringAdapter(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions(uint8_t builtin, lean_object*); @@ -9237,9 +8560,15 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Types(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_RingM(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadRing(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_MonadSemiring(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Init_Grind_Ring_CommSemiringAdapter(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -9249,14 +8578,20 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Functions(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getSemiring___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_modifySemiring___redArg___closed__0); l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadCanonSemiringM); +l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommSemiring___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_modifyCommSemiring___redArg___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommSemiringSemiringM); l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__0); l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_SemiringM_getCommRing___closed__1(); @@ -9267,74 +8602,6 @@ l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM___closed__1 = _init_ lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM___closed__1); l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadCommRingSemiringM); -l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkBinHomoFn___at___Lean_Meta_Grind_Arith_CommRing_getAddFn_x27_spec__0_spec__0___redArg___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__4); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__5); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__6); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__7); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__8 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__8); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__9 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__9); -l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__10 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___closed__10); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__4); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__5); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__6); -l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___closed__7); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__4); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__5); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__6); -l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn_x27_spec__0___redArg___closed__7); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkNatCastFn___at___Lean_Meta_Grind_Arith_CommRing_getNatCastFn_x27_spec__0___closed__4); l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__0); l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__1(); @@ -9343,6 +8610,10 @@ l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__2 = _init_l_Lean_Meta_Grind_ lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__2); l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__3(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getToQFn___closed__5); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__0(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__0); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__1(); @@ -9351,6 +8622,40 @@ l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_A lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__2); l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Meta_Grind_Arith_CommRing_mkAddRightCancelInst_x3f___redArg___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__2); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__5); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__6); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__7); +l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__8 = _init_l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getAddFn_x27___redArg___lam__3___closed__8); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__2); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__5); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__6); +l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getMulFn_x27___redArg___lam__3___closed__7); l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg___closed__0(); l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_Arith_CommRing_getTermSemiringId_x3f_spec__0_spec__0___redArg___closed__1(); l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_Arith_CommRing_setTermSemiringId_spec__0_spec__0___redArg___closed__0(); @@ -9359,28 +8664,64 @@ l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___closed__0 = _init_l_Lean_Me lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___closed__0); l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_setTermSemiringId___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__4); -l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1_spec__1___closed__5); -l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_Ring_OfSemiring_Expr_denoteAsRingExpr_go_spec__1___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM = _init_l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instMonadSetTermIdSemiringM); +l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkSVarCore___redArg___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_MonadCanon_synthInstance___at___Lean_Meta_Grind_Arith_CommRing_mkUnaryFn___at___Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0_spec__0_spec__0___redArg___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__2); +l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_getNegFn___at___Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0_spec__0___closed__5); +l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__2); +l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_denoteNum___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__0___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__2); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__4); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__5); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__6); +l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_mkPowFn___at___Lean_Meta_Grind_Arith_CommRing_getPowFn___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__8_spec__8___closed__7); +l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10___closed__0 = _init_l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10___closed__0(); +lean_mark_persistent(l_panic___at_____private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go_spec__10___closed__0); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__0); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__1); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__2); +l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_SemiringM_0__Lean_Grind_CommRing_Expr_denoteAsRingExpr_go___closed__3); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/ToExpr.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/ToExpr.c index 4beb8926cf..b91285d707 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/ToExpr.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/ToExpr.c @@ -20,21 +20,18 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPower___closed__2 static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPower___closed__1; lean_object* l_Lean_mkNatLit(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPoly; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofMon___closed__5; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__8; lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPoly___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__5; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofMon___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofMon(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__7; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofMon___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__19; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__5; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__17; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPower___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__3; @@ -44,31 +41,24 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__13; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofMon___closed__3; lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPoly___closed__2; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__12; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__8; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__4; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__18; uint8_t lean_int_dec_le(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__0; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__11; lean_object* l_Lean_Level_ofNat(lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__4; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__22; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__10; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__5; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__15; lean_object* lean_nat_to_int(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__21; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__15; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__11; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__16; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__6; lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__5; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__2; @@ -82,13 +72,10 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprMon___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprMon___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1; -lean_object* l_Lean_Name_mkStr6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__6; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__20; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__17; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprMon; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); @@ -97,27 +84,22 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__11; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPower; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprPower___closed__3; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__13; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__12; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__0; lean_object* l_Int_toNat(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofMon___closed__6; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__16; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__9; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__14; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__4; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__10; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofMon___closed__4; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__7; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__7; lean_object* l_Lean_instToExprInt_mkNat(lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__8; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_int_neg(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__19; @@ -129,7 +111,6 @@ static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__6; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__9; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__9; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__24; -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr(lean_object*); static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__0() { _start: @@ -1208,264 +1189,6 @@ x_1 = l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr___closed__3; return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Ring", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("OfSemiring", 10, 10); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__1; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__1; -x_6 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__0; -x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__2; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__9; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__1; -x_6 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__0; -x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__4; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__6() { -_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; lean_object* x_7; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_ofPoly___closed__17; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__1; -x_6 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__0; -x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__6; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__8() { -_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; lean_object* x_7; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__19; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__1; -x_6 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__0; -x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__8; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__10() { -_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; lean_object* x_7; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__22; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__0; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__1; -x_6 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__0; -x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__10; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -lean_dec_ref(x_1); -x_3 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__3; -x_4 = l_Lean_mkNatLit(x_2); -x_5 = l_Lean_Expr_app___override(x_3, x_4); -return x_5; -} -case 1: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec_ref(x_1); -x_7 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__5; -x_8 = l_Lean_mkNatLit(x_6); -x_9 = l_Lean_Expr_app___override(x_7, x_8); -return x_9; -} -case 2: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_10 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_10); -x_11 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_11); -lean_dec_ref(x_1); -x_12 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__7; -x_13 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_10); -x_14 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_11); -x_15 = l_Lean_mkAppB(x_12, x_13, x_14); -return x_15; -} -case 3: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_16); -x_17 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_17); -lean_dec_ref(x_1); -x_18 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__9; -x_19 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_16); -x_20 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_17); -x_21 = l_Lean_mkAppB(x_18, x_19, x_20); -return x_21; -} -default: -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_22 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_22); -x_23 = lean_ctor_get(x_1, 1); -lean_inc(x_23); -lean_dec_ref(x_1); -x_24 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__11; -x_25 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr(x_22); -x_26 = l_Lean_mkNatLit(x_23); -x_27 = l_Lean_mkAppB(x_24, x_25, x_26); -return x_27; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_ofRingExpr___closed__0; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1; -x_3 = l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0; -x_4 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__1; -x_5 = l_Lean_Meta_Grind_Arith_CommRing_ofPower___closed__0; -x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1); -return x_6; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__1; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__0; -x_3 = lean_alloc_ctor(0, 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_Meta_Grind_Arith_CommRing_instToExprExpr__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__3; -return x_1; -} -} lean_object* initialize_Init_Grind_Ring_CommSolver(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Ring_CommSemiringAdapter(uint8_t builtin, lean_object*); lean_object* initialize_Lean_ToExpr(uint8_t builtin, lean_object*); @@ -1641,40 +1364,6 @@ l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr___closed__3 = _init_l_Lean_Meta_ lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr___closed__3); l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr = _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__4); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__5); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__6 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__6); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__7 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__7); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__8 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__8); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__9 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__9); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__10 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__10); -l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__11 = _init_l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_ofSemiringExpr___closed__11); -l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1___closed__3); -l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instToExprExpr__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Types.c index d330d01d40..5a56bcd439 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/Types.c @@ -44,7 +44,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_ctorEli static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_2273073757____hygCtx___hyg_2_(lean_object*); -static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_ctorIdx(lean_object*); lean_object* l_Array_empty(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modify_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -75,6 +74,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_superpose_elim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_DiseqCnstr_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_input_elim(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_CommSemiring_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_mul_elim___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__0; @@ -94,7 +95,9 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_modify_x27___redArg___ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_superpose_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_compare(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_State_ctorIdx___boxed(lean_object*); +static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_CommSemiring_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_CommRing_ctorIdx(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0; @@ -106,6 +109,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_core_elim LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_numEq0_elim___redArg(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_core_elim(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_p(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_Ring_ctorIdx___boxed(lean_object*); @@ -113,6 +117,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_numEq0_el static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_get_x27___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_compare___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstrProof_ctorElim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_PolyDerivation_ctorElim___redArg(lean_object*, lean_object*); @@ -809,6 +814,90 @@ lean_dec_ref(x_1); return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_Semiring_ctorIdx(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_unsigned_to_nat(0u); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_Semiring_ctorIdx___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_Semiring_ctorIdx(x_1); +lean_dec_ref(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___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_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___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_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instInhabitedPersistentArray_default(lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__3() { +_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; lean_object* x_7; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1; +x_3 = lean_box(0); +x_4 = lean_box(0); +x_5 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__2; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +lean_ctor_set(x_7, 2, x_4); +lean_ctor_set(x_7, 3, x_5); +lean_ctor_set(x_7, 4, x_3); +lean_ctor_set(x_7, 5, x_3); +lean_ctor_set(x_7, 6, x_3); +lean_ctor_set(x_7, 7, x_3); +lean_ctor_set(x_7, 8, x_2); +lean_ctor_set(x_7, 9, x_1); +lean_ctor_set(x_7, 10, x_2); +return x_7; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__3; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_Ring_ctorIdx(lean_object* x_1) { _start: { @@ -830,34 +919,26 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_def _start: { lean_object* x_1; -x_1 = l_Lean_instInhabitedPersistentArray_default(lean_box(0)); +x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__1() { _start: { -lean_object* x_1; -x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__1; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___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_Grind_Arith_CommRing_instInhabitedRing_default___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__0; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__1; +x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2; x_3 = lean_box(0); x_4 = lean_box(0); x_5 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__2; @@ -887,7 +968,7 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_def _start: { lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__3; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__2; return x_1; } } @@ -992,7 +1073,7 @@ x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommRing_default; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_Semiring_ctorIdx(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_CommSemiring_ctorIdx(lean_object* x_1) { _start: { lean_object* x_2; @@ -1000,75 +1081,45 @@ x_2 = lean_unsigned_to_nat(0u); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_Semiring_ctorIdx___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_CommSemiring_ctorIdx___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_Semiring_ctorIdx(x_1); +x_2 = l_Lean_Meta_Grind_Arith_CommRing_CommSemiring_ctorIdx(x_1); lean_dec_ref(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__2; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default; +x_5 = lean_alloc_ctor(0, 5, 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_1); +lean_ctor_set(x_5, 4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default() { _start: { lean_object* x_1; -x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default___closed__0; return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___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_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__0; -x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1; -x_3 = lean_box(0); -x_4 = lean_box(0); -x_5 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__2; -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_alloc_ctor(0, 15, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_6); -lean_ctor_set(x_7, 2, x_5); -lean_ctor_set(x_7, 3, x_4); -lean_ctor_set(x_7, 4, x_5); -lean_ctor_set(x_7, 5, x_5); -lean_ctor_set(x_7, 6, x_3); -lean_ctor_set(x_7, 7, x_3); -lean_ctor_set(x_7, 8, x_3); -lean_ctor_set(x_7, 9, x_3); -lean_ctor_set(x_7, 10, x_3); -lean_ctor_set(x_7, 11, x_3); -lean_ctor_set(x_7, 12, x_2); -lean_ctor_set(x_7, 13, x_1); -lean_ctor_set(x_7, 14, x_2); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default() { +static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default; +x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default; return x_1; } } @@ -1122,7 +1173,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_unsigned_to_nat(0u); x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__2; x_3 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__0; -x_4 = lean_alloc_ctor(0, 10, 0); +x_4 = lean_alloc_ctor(0, 13, 0); lean_ctor_set(x_4, 0, x_3); lean_ctor_set(x_4, 1, x_2); lean_ctor_set(x_4, 2, x_2); @@ -1132,7 +1183,10 @@ lean_ctor_set(x_4, 5, x_2); lean_ctor_set(x_4, 6, x_3); lean_ctor_set(x_4, 7, x_2); lean_ctor_set(x_4, 8, x_2); -lean_ctor_set(x_4, 9, x_1); +lean_ctor_set(x_4, 9, x_3); +lean_ctor_set(x_4, 10, x_2); +lean_ctor_set(x_4, 11, x_2); +lean_ctor_set(x_4, 12, x_1); return x_4; } } @@ -1302,14 +1356,24 @@ l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__0 = _init_l_Lean lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__0); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__3); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__0); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__1); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__3 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default___closed__3); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing_default); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing(); @@ -1324,16 +1388,12 @@ l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommRing_default = _init_l_Lean_Me lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommRing_default); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommRing = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommRing(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommRing); -l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__0); -l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__1); -l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default___closed__2); -l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring_default); -l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring(); -lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedSemiring); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default___closed__0); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring_default); +l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring(); +lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedCommSemiring); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__0 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__0); l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedState_default___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/VarRename.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/VarRename.c index d7b231ae6c..c24133135f 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/VarRename.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/VarRename.c @@ -38,17 +38,13 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Power_renameVars___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lean_Grind_CommRing_Power_renameVars_spec__0_spec__0(lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Mon_renameVars(lean_object*, lean_object*); static lean_object* l_Lean_Grind_CommRing_Expr_renameVars___closed__0; size_t lean_usize_sub(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___closed__0; lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Mon_collectVars(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); size_t lean_usize_land(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_collectVars(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lean_Grind_CommRing_Power_renameVars_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) { _start: { @@ -703,230 +699,6 @@ goto _start; } } } -static lean_object* _init_l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___closed__0() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -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_Grind_Ring_OfSemiring_Expr_renameVars(lean_object* x_1, lean_object* x_2) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -return x_1; -} -case 1: -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_1, 0); -x_5 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lean_Grind_CommRing_Power_renameVars_spec__0___redArg(x_2, x_4); -lean_dec(x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; -lean_free_object(x_1); -x_6 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___closed__0; -return x_6; -} -else -{ -lean_object* x_7; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec_ref(x_5); -lean_ctor_set(x_1, 0, x_7); -return x_1; -} -} -else -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -lean_dec(x_1); -x_9 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lean_Grind_CommRing_Power_renameVars_spec__0___redArg(x_2, x_8); -lean_dec(x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___closed__0; -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec_ref(x_9); -x_12 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_12, 0, x_11); -return x_12; -} -} -} -case 2: -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_1); -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_1, 0); -x_15 = lean_ctor_get(x_1, 1); -x_16 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_14, x_2); -x_17 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_15, x_2); -lean_ctor_set(x_1, 1, x_17); -lean_ctor_set(x_1, 0, x_16); -return x_1; -} -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_1, 0); -x_19 = lean_ctor_get(x_1, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_1); -x_20 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_18, x_2); -x_21 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_19, x_2); -x_22 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -case 3: -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_1); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_1, 0); -x_25 = lean_ctor_get(x_1, 1); -x_26 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_24, x_2); -x_27 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_25, x_2); -lean_ctor_set(x_1, 1, x_27); -lean_ctor_set(x_1, 0, x_26); -return x_1; -} -else -{ -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_1, 0); -x_29 = lean_ctor_get(x_1, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_1); -x_30 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_28, x_2); -x_31 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_29, x_2); -x_32 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -default: -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_1); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_1, 0); -x_35 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_34, x_2); -lean_ctor_set(x_1, 0, x_35); -return x_1; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_1, 0); -x_37 = lean_ctor_get(x_1, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_1); -x_38 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_36, x_2); -x_39 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Grind_Ring_OfSemiring_Expr_renameVars(x_1, x_2); -lean_dec_ref(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Grind_Ring_OfSemiring_Expr_collectVars(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_dec_ref(x_1); -return x_2; -} -case 1: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -lean_dec_ref(x_1); -x_10 = l_Lean_Meta_Grind_collectVar(x_9, x_2); -return x_10; -} -case 4: -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_11); -lean_dec_ref(x_1); -x_1 = x_11; -goto _start; -} -default: -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_13); -x_14 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_14); -lean_dec_ref(x_1); -x_3 = x_13; -x_4 = x_14; -x_5 = x_2; -goto block_8; -} -} -block_8: -{ -lean_object* x_6; -x_6 = l_Lean_Grind_Ring_OfSemiring_Expr_collectVars(x_3, x_5); -x_1 = x_4; -x_2 = x_6; -goto _start; -} -} -} lean_object* initialize_Init_Grind_Ring_CommSolver(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Ring_CommSemiringAdapter(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_VarRename(uint8_t builtin, lean_object*); @@ -946,8 +718,6 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Grind_CommRing_Expr_renameVars___closed__0 = _init_l_Lean_Grind_CommRing_Expr_renameVars___closed__0(); lean_mark_persistent(l_Lean_Grind_CommRing_Expr_renameVars___closed__0); -l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___closed__0 = _init_l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___closed__0(); -lean_mark_persistent(l_Lean_Grind_Ring_OfSemiring_Expr_renameVars___closed__0); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c index ca5cc934b7..4466acda7a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c @@ -14,26 +14,27 @@ extern "C" { #endif static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__32; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__24; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__10; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindFromOpt(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__22; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__15; static lean_object* l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___closed__1; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__15; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(uint8_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_infer_elim(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instInhabitedConfigWithKey___private__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_cases_elim___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr_2723947585____hygCtx___hyg_2_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_throwInvalidUsrModifier(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__23; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__26; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__16; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___Lean_Meta_Grind_getAttrKindCore_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -46,6 +47,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindCore___boxed(lean_object*, lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__43; lean_object* l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__30; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__5; @@ -59,35 +61,38 @@ LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___Lean_throwError_ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_intro_elim(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__44; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__11; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__6; -lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__21; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__22; -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__26; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_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*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__29; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__1; LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__9; static lean_object* l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___closed__0; -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_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_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__7; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_intro_elim___redArg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_ext_elim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_ext_elim(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__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_Meta_Grind_getAttrKindCore___closed__40; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__12; lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofSyntax(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__8; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__3; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__41; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__42; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__23; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__16; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__27; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__4; static lean_object* l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__2; @@ -101,10 +106,11 @@ lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_addSymbolPriorityAttr(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__20; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__7; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_ctorIdx___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__27; static lean_object* l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__2; -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(uint8_t, 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_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(uint8_t, uint8_t, 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_Grind_getAttrKindCore___closed__35; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__38; LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -119,18 +125,16 @@ uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__8; lean_object* l_Lean_Meta_Grind_eraseEMatchAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_addExtAttr(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__2; static lean_object* l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__1; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__39; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_ctorIdx(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindCore(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); lean_object* l_Lean_Meta_Grind_addCasesAttr(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__2; static lean_object* l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__3; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___Lean_Meta_Grind_getAttrKindCore_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__34; @@ -139,8 +143,7 @@ static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__45; lean_object* l_Lean_Meta_Grind_isExtTheorem___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__20; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__28; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__0; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_symbol_elim___redArg(lean_object*, lean_object*); @@ -148,16 +151,18 @@ LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___Lean_Meta_Grind_getAttrKindC static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__10; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__14; LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__8; uint8_t l_Lean_Syntax_isNone(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__4; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__13; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__25; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_ctorElim___redArg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__17; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_infer_elim___redArg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__19; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__12; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_cases_elim(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2(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_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2(uint8_t, 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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr_3118450633____hygCtx___hyg_2_(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -168,7 +173,7 @@ static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_symbol_elim(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__17; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__13; @@ -176,15 +181,16 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_r lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__33; lean_object* l_Lean_Meta_isInductivePredicate_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__5; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__37; lean_object* l_Lean_Syntax_isNatLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_AttrKind_ematch_elim___redArg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__14; static lean_object* l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__4; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__28; lean_object* l_Lean_Meta_Grind_isCasesAttrPredicateCandidate_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindFromOpt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___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_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__3; static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__46; LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2108,111 +2114,1295 @@ x_8 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Met return x_8; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(uint8_t 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, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(uint8_t x_1, uint8_t 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, lean_object* x_11, lean_object* x_12) { _start: { -if (lean_obj_tag(x_5) == 0) +if (lean_obj_tag(x_6) == 0) { -lean_object* x_12; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_6); -lean_ctor_set(x_12, 1, x_11); -return x_12; +lean_object* x_13; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_7); +lean_ctor_set(x_13, 1, x_12); +return x_13; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_5, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_5, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_6, 0); lean_inc(x_14); -lean_dec_ref(x_5); -x_15 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_10, x_11); -if (lean_obj_tag(x_15) == 0) +x_15 = lean_ctor_get(x_6, 1); +lean_inc(x_15); +lean_dec_ref(x_6); +x_16 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_11, x_12); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* 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_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec_ref(x_15); -x_18 = lean_alloc_ctor(8, 0, 1); -lean_ctor_set_uint8(x_18, 0, x_1); -lean_inc(x_10); -lean_inc_ref(x_9); -lean_inc(x_8); -lean_inc_ref(x_7); -x_19 = l_Lean_Meta_Grind_addEMatchAttr(x_13, x_2, x_18, x_16, x_3, x_7, x_8, x_9, x_10, x_17); -if (lean_obj_tag(x_19) == 0) +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec_ref(x_16); +x_19 = lean_alloc_ctor(8, 0, 1); +lean_ctor_set_uint8(x_19, 0, x_1); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +x_20 = l_Lean_Meta_Grind_addEMatchAttr(x_14, x_2, x_19, x_17, x_3, x_4, x_8, x_9, x_10, x_11, x_18); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec_ref(x_19); +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec_ref(x_20); { -lean_object* _tmp_4 = x_14; -lean_object* _tmp_5 = x_4; -lean_object* _tmp_10 = x_20; -x_5 = _tmp_4; +lean_object* _tmp_5 = x_15; +lean_object* _tmp_6 = x_5; +lean_object* _tmp_11 = x_21; x_6 = _tmp_5; -x_11 = _tmp_10; +x_7 = _tmp_6; +x_12 = _tmp_11; } goto _start; } else { -lean_dec(x_14); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -return x_19; -} -} -else -{ -uint8_t x_22; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_22 = !lean_is_exclusive(x_15); -if (x_22 == 0) -{ -return x_15; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_15, 0); -x_24 = lean_ctor_get(x_15, 1); -lean_inc(x_24); -lean_inc(x_23); lean_dec(x_15); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +return x_20; +} +} +else +{ +uint8_t x_23; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +x_23 = !lean_is_exclusive(x_16); +if (x_23 == 0) +{ +return x_16; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_16, 0); +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_16); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2(uint8_t 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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2(uint8_t x_1, uint8_t 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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_14; -x_14 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_1, x_2, x_3, x_4, x_6, x_7, x_9, x_10, x_11, x_12, x_13); -return x_14; +lean_object* x_15; +x_15 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_1, x_2, x_3, x_4, x_5, x_7, x_8, x_10, x_11, x_12, x_13, x_14); +return x_15; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___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) { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__1; +x_2 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +lean_ctor_set(x_2, 2, x_1); +lean_ctor_set(x_2, 3, x_1); +lean_ctor_set(x_2, 4, x_1); +lean_ctor_set(x_2, 5, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___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___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__1; +x_2 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +lean_ctor_set(x_2, 2, x_1); +lean_ctor_set(x_2, 3, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_instInhabitedConfigWithKey___private__1; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid `[grind intro]`, `", 26, 26); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("` is not an inductive predicate", 31, 31); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t 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) { +_start: +{ +size_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; uint8_t x_21; +x_11 = 5; +x_12 = l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__1; +lean_inc_n(x_1, 3); +x_13 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_1); +lean_ctor_set(x_13, 2, x_1); +lean_ctor_set(x_13, 3, x_12); +lean_ctor_set(x_13, 4, x_12); +lean_ctor_set(x_13, 5, x_12); +lean_ctor_set(x_13, 6, x_12); +lean_ctor_set(x_13, 7, x_12); +lean_ctor_set(x_13, 8, x_12); +x_14 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__0; +x_15 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__1; +x_16 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__2; +lean_inc_n(x_1, 2); +x_17 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +lean_ctor_set(x_17, 2, x_1); +lean_ctor_set(x_17, 3, x_1); +lean_ctor_set_usize(x_17, 4, x_11); +x_18 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__3; +lean_inc_ref(x_17); +lean_inc(x_2); +x_19 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +lean_ctor_set(x_19, 2, x_2); +lean_ctor_set(x_19, 3, x_17); +lean_ctor_set(x_19, 4, x_18); +x_20 = lean_st_mk_ref(x_19, x_10); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_32; lean_object* x_36; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc_ref(x_8); +x_36 = l_Lean_Meta_Grind_getAttrKindFromOpt(x_6, x_8, x_9, x_23); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec_ref(x_36); +x_39 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4; +x_40 = 0; +x_41 = lean_box(1); +x_42 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_42, 0, x_12); +lean_ctor_set(x_42, 1, x_17); +lean_ctor_set(x_42, 2, x_41); +x_43 = lean_mk_empty_array_with_capacity(x_1); +x_44 = lean_box(0); +x_45 = lean_alloc_ctor(0, 7, 3); +lean_ctor_set(x_45, 0, x_39); +lean_ctor_set(x_45, 1, x_2); +lean_ctor_set(x_45, 2, x_42); +lean_ctor_set(x_45, 3, x_43); +lean_ctor_set(x_45, 4, x_44); +lean_ctor_set(x_45, 5, x_1); +lean_ctor_set(x_45, 6, x_44); +lean_ctor_set_uint8(x_45, sizeof(void*)*7, x_40); +lean_ctor_set_uint8(x_45, sizeof(void*)*7 + 1, x_40); +lean_ctor_set_uint8(x_45, sizeof(void*)*7 + 2, x_40); +switch (lean_obj_tag(x_37)) { +case 0: +{ +lean_object* x_46; +lean_free_object(x_20); +lean_dec(x_6); +x_46 = lean_ctor_get(x_37, 0); +lean_inc(x_46); +lean_dec_ref(x_37); +if (lean_obj_tag(x_46) == 9) +{ +lean_object* x_47; +lean_dec_ref(x_45); +lean_dec(x_5); +x_47 = l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg(x_8, x_9, x_38); +lean_dec(x_9); +lean_dec_ref(x_8); +x_32 = x_47; +goto block_35; +} +else +{ +lean_object* x_48; +x_48 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_9, x_38); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +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); +lean_inc(x_22); +x_51 = l_Lean_Meta_Grind_addEMatchAttr(x_5, x_7, x_46, x_49, x_3, x_4, x_45, x_22, x_8, x_9, x_50); +x_32 = x_51; +goto block_35; +} +else +{ +uint8_t x_52; +lean_dec(x_46); +lean_dec_ref(x_45); +lean_dec(x_22); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_5); +x_52 = !lean_is_exclusive(x_48); +if (x_52 == 0) +{ +return x_48; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +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_dec(x_48); +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; +} +} +} +} +case 1: +{ +uint8_t x_56; lean_object* x_57; +lean_dec_ref(x_45); +lean_free_object(x_20); +lean_dec(x_6); +x_56 = lean_ctor_get_uint8(x_37, 0); +lean_dec_ref(x_37); +x_57 = l_Lean_Meta_Grind_addCasesAttr(x_5, x_56, x_7, x_8, x_9, x_38); +x_32 = x_57; +goto block_35; +} +case 2: +{ +lean_object* x_58; +lean_dec(x_6); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_22); +lean_inc_ref(x_45); +lean_inc(x_5); +x_58 = l_Lean_Meta_Grind_isCasesAttrPredicateCandidate_x3f(x_5, x_40, x_45, x_22, x_8, x_9, x_38); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +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; +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec_ref(x_58); +x_61 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__6; +x_62 = l_Lean_MessageData_ofConstName(x_5, x_40); +lean_ctor_set_tag(x_20, 7); +lean_ctor_set(x_20, 1, x_62); +lean_ctor_set(x_20, 0, x_61); +x_63 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__8; +x_64 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_64, 0, x_20); +lean_ctor_set(x_64, 1, x_63); +x_65 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0___redArg(x_64, x_45, x_22, x_8, x_9, x_60); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_45); +x_32 = x_65; +goto block_35; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_free_object(x_20); +lean_dec(x_5); +x_66 = lean_ctor_get(x_59, 0); +lean_inc(x_66); +lean_dec_ref(x_59); +x_67 = lean_ctor_get(x_58, 1); +lean_inc(x_67); +lean_dec_ref(x_58); +x_68 = lean_ctor_get(x_66, 4); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_box(0); +lean_inc(x_22); +x_70 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_40, x_7, x_3, x_4, x_69, x_68, x_69, x_45, x_22, x_8, x_9, x_67); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec_ref(x_70); +x_24 = x_69; +x_25 = x_71; +goto block_31; +} +else +{ +x_32 = x_70; +goto block_35; +} +} +} +else +{ +uint8_t x_72; +lean_dec_ref(x_45); +lean_free_object(x_20); +lean_dec(x_22); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_5); +x_72 = !lean_is_exclusive(x_58); +if (x_72 == 0) +{ +return x_58; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_58, 0); +x_74 = lean_ctor_get(x_58, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_58); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +case 3: +{ +lean_object* x_76; +lean_free_object(x_20); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_5); +x_76 = l_Lean_Meta_Grind_isCasesAttrCandidate_x3f(x_5, x_40, x_8, x_9, x_38); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec_ref(x_76); +x_79 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_9, x_78); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +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); +lean_inc(x_22); +x_82 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest(x_6, x_5, x_7, x_80, x_4, x_3, x_45, x_22, x_8, x_9, x_81); +x_32 = x_82; +goto block_35; +} +else +{ +uint8_t x_83; +lean_dec_ref(x_45); +lean_dec(x_22); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_83 = !lean_is_exclusive(x_79); +if (x_83 == 0) +{ +return x_79; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_79, 0); +x_85 = lean_ctor_get(x_79, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_79); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_6); +lean_dec(x_5); +x_87 = lean_ctor_get(x_76, 1); +lean_inc(x_87); +lean_dec_ref(x_76); +x_88 = lean_ctor_get(x_77, 0); +lean_inc(x_88); +lean_dec_ref(x_77); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_88); +x_89 = l_Lean_Meta_Grind_addCasesAttr(x_88, x_40, x_7, x_8, x_9, x_87); +if (lean_obj_tag(x_89) == 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_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_22); +lean_inc_ref(x_45); +x_91 = l_Lean_Meta_isInductivePredicate_x3f(x_88, x_45, x_22, x_8, x_9, x_90); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; +lean_dec_ref(x_45); +lean_dec(x_9); +lean_dec_ref(x_8); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec_ref(x_91); +x_94 = lean_box(0); +x_24 = x_94; +x_25 = x_93; +goto block_31; +} +else +{ +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_92, 0); +lean_inc(x_95); +lean_dec_ref(x_92); +x_96 = lean_ctor_get(x_91, 1); +lean_inc(x_96); +lean_dec_ref(x_91); +x_97 = lean_ctor_get(x_95, 4); +lean_inc(x_97); +lean_dec(x_95); +x_98 = lean_box(0); +lean_inc(x_22); +x_99 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_40, x_7, x_3, x_4, x_98, x_97, x_98, x_45, x_22, x_8, x_9, x_96); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec_ref(x_99); +x_24 = x_98; +x_25 = x_100; +goto block_31; +} +else +{ +x_32 = x_99; +goto block_35; +} +} +} +else +{ +uint8_t x_101; +lean_dec_ref(x_45); +lean_dec(x_22); +lean_dec(x_9); +lean_dec_ref(x_8); +x_101 = !lean_is_exclusive(x_91); +if (x_101 == 0) +{ +return x_91; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_91, 0); +x_103 = lean_ctor_get(x_91, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_91); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +else +{ +lean_dec(x_88); +lean_dec_ref(x_45); +lean_dec(x_9); +lean_dec_ref(x_8); +x_32 = x_89; +goto block_35; +} +} +} +else +{ +uint8_t x_105; +lean_dec_ref(x_45); +lean_dec(x_22); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_105 = !lean_is_exclusive(x_76); +if (x_105 == 0) +{ +return x_76; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_76, 0); +x_107 = lean_ctor_get(x_76, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_76); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +} +} +case 4: +{ +lean_object* x_109; +lean_dec_ref(x_45); +lean_free_object(x_20); +lean_dec(x_6); +x_109 = l_Lean_Meta_Grind_addExtAttr(x_5, x_7, x_8, x_9, x_38); +lean_dec(x_9); +x_32 = x_109; +goto block_35; +} +default: +{ +lean_object* x_110; lean_object* x_111; +lean_free_object(x_20); +lean_dec(x_6); +x_110 = lean_ctor_get(x_37, 0); +lean_inc(x_110); +lean_dec_ref(x_37); +x_111 = l_Lean_Meta_Grind_addSymbolPriorityAttr(x_5, x_7, x_110, x_45, x_22, x_8, x_9, x_38); +lean_dec(x_9); +lean_dec_ref(x_45); +x_32 = x_111; +goto block_35; +} +} +} +else +{ +uint8_t x_112; +lean_free_object(x_20); +lean_dec(x_22); +lean_dec_ref(x_17); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_112 = !lean_is_exclusive(x_36); +if (x_112 == 0) +{ +return x_36; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_36, 0); +x_114 = lean_ctor_get(x_36, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_36); +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; +} +} +block_31: +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_st_ref_get(x_22, x_25); +lean_dec(x_22); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_24); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +block_35: +{ +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec_ref(x_32); +x_24 = x_33; +x_25 = x_34; +goto block_31; +} +else +{ +lean_dec(x_22); +return x_32; +} +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_125; lean_object* x_129; +x_116 = lean_ctor_get(x_20, 0); +x_117 = lean_ctor_get(x_20, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_20); +lean_inc_ref(x_8); +x_129 = l_Lean_Meta_Grind_getAttrKindFromOpt(x_6, x_8, x_9, x_117); +if (lean_obj_tag(x_129) == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec_ref(x_129); +x_132 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4; +x_133 = 0; +x_134 = lean_box(1); +x_135 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_135, 0, x_12); +lean_ctor_set(x_135, 1, x_17); +lean_ctor_set(x_135, 2, x_134); +x_136 = lean_mk_empty_array_with_capacity(x_1); +x_137 = lean_box(0); +x_138 = lean_alloc_ctor(0, 7, 3); +lean_ctor_set(x_138, 0, x_132); +lean_ctor_set(x_138, 1, x_2); +lean_ctor_set(x_138, 2, x_135); +lean_ctor_set(x_138, 3, x_136); +lean_ctor_set(x_138, 4, x_137); +lean_ctor_set(x_138, 5, x_1); +lean_ctor_set(x_138, 6, x_137); +lean_ctor_set_uint8(x_138, sizeof(void*)*7, x_133); +lean_ctor_set_uint8(x_138, sizeof(void*)*7 + 1, x_133); +lean_ctor_set_uint8(x_138, sizeof(void*)*7 + 2, x_133); +switch (lean_obj_tag(x_130)) { +case 0: +{ +lean_object* x_139; +lean_dec(x_6); +x_139 = lean_ctor_get(x_130, 0); +lean_inc(x_139); +lean_dec_ref(x_130); +if (lean_obj_tag(x_139) == 9) +{ +lean_object* x_140; +lean_dec_ref(x_138); +lean_dec(x_5); +x_140 = l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg(x_8, x_9, x_131); +lean_dec(x_9); +lean_dec_ref(x_8); +x_125 = x_140; +goto block_128; +} +else +{ +lean_object* x_141; +x_141 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_9, x_131); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; +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); +lean_inc(x_116); +x_144 = l_Lean_Meta_Grind_addEMatchAttr(x_5, x_7, x_139, x_142, x_3, x_4, x_138, x_116, x_8, x_9, x_143); +x_125 = x_144; +goto block_128; +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_139); +lean_dec_ref(x_138); +lean_dec(x_116); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_5); +x_145 = lean_ctor_get(x_141, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_141, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_147 = x_141; +} else { + lean_dec_ref(x_141); + 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; +} +} +} +case 1: +{ +uint8_t x_149; lean_object* x_150; +lean_dec_ref(x_138); +lean_dec(x_6); +x_149 = lean_ctor_get_uint8(x_130, 0); +lean_dec_ref(x_130); +x_150 = l_Lean_Meta_Grind_addCasesAttr(x_5, x_149, x_7, x_8, x_9, x_131); +x_125 = x_150; +goto block_128; +} +case 2: +{ +lean_object* x_151; +lean_dec(x_6); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_116); +lean_inc_ref(x_138); +lean_inc(x_5); +x_151 = l_Lean_Meta_Grind_isCasesAttrPredicateCandidate_x3f(x_5, x_133, x_138, x_116, x_8, x_9, x_131); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; +x_152 = lean_ctor_get(x_151, 0); +lean_inc(x_152); +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; lean_object* x_158; lean_object* x_159; +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +lean_dec_ref(x_151); +x_154 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__6; +x_155 = l_Lean_MessageData_ofConstName(x_5, x_133); +x_156 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +x_157 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__8; +x_158 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +x_159 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0___redArg(x_158, x_138, x_116, x_8, x_9, x_153); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_138); +x_125 = x_159; +goto block_128; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_5); +x_160 = lean_ctor_get(x_152, 0); +lean_inc(x_160); +lean_dec_ref(x_152); +x_161 = lean_ctor_get(x_151, 1); +lean_inc(x_161); +lean_dec_ref(x_151); +x_162 = lean_ctor_get(x_160, 4); +lean_inc(x_162); +lean_dec(x_160); +x_163 = lean_box(0); +lean_inc(x_116); +x_164 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_133, x_7, x_3, x_4, x_163, x_162, x_163, x_138, x_116, x_8, x_9, x_161); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +lean_dec_ref(x_164); +x_118 = x_163; +x_119 = x_165; +goto block_124; +} +else +{ +x_125 = x_164; +goto block_128; +} +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec_ref(x_138); +lean_dec(x_116); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_5); +x_166 = lean_ctor_get(x_151, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_151, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_168 = x_151; +} else { + lean_dec_ref(x_151); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +case 3: +{ +lean_object* x_170; +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_5); +x_170 = l_Lean_Meta_Grind_isCasesAttrCandidate_x3f(x_5, x_133, x_8, x_9, x_131); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec_ref(x_170); +x_173 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_9, x_172); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +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); +lean_inc(x_116); +x_176 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest(x_6, x_5, x_7, x_174, x_4, x_3, x_138, x_116, x_8, x_9, x_175); +x_125 = x_176; +goto block_128; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_dec_ref(x_138); +lean_dec(x_116); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_177 = lean_ctor_get(x_173, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_173, 1); +lean_inc(x_178); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_179 = x_173; +} else { + lean_dec_ref(x_173); + x_179 = lean_box(0); +} +if (lean_is_scalar(x_179)) { + x_180 = lean_alloc_ctor(1, 2, 0); +} else { + x_180 = x_179; +} +lean_ctor_set(x_180, 0, x_177); +lean_ctor_set(x_180, 1, x_178); +return x_180; +} +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_6); +lean_dec(x_5); +x_181 = lean_ctor_get(x_170, 1); +lean_inc(x_181); +lean_dec_ref(x_170); +x_182 = lean_ctor_get(x_171, 0); +lean_inc(x_182); +lean_dec_ref(x_171); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_182); +x_183 = l_Lean_Meta_Grind_addCasesAttr(x_182, x_133, x_7, x_8, x_9, x_181); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; lean_object* x_185; +x_184 = lean_ctor_get(x_183, 1); +lean_inc(x_184); +lean_dec_ref(x_183); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_116); +lean_inc_ref(x_138); +x_185 = l_Lean_Meta_isInductivePredicate_x3f(x_182, x_138, x_116, x_8, x_9, x_184); +if (lean_obj_tag(x_185) == 0) +{ +lean_object* x_186; +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); +if (lean_obj_tag(x_186) == 0) +{ +lean_object* x_187; lean_object* x_188; +lean_dec_ref(x_138); +lean_dec(x_9); +lean_dec_ref(x_8); +x_187 = lean_ctor_get(x_185, 1); +lean_inc(x_187); +lean_dec_ref(x_185); +x_188 = lean_box(0); +x_118 = x_188; +x_119 = x_187; +goto block_124; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_189 = lean_ctor_get(x_186, 0); +lean_inc(x_189); +lean_dec_ref(x_186); +x_190 = lean_ctor_get(x_185, 1); +lean_inc(x_190); +lean_dec_ref(x_185); +x_191 = lean_ctor_get(x_189, 4); +lean_inc(x_191); +lean_dec(x_189); +x_192 = lean_box(0); +lean_inc(x_116); +x_193 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_133, x_7, x_3, x_4, x_192, x_191, x_192, x_138, x_116, x_8, x_9, x_190); +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_192; +x_119 = x_194; +goto block_124; +} +else +{ +x_125 = x_193; +goto block_128; +} +} +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec_ref(x_138); +lean_dec(x_116); +lean_dec(x_9); +lean_dec_ref(x_8); +x_195 = lean_ctor_get(x_185, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_185, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_185)) { + lean_ctor_release(x_185, 0); + lean_ctor_release(x_185, 1); + x_197 = x_185; +} else { + lean_dec_ref(x_185); + x_197 = lean_box(0); +} +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_197; +} +lean_ctor_set(x_198, 0, x_195); +lean_ctor_set(x_198, 1, x_196); +return x_198; +} +} +else +{ +lean_dec(x_182); +lean_dec_ref(x_138); +lean_dec(x_9); +lean_dec_ref(x_8); +x_125 = x_183; +goto block_128; +} +} +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec_ref(x_138); +lean_dec(x_116); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_199 = lean_ctor_get(x_170, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_170, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_201 = x_170; +} else { + lean_dec_ref(x_170); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +case 4: +{ +lean_object* x_203; +lean_dec_ref(x_138); +lean_dec(x_6); +x_203 = l_Lean_Meta_Grind_addExtAttr(x_5, x_7, x_8, x_9, x_131); +lean_dec(x_9); +x_125 = x_203; +goto block_128; +} +default: +{ +lean_object* x_204; lean_object* x_205; +lean_dec(x_6); +x_204 = lean_ctor_get(x_130, 0); +lean_inc(x_204); +lean_dec_ref(x_130); +x_205 = l_Lean_Meta_Grind_addSymbolPriorityAttr(x_5, x_7, x_204, x_138, x_116, x_8, x_9, x_131); +lean_dec(x_9); +lean_dec_ref(x_138); +x_125 = x_205; +goto block_128; +} +} +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_116); +lean_dec_ref(x_17); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_206 = lean_ctor_get(x_129, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_129, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_208 = x_129; +} else { + lean_dec_ref(x_129); + x_208 = lean_box(0); +} +if (lean_is_scalar(x_208)) { + x_209 = lean_alloc_ctor(1, 2, 0); +} else { + x_209 = x_208; +} +lean_ctor_set(x_209, 0, x_206); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +block_124: +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_st_ref_get(x_116, x_119); +lean_dec(x_116); +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_122 = x_120; +} else { + lean_dec_ref(x_120); + x_122 = lean_box(0); +} +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_122; +} +lean_ctor_set(x_123, 0, x_118); +lean_ctor_set(x_123, 1, x_121); +return x_123; +} +block_128: +{ +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; lean_object* x_127; +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_118 = x_126; +x_119 = x_127; +goto block_124; +} +else +{ +lean_dec(x_116); +return x_125; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___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: { uint8_t x_8; lean_object* x_9; @@ -2336,62 +3526,7 @@ return x_29; } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__0() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__1; -x_2 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -lean_ctor_set(x_2, 2, x_1); -lean_ctor_set(x_2, 3, x_1); -lean_ctor_set(x_2, 4, x_1); -lean_ctor_set(x_2, 5, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(32u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___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___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__1; -x_2 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -lean_ctor_set(x_2, 2, x_1); -lean_ctor_set(x_2, 3, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_instInhabitedConfigWithKey___private__1; -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0() { _start: { lean_object* x_1; @@ -2399,16 +3534,16 @@ x_1 = lean_mk_string_unchecked("`[grind\?]` is a helper attribute for displaying return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__5; +x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___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) { _start: { size_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; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; @@ -2425,9 +3560,9 @@ lean_ctor_set(x_10, 5, x_9); lean_ctor_set(x_10, 6, x_9); lean_ctor_set(x_10, 7, x_9); lean_ctor_set(x_10, 8, x_9); -x_11 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__0; -x_12 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__1; -x_13 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__2; +x_11 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__0; +x_12 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__1; +x_13 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__2; lean_inc_n(x_1, 2); x_14 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_14, 0, x_13); @@ -2435,7 +3570,7 @@ lean_ctor_set(x_14, 1, x_12); lean_ctor_set(x_14, 2, x_1); lean_ctor_set(x_14, 3, x_1); lean_ctor_set_usize(x_14, 4, x_8); -x_15 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__3; +x_15 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__3; lean_inc_ref(x_14); lean_inc(x_2); x_16 = lean_alloc_ctor(0, 5, 0); @@ -2450,7 +3585,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec_ref(x_17); -x_29 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4; +x_29 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4; x_30 = 0; x_31 = lean_box(1); x_32 = lean_alloc_ctor(0, 3, 0); @@ -2475,7 +3610,7 @@ if (x_3 == 0) lean_object* x_36; lean_object* x_37; x_36 = lean_box(0); lean_inc(x_18); -x_37 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0(x_4, x_36, x_35, x_18, x_5, x_6, x_19); +x_37 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1(x_4, x_36, x_35, x_18, x_5, x_6, x_19); x_20 = x_37; goto block_28; } @@ -2483,7 +3618,7 @@ else { lean_object* x_38; lean_object* x_39; lean_dec(x_4); -x_38 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__6; +x_38 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1; x_39 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0___redArg(x_38, x_35, x_18, x_5, x_6, x_19); lean_dec(x_6); lean_dec_ref(x_5); @@ -2532,1129 +3667,6 @@ return x_20; } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid `[grind intro]`, `", 26, 26); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("` is not an inductive predicate", 31, 31); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__2; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__4() { -_start: -{ -uint8_t x_1; lean_object* x_2; -x_1 = 0; -x_2 = lean_alloc_ctor(8, 0, 1); -lean_ctor_set_uint8(x_2, 0, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_10 = 5; -x_11 = l_Lean_addMessageContextPartial___at___Lean_throwError___at___Lean_Meta_Grind_getAttrKindCore_spec__0_spec__0___closed__1; -lean_inc_n(x_1, 3); -x_12 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_1); -lean_ctor_set(x_12, 2, x_1); -lean_ctor_set(x_12, 3, x_11); -lean_ctor_set(x_12, 4, x_11); -lean_ctor_set(x_12, 5, x_11); -lean_ctor_set(x_12, 6, x_11); -lean_ctor_set(x_12, 7, x_11); -lean_ctor_set(x_12, 8, x_11); -x_13 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__0; -x_14 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__1; -x_15 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__2; -lean_inc_n(x_1, 2); -x_16 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -lean_ctor_set(x_16, 2, x_1); -lean_ctor_set(x_16, 3, x_1); -lean_ctor_set_usize(x_16, 4, x_10); -x_17 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__3; -lean_inc_ref(x_16); -lean_inc(x_2); -x_18 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_18, 0, x_12); -lean_ctor_set(x_18, 1, x_13); -lean_ctor_set(x_18, 2, x_2); -lean_ctor_set(x_18, 3, x_16); -lean_ctor_set(x_18, 4, x_17); -x_19 = lean_st_mk_ref(x_18, x_9); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_31; lean_object* x_35; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); -lean_inc_ref(x_7); -x_35 = l_Lean_Meta_Grind_getAttrKindFromOpt(x_5, x_7, x_8, x_22); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -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 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4; -x_39 = 0; -x_40 = lean_box(1); -x_41 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_41, 0, x_11); -lean_ctor_set(x_41, 1, x_16); -lean_ctor_set(x_41, 2, x_40); -x_42 = lean_mk_empty_array_with_capacity(x_1); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(0, 7, 3); -lean_ctor_set(x_44, 0, x_38); -lean_ctor_set(x_44, 1, x_2); -lean_ctor_set(x_44, 2, x_41); -lean_ctor_set(x_44, 3, x_42); -lean_ctor_set(x_44, 4, x_43); -lean_ctor_set(x_44, 5, x_1); -lean_ctor_set(x_44, 6, x_43); -lean_ctor_set_uint8(x_44, sizeof(void*)*7, x_39); -lean_ctor_set_uint8(x_44, sizeof(void*)*7 + 1, x_39); -lean_ctor_set_uint8(x_44, sizeof(void*)*7 + 2, x_39); -switch (lean_obj_tag(x_36)) { -case 0: -{ -lean_object* x_45; -lean_free_object(x_19); -x_45 = lean_ctor_get(x_36, 0); -lean_inc(x_45); -lean_dec_ref(x_36); -if (lean_obj_tag(x_45) == 9) -{ -lean_object* x_46; -lean_dec_ref(x_44); -lean_dec(x_4); -x_46 = l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg(x_7, x_8, x_37); -lean_dec(x_8); -lean_dec_ref(x_7); -x_31 = x_46; -goto block_34; -} -else -{ -lean_object* x_47; -x_47 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_8, x_37); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec_ref(x_47); -lean_inc(x_21); -x_50 = l_Lean_Meta_Grind_addEMatchAttr(x_4, x_6, x_45, x_48, x_3, x_44, x_21, x_7, x_8, x_49); -x_31 = x_50; -goto block_34; -} -else -{ -uint8_t x_51; -lean_dec(x_45); -lean_dec_ref(x_44); -lean_dec(x_21); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_51 = !lean_is_exclusive(x_47); -if (x_51 == 0) -{ -return x_47; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_47, 0); -x_53 = lean_ctor_get(x_47, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_47); -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; -} -} -} -} -case 1: -{ -uint8_t x_55; lean_object* x_56; -lean_dec_ref(x_44); -lean_free_object(x_19); -x_55 = lean_ctor_get_uint8(x_36, 0); -lean_dec_ref(x_36); -x_56 = l_Lean_Meta_Grind_addCasesAttr(x_4, x_55, x_6, x_7, x_8, x_37); -x_31 = x_56; -goto block_34; -} -case 2: -{ -lean_object* x_57; -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_21); -lean_inc_ref(x_44); -lean_inc(x_4); -x_57 = l_Lean_Meta_Grind_isCasesAttrPredicateCandidate_x3f(x_4, x_39, x_44, x_21, x_7, x_8, x_37); -if (lean_obj_tag(x_57) == 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_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec_ref(x_57); -x_60 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1; -x_61 = l_Lean_MessageData_ofConstName(x_4, x_39); -lean_ctor_set_tag(x_19, 7); -lean_ctor_set(x_19, 1, x_61); -lean_ctor_set(x_19, 0, x_60); -x_62 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__3; -x_63 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_63, 0, x_19); -lean_ctor_set(x_63, 1, x_62); -x_64 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0___redArg(x_63, x_44, x_21, x_7, x_8, x_59); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_44); -x_31 = x_64; -goto block_34; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_free_object(x_19); -lean_dec(x_4); -x_65 = lean_ctor_get(x_58, 0); -lean_inc(x_65); -lean_dec_ref(x_58); -x_66 = lean_ctor_get(x_57, 1); -lean_inc(x_66); -lean_dec_ref(x_57); -x_67 = lean_ctor_get(x_65, 4); -lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_box(0); -lean_inc(x_21); -x_69 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_39, x_6, x_3, x_68, x_67, x_68, x_44, x_21, x_7, x_8, x_66); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec_ref(x_69); -x_23 = x_68; -x_24 = x_70; -goto block_30; -} -else -{ -x_31 = x_69; -goto block_34; -} -} -} -else -{ -uint8_t x_71; -lean_dec_ref(x_44); -lean_free_object(x_19); -lean_dec(x_21); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_71 = !lean_is_exclusive(x_57); -if (x_71 == 0) -{ -return x_57; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_57, 0); -x_73 = lean_ctor_get(x_57, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_57); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -} -case 3: -{ -lean_object* x_75; -lean_free_object(x_19); -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_4); -x_75 = l_Lean_Meta_Grind_isCasesAttrCandidate_x3f(x_4, x_39, x_7, x_8, x_37); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -if (lean_obj_tag(x_76) == 0) -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec_ref(x_75); -x_78 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_8, x_77); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -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 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__4; -lean_inc(x_21); -x_82 = l_Lean_Meta_Grind_addEMatchAttr(x_4, x_6, x_81, x_79, x_3, x_44, x_21, x_7, x_8, x_80); -x_31 = x_82; -goto block_34; -} -else -{ -uint8_t x_83; -lean_dec_ref(x_44); -lean_dec(x_21); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_83 = !lean_is_exclusive(x_78); -if (x_83 == 0) -{ -return x_78; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_78, 0); -x_85 = lean_ctor_get(x_78, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_78); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_4); -x_87 = lean_ctor_get(x_75, 1); -lean_inc(x_87); -lean_dec_ref(x_75); -x_88 = lean_ctor_get(x_76, 0); -lean_inc(x_88); -lean_dec_ref(x_76); -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_88); -x_89 = l_Lean_Meta_Grind_addCasesAttr(x_88, x_39, x_6, x_7, x_8, x_87); -if (lean_obj_tag(x_89) == 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_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_21); -lean_inc_ref(x_44); -x_91 = l_Lean_Meta_isInductivePredicate_x3f(x_88, x_44, x_21, x_7, x_8, x_90); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; lean_object* x_94; -lean_dec_ref(x_44); -lean_dec(x_8); -lean_dec_ref(x_7); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec_ref(x_91); -x_94 = lean_box(0); -x_23 = x_94; -x_24 = x_93; -goto block_30; -} -else -{ -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_92, 0); -lean_inc(x_95); -lean_dec_ref(x_92); -x_96 = lean_ctor_get(x_91, 1); -lean_inc(x_96); -lean_dec_ref(x_91); -x_97 = lean_ctor_get(x_95, 4); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_box(0); -lean_inc(x_21); -x_99 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_39, x_6, x_3, x_98, x_97, x_98, x_44, x_21, x_7, x_8, x_96); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec_ref(x_99); -x_23 = x_98; -x_24 = x_100; -goto block_30; -} -else -{ -x_31 = x_99; -goto block_34; -} -} -} -else -{ -uint8_t x_101; -lean_dec_ref(x_44); -lean_dec(x_21); -lean_dec(x_8); -lean_dec_ref(x_7); -x_101 = !lean_is_exclusive(x_91); -if (x_101 == 0) -{ -return x_91; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_91, 0); -x_103 = lean_ctor_get(x_91, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_91); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; -} -} -} -else -{ -lean_dec(x_88); -lean_dec_ref(x_44); -lean_dec(x_8); -lean_dec_ref(x_7); -x_31 = x_89; -goto block_34; -} -} -} -else -{ -uint8_t x_105; -lean_dec_ref(x_44); -lean_dec(x_21); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_105 = !lean_is_exclusive(x_75); -if (x_105 == 0) -{ -return x_75; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_75, 0); -x_107 = lean_ctor_get(x_75, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_75); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; -} -} -} -case 4: -{ -lean_object* x_109; -lean_dec_ref(x_44); -lean_free_object(x_19); -x_109 = l_Lean_Meta_Grind_addExtAttr(x_4, x_6, x_7, x_8, x_37); -lean_dec(x_8); -x_31 = x_109; -goto block_34; -} -default: -{ -lean_object* x_110; lean_object* x_111; -lean_free_object(x_19); -x_110 = lean_ctor_get(x_36, 0); -lean_inc(x_110); -lean_dec_ref(x_36); -x_111 = l_Lean_Meta_Grind_addSymbolPriorityAttr(x_4, x_6, x_110, x_44, x_21, x_7, x_8, x_37); -lean_dec(x_8); -lean_dec_ref(x_44); -x_31 = x_111; -goto block_34; -} -} -} -else -{ -uint8_t x_112; -lean_free_object(x_19); -lean_dec(x_21); -lean_dec_ref(x_16); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_112 = !lean_is_exclusive(x_35); -if (x_112 == 0) -{ -return x_35; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_35, 0); -x_114 = lean_ctor_get(x_35, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_35); -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; -} -} -block_30: -{ -lean_object* x_25; uint8_t x_26; -x_25 = lean_st_ref_get(x_21, x_24); -lean_dec(x_21); -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_23); -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_23); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -block_34: -{ -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; -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_23 = x_32; -x_24 = x_33; -goto block_30; -} -else -{ -lean_dec(x_21); -return x_31; -} -} -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_125; lean_object* x_129; -x_116 = lean_ctor_get(x_19, 0); -x_117 = lean_ctor_get(x_19, 1); -lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_19); -lean_inc_ref(x_7); -x_129 = l_Lean_Meta_Grind_getAttrKindFromOpt(x_5, x_7, x_8, x_117); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec_ref(x_129); -x_132 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4; -x_133 = 0; -x_134 = lean_box(1); -x_135 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_135, 0, x_11); -lean_ctor_set(x_135, 1, x_16); -lean_ctor_set(x_135, 2, x_134); -x_136 = lean_mk_empty_array_with_capacity(x_1); -x_137 = lean_box(0); -x_138 = lean_alloc_ctor(0, 7, 3); -lean_ctor_set(x_138, 0, x_132); -lean_ctor_set(x_138, 1, x_2); -lean_ctor_set(x_138, 2, x_135); -lean_ctor_set(x_138, 3, x_136); -lean_ctor_set(x_138, 4, x_137); -lean_ctor_set(x_138, 5, x_1); -lean_ctor_set(x_138, 6, x_137); -lean_ctor_set_uint8(x_138, sizeof(void*)*7, x_133); -lean_ctor_set_uint8(x_138, sizeof(void*)*7 + 1, x_133); -lean_ctor_set_uint8(x_138, sizeof(void*)*7 + 2, x_133); -switch (lean_obj_tag(x_130)) { -case 0: -{ -lean_object* x_139; -x_139 = lean_ctor_get(x_130, 0); -lean_inc(x_139); -lean_dec_ref(x_130); -if (lean_obj_tag(x_139) == 9) -{ -lean_object* x_140; -lean_dec_ref(x_138); -lean_dec(x_4); -x_140 = l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg(x_7, x_8, x_131); -lean_dec(x_8); -lean_dec_ref(x_7); -x_125 = x_140; -goto block_128; -} -else -{ -lean_object* x_141; -x_141 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_8, x_131); -if (lean_obj_tag(x_141) == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -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); -lean_inc(x_116); -x_144 = l_Lean_Meta_Grind_addEMatchAttr(x_4, x_6, x_139, x_142, x_3, x_138, x_116, x_7, x_8, x_143); -x_125 = x_144; -goto block_128; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -lean_dec(x_139); -lean_dec_ref(x_138); -lean_dec(x_116); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_145 = lean_ctor_get(x_141, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_141, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_147 = x_141; -} else { - lean_dec_ref(x_141); - 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; -} -} -} -case 1: -{ -uint8_t x_149; lean_object* x_150; -lean_dec_ref(x_138); -x_149 = lean_ctor_get_uint8(x_130, 0); -lean_dec_ref(x_130); -x_150 = l_Lean_Meta_Grind_addCasesAttr(x_4, x_149, x_6, x_7, x_8, x_131); -x_125 = x_150; -goto block_128; -} -case 2: -{ -lean_object* x_151; -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_116); -lean_inc_ref(x_138); -lean_inc(x_4); -x_151 = l_Lean_Meta_Grind_isCasesAttrPredicateCandidate_x3f(x_4, x_133, x_138, x_116, x_7, x_8, x_131); -if (lean_obj_tag(x_151) == 0) -{ -lean_object* x_152; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -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; lean_object* x_158; lean_object* x_159; -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec_ref(x_151); -x_154 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1; -x_155 = l_Lean_MessageData_ofConstName(x_4, x_133); -x_156 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_156, 0, x_154); -lean_ctor_set(x_156, 1, x_155); -x_157 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__3; -x_158 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -x_159 = l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__0___redArg(x_158, x_138, x_116, x_7, x_8, x_153); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_138); -x_125 = x_159; -goto block_128; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -lean_dec(x_4); -x_160 = lean_ctor_get(x_152, 0); -lean_inc(x_160); -lean_dec_ref(x_152); -x_161 = lean_ctor_get(x_151, 1); -lean_inc(x_161); -lean_dec_ref(x_151); -x_162 = lean_ctor_get(x_160, 4); -lean_inc(x_162); -lean_dec(x_160); -x_163 = lean_box(0); -lean_inc(x_116); -x_164 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_133, x_6, x_3, x_163, x_162, x_163, x_138, x_116, x_7, x_8, x_161); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -lean_dec_ref(x_164); -x_118 = x_163; -x_119 = x_165; -goto block_124; -} -else -{ -x_125 = x_164; -goto block_128; -} -} -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -lean_dec_ref(x_138); -lean_dec(x_116); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_166 = lean_ctor_get(x_151, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_151, 1); -lean_inc(x_167); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_168 = x_151; -} else { - lean_dec_ref(x_151); - x_168 = lean_box(0); -} -if (lean_is_scalar(x_168)) { - x_169 = lean_alloc_ctor(1, 2, 0); -} else { - x_169 = x_168; -} -lean_ctor_set(x_169, 0, x_166); -lean_ctor_set(x_169, 1, x_167); -return x_169; -} -} -case 3: -{ -lean_object* x_170; -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_4); -x_170 = l_Lean_Meta_Grind_isCasesAttrCandidate_x3f(x_4, x_133, x_7, x_8, x_131); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -if (lean_obj_tag(x_171) == 0) -{ -lean_object* x_172; lean_object* x_173; -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec_ref(x_170); -x_173 = l_Lean_Meta_Grind_getGlobalSymbolPriorities___redArg(x_8, x_172); -if (lean_obj_tag(x_173) == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -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 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__4; -lean_inc(x_116); -x_177 = l_Lean_Meta_Grind_addEMatchAttr(x_4, x_6, x_176, x_174, x_3, x_138, x_116, x_7, x_8, x_175); -x_125 = x_177; -goto block_128; -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec_ref(x_138); -lean_dec(x_116); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_178 = lean_ctor_get(x_173, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_173, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_180 = x_173; -} else { - lean_dec_ref(x_173); - x_180 = lean_box(0); -} -if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(1, 2, 0); -} else { - x_181 = x_180; -} -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_179); -return x_181; -} -} -else -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_4); -x_182 = lean_ctor_get(x_170, 1); -lean_inc(x_182); -lean_dec_ref(x_170); -x_183 = lean_ctor_get(x_171, 0); -lean_inc(x_183); -lean_dec_ref(x_171); -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_183); -x_184 = l_Lean_Meta_Grind_addCasesAttr(x_183, x_133, x_6, x_7, x_8, x_182); -if (lean_obj_tag(x_184) == 0) -{ -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_8); -lean_inc_ref(x_7); -lean_inc(x_116); -lean_inc_ref(x_138); -x_186 = l_Lean_Meta_isInductivePredicate_x3f(x_183, x_138, x_116, x_7, x_8, x_185); -if (lean_obj_tag(x_186) == 0) -{ -lean_object* x_187; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -if (lean_obj_tag(x_187) == 0) -{ -lean_object* x_188; lean_object* x_189; -lean_dec_ref(x_138); -lean_dec(x_8); -lean_dec_ref(x_7); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -lean_dec_ref(x_186); -x_189 = lean_box(0); -x_118 = x_189; -x_119 = x_188; -goto block_124; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_190 = lean_ctor_get(x_187, 0); -lean_inc(x_190); -lean_dec_ref(x_187); -x_191 = lean_ctor_get(x_186, 1); -lean_inc(x_191); -lean_dec_ref(x_186); -x_192 = lean_ctor_get(x_190, 4); -lean_inc(x_192); -lean_dec(x_190); -x_193 = lean_box(0); -lean_inc(x_116); -x_194 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_133, x_6, x_3, x_193, x_192, x_193, x_138, x_116, x_7, x_8, x_191); -if (lean_obj_tag(x_194) == 0) -{ -lean_object* x_195; -x_195 = lean_ctor_get(x_194, 1); -lean_inc(x_195); -lean_dec_ref(x_194); -x_118 = x_193; -x_119 = x_195; -goto block_124; -} -else -{ -x_125 = x_194; -goto block_128; -} -} -} -else -{ -lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -lean_dec_ref(x_138); -lean_dec(x_116); -lean_dec(x_8); -lean_dec_ref(x_7); -x_196 = lean_ctor_get(x_186, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_186, 1); -lean_inc(x_197); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_198 = x_186; -} else { - lean_dec_ref(x_186); - x_198 = lean_box(0); -} -if (lean_is_scalar(x_198)) { - x_199 = lean_alloc_ctor(1, 2, 0); -} else { - x_199 = x_198; -} -lean_ctor_set(x_199, 0, x_196); -lean_ctor_set(x_199, 1, x_197); -return x_199; -} -} -else -{ -lean_dec(x_183); -lean_dec_ref(x_138); -lean_dec(x_8); -lean_dec_ref(x_7); -x_125 = x_184; -goto block_128; -} -} -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -lean_dec_ref(x_138); -lean_dec(x_116); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -x_200 = lean_ctor_get(x_170, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_170, 1); -lean_inc(x_201); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_202 = x_170; -} else { - lean_dec_ref(x_170); - x_202 = lean_box(0); -} -if (lean_is_scalar(x_202)) { - x_203 = lean_alloc_ctor(1, 2, 0); -} else { - x_203 = x_202; -} -lean_ctor_set(x_203, 0, x_200); -lean_ctor_set(x_203, 1, x_201); -return x_203; -} -} -case 4: -{ -lean_object* x_204; -lean_dec_ref(x_138); -x_204 = l_Lean_Meta_Grind_addExtAttr(x_4, x_6, x_7, x_8, x_131); -lean_dec(x_8); -x_125 = x_204; -goto block_128; -} -default: -{ -lean_object* x_205; lean_object* x_206; -x_205 = lean_ctor_get(x_130, 0); -lean_inc(x_205); -lean_dec_ref(x_130); -x_206 = l_Lean_Meta_Grind_addSymbolPriorityAttr(x_4, x_6, x_205, x_138, x_116, x_7, x_8, x_131); -lean_dec(x_8); -lean_dec_ref(x_138); -x_125 = x_206; -goto block_128; -} -} -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_116); -lean_dec_ref(x_16); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_207 = lean_ctor_get(x_129, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_129, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_209 = x_129; -} else { - lean_dec_ref(x_129); - x_209 = lean_box(0); -} -if (lean_is_scalar(x_209)) { - x_210 = lean_alloc_ctor(1, 2, 0); -} else { - x_210 = x_209; -} -lean_ctor_set(x_210, 0, x_207); -lean_ctor_set(x_210, 1, x_208); -return x_210; -} -block_124: -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = lean_st_ref_get(x_116, x_119); -lean_dec(x_116); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(0, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_118); -lean_ctor_set(x_123, 1, x_121); -return x_123; -} -block_128: -{ -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; lean_object* x_127; -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_118 = x_126; -x_119 = x_127; -goto block_124; -} -else -{ -lean_dec(x_116); -return x_125; -} -} -} -} -} static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__0() { _start: { @@ -3833,24 +3845,23 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_G _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("grind", 5, 5); +x_1 = lean_mk_string_unchecked("The `[grind!]` attribute is used to annotate declarations, but selecting minimal indexable subterms.", 100, 100); return x_1; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__20() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__19; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("The `[grind!\?]` attribute is identical to the `[grind!]` attribute, but displays inferred pattern information.", 110, 110); +return x_1; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__21() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("grind\?", 6, 6); +x_1 = lean_mk_string_unchecked("grind", 5, 5); return x_1; } } @@ -3863,72 +3874,167 @@ x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(uint8_t x_1, lean_object* x_2) { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__23() { _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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_19; -x_3 = lean_box(1); -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_box(x_1); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___boxed), 7, 3); -lean_closure_set(x_6, 0, x_4); -lean_closure_set(x_6, 1, x_3); -lean_closure_set(x_6, 2, x_5); +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind\?", 6, 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__23; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind!", 6, 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__25; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__27() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind!\?", 7, 7); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__27; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(uint8_t 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; lean_object* x_12; lean_object* x_13; lean_object* x_21; +x_4 = lean_box(1); +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_box(x_2); x_7 = lean_box(x_1); -x_8 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___boxed), 9, 3); -lean_closure_set(x_8, 0, x_4); -lean_closure_set(x_8, 1, x_3); -lean_closure_set(x_8, 2, x_7); -x_9 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__15; +x_8 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___boxed), 10, 4); +lean_closure_set(x_8, 0, x_5); +lean_closure_set(x_8, 1, x_4); +lean_closure_set(x_8, 2, x_6); +lean_closure_set(x_8, 3, x_7); +x_9 = lean_box(x_2); +x_10 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___boxed), 7, 3); +lean_closure_set(x_10, 0, x_5); +lean_closure_set(x_10, 1, x_4); +lean_closure_set(x_10, 2, x_9); +x_11 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__15; if (x_1 == 0) { +if (x_2 == 0) +{ +lean_object* x_27; +x_27 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__22; +x_21 = x_27; +goto block_26; +} +else +{ +lean_object* x_28; +x_28 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__24; +x_21 = x_28; +goto block_26; +} +} +else +{ +if (x_2 == 0) +{ +lean_object* x_29; +x_29 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__26; +x_21 = x_29; +goto block_26; +} +else +{ +lean_object* x_30; +x_30 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__28; +x_21 = x_30; +goto block_26; +} +} +block_20: +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__16; +x_15 = lean_string_append(x_13, x_14); +x_16 = 1; +x_17 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_17, 0, x_11); +lean_ctor_set(x_17, 1, x_12); +lean_ctor_set(x_17, 2, x_15); +lean_ctor_set_uint8(x_17, sizeof(void*)*3, x_16); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_8); +lean_ctor_set(x_18, 2, x_10); +x_19 = l_Lean_registerBuiltinAttribute(x_18, x_3); +return x_19; +} +block_26: +{ +if (x_1 == 0) +{ +if (x_2 == 0) +{ +lean_object* x_22; +x_22 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__17; +x_12 = x_21; +x_13 = x_22; +goto block_20; +} +else +{ lean_object* x_23; -x_23 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__20; -x_19 = x_23; -goto block_22; +x_23 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__18; +x_12 = x_21; +x_13 = x_23; +goto block_20; +} } else { +if (x_2 == 0) +{ lean_object* x_24; -x_24 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__22; -x_19 = x_24; -goto block_22; -} -block_18: -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_12 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__16; -x_13 = lean_string_append(x_11, x_12); -x_14 = 1; -x_15 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_15, 0, x_9); -lean_ctor_set(x_15, 1, x_10); -lean_ctor_set(x_15, 2, x_13); -lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_14); -x_16 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_8); -lean_ctor_set(x_16, 2, x_6); -x_17 = l_Lean_registerBuiltinAttribute(x_16, x_2); -return x_17; -} -block_22: -{ -if (x_1 == 0) -{ -lean_object* x_20; -x_20 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__17; -x_10 = x_19; -x_11 = x_20; -goto block_18; +x_24 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__19; +x_12 = x_21; +x_13 = x_24; +goto block_20; } else { -lean_object* x_21; -x_21 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__18; -x_10 = x_19; -x_11 = x_21; -goto block_18; +lean_object* x_25; +x_25 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__20; +x_12 = x_21; +x_13 = x_25; +goto block_20; +} } } } @@ -3969,77 +4075,104 @@ lean_dec_ref(x_3); return x_8; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___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_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___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: { -uint8_t x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15; -x_12 = lean_unbox(x_1); -x_13 = lean_unbox(x_2); -x_14 = lean_unbox(x_3); -x_15 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_12, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_15; -} -} -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_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, lean_object* x_13) { -_start: -{ -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_2); -x_16 = lean_unbox(x_3); -x_17 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2(x_14, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_5); +uint8_t x_13; uint8_t x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_unbox(x_1); +x_14 = lean_unbox(x_2); +x_15 = lean_unbox(x_3); +x_16 = lean_unbox(x_4); +x_17 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2___redArg(x_13, x_14, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_17; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___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_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_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, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; +x_15 = lean_unbox(x_1); +x_16 = lean_unbox(x_2); +x_17 = lean_unbox(x_3); +x_18 = lean_unbox(x_4); +x_19 = l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr_spec__2(x_15, x_16, x_17, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_6); +return x_19; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___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) { +_start: +{ +uint8_t x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_11 = lean_unbox(x_3); +x_12 = lean_unbox(x_4); +x_13 = lean_unbox(x_7); +x_14 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0(x_1, x_2, x_11, x_12, x_5, x_6, x_13, x_8, x_9, x_10); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___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) { _start: { uint8_t x_8; lean_object* x_9; x_8 = lean_unbox(x_3); -x_9 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1(x_1, x_2, x_8, x_4, x_5, x_6, x_7); +x_9 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2(x_1, x_2, x_8, x_4, x_5, x_6, x_7); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_10; uint8_t x_11; lean_object* x_12; -x_10 = lean_unbox(x_3); -x_11 = lean_unbox(x_6); -x_12 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2(x_1, x_2, x_10, x_4, x_5, x_11, x_7, x_8, x_9); -lean_dec(x_5); -return x_12; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = lean_unbox(x_1); -x_4 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_3, x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr_2723947585____hygCtx___hyg_2_(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = 1; -x_3 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_2, x_1); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; uint8_t x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -lean_dec_ref(x_3); -x_5 = 0; -x_6 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_5, x_4); +uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_unbox(x_1); +x_5 = lean_unbox(x_2); +x_6 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_4, x_5, x_3); return x_6; } +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr_3118450633____hygCtx___hyg_2_(lean_object* x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_2 = 0; +x_3 = 1; +x_4 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_2, x_3, x_1); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec_ref(x_4); +x_6 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_2, x_2, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec_ref(x_6); +x_8 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_3, x_3, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec_ref(x_8); +x_10 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr(x_3, x_2, x_9); +return x_10; +} else { -return x_3; +return x_8; +} +} +else +{ +return x_6; +} +} +else +{ +return x_4; } } } @@ -4174,30 +4307,28 @@ l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___closed__0 = _init_l_Lean_Me lean_mark_persistent(l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___closed__0); l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___closed__1 = _init_l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_throwInvalidUsrModifier___redArg___closed__1); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__0(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__0); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__1); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__2); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__3); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__4); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__5); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__1___closed__6); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__0); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__1); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__2); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__3); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__4); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__5); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__6); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__7); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__0___closed__8); l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__0); l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__1); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__2); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__3); -l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___lam__2___closed__4); l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__0(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__0); l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__1(); @@ -4244,7 +4375,19 @@ l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___c lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__21); l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__22 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__22(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__22); -if (builtin) {res = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr_2723947585____hygCtx___hyg_2_(lean_io_mk_world()); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__23 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__23(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__23); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__24 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__24(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__24); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__25 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__25(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__25); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__26 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__26(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__26); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__27 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__27(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__27); +l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__28 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__28(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_registerGrindAttr___closed__28); +if (builtin) {res = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr_3118450633____hygCtx___hyg_2_(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/Grind/EMatchTheorem.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c index d9b47252c9..e450cfb0b4 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.EMatchTheorem -// Imports: Init.Grind.Util Init.Grind.Tactics Lean.HeadIndex Lean.Util.FoldConsts Lean.Util.CollectFVars Lean.Meta.Basic Lean.Meta.InferType Lean.Meta.Eqns Lean.Meta.Tactic.Grind.Util Lean.Message Lean.Meta.Tactic.FVarSubst Lean.Meta.Match.Basic +// Imports: Init.Grind.Util Init.Grind.Tactics Lean.HeadIndex Lean.Util.FoldConsts Lean.Util.CollectFVars Lean.Meta.Basic Lean.Meta.InferType Lean.Meta.Eqns Lean.Meta.Tactic.Grind.Util Lean.Message Lean.Meta.Tactic.FVarSubst Lean.Meta.Match.Basic Lean.Meta.Tactic.TryThis #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -18,7 +18,7 @@ static lean_object* l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f___closed__1; LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__2_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_Grind_mkEMatchTheoremWithKind_x3f___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_Expr_const___override(lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_apply(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; @@ -26,20 +26,24 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Met uint8_t lean_is_matcher(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isInductive___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_reprPrec(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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_Grind_ppPattern___closed__4; static lean_object* l_Lean_Meta_Grind_instReprOrigin_repr___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(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_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__1; static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__0; +static lean_object* l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_paren(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___closed__1; static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__0; +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__11; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at___Lean_Meta_Grind_NormalizePattern_getPatternArgKinds_spec__1___redArg(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___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1_spec__1_spec__3___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instHashableEMatchTheoremKind___closed__0; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___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_mkNatLit(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CheckCoverageResult_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,6 +65,7 @@ static lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheore static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_SymbolPriorities_getPrio_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); static lean_object* l_panic___at___Lean_Meta_Grind_isGenPattern_x3f_spec__0___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__8; uint64_t l_Lean_Meta_Context_configKey(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_fvar_elim___redArg(lean_object*, lean_object*); @@ -74,20 +79,21 @@ size_t lean_usize_shift_right(size_t, size_t); uint8_t l_Lean_ExprStructEq_beq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getGlobalSymbolPriorities___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_hasChildWithSameNewBVars_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_Meta_Grind_EMatchTheoremKind_toAttribute___closed__11; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__3; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0_spec__0(uint8_t, lean_object*, uint8_t, 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*); LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_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___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__10___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_hasChildWithSameNewBVars_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_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_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, 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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1(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*); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_SymbolPriorities_erase___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized_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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_SymbolPriorities_ctorIdx___boxed(lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___Lean_Meta_Grind_EMatchTheorems_eraseDecl_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at___Lean_Meta_Grind_isMatchCongrEqDeclName_spec__0___redArg(lean_object*, lean_object*, lean_object*); @@ -97,14 +103,15 @@ uint8_t l_Lean_Meta_FVarSubst_isEmpty(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_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_Lean_Meta_Grind_NormalizePattern_PatternArgKind_typeFormer_elim___redArg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar_spec__0___redArg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons___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_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___lam__0____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_1821940401____hygCtx___hyg_2_(uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__0(lean_object*, 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_Grind_EMatchTheorems_contains___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectGeneralizedPatterns_x3f_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__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_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__4; LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint64_t l_Lean_Meta_Grind_instHashableEMatchTheoremKind_hash___closed__9; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -115,11 +122,11 @@ lean_object* l_Array_reverse___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkOffsetPattern___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0(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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___lam__0(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_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_getOrigins___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___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___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_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*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGenHEqPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_stx_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff_spec__0___boxed(lean_object*, lean_object*, lean_object*); @@ -127,7 +134,6 @@ static lean_object* l_Lean_Meta_Grind_instReprOrigin_repr___closed__5; lean_object* l_Lean_Environment_header(lean_object*); LEAN_EXPORT lean_object* l_Lean_Option_register___at___Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2192377466____hygCtx___hyg_4__spec__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at___Lean_Meta_Grind_addSymbolPriorityAttr_spec__0___redArg___closed__0; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0_spec__0(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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute(lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1_spec__1___redArg___closed__0; @@ -137,6 +143,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_SymbolPriorities_contains_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_eqBoth_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___lam__2____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2275318982____hygCtx___hyg_2____boxed(lean_object*); +lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__2_spec__2___redArg(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); @@ -158,6 +165,7 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_m LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Meta_Grind_NormalizePattern_getPatternArgKinds_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* l_Lean_Meta_isOffset_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_eqLhs_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectGeneralizedPatterns_x3f_spec__2___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_isUnaryNode___redArg(lean_object*); @@ -171,7 +179,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedOrigin; size_t lean_uint64_to_usize(uint64_t); uint64_t lean_uint64_lor(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_user_elim___redArg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(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_EXPORT lean_object* l_Lean_Meta_Grind_instReprOrigin_repr(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__18; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); @@ -193,11 +201,12 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns lean_object* l_Std_PRange_instSupportsUpperBoundOpenOfDecidableLT___redArg(lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__2; lean_object* l_Lean_Environment_findConstVal_x3f(lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_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_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(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_Array_qpartition___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__17; @@ -207,11 +216,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__2; lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__5; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(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_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(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_Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_bwd_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__13; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr_spec__0(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_throwMaxRecDepthAt___at___Lean_Core_withIncRecDepth___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__6_spec__6___redArg___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__2; @@ -226,6 +236,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKi LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_foldlMAux_traverse___at___Lean_PersistentHashMap_foldlMAux___at___Lean_PersistentHashMap_foldlM___at___Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0_spec__0_spec__0_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_typeFormer_elim(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isMatchCongrEqConst(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar_spec__0(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_unknownIdentifierMessageTag; @@ -238,6 +249,7 @@ static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___clo uint8_t l_Lean_Name_isAnonymous(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableEMatchTheoremKind; lean_object* l_ReaderT_instFunctorOfMonad___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_Grind_mkEMatchTheoremCore___closed__6; static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_ppPattern_spec__0___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___closed__1; @@ -273,7 +285,9 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); +static lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__6; static lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_SymbolPriorities_insert_spec__0_spec__0___redArg___closed__0; +LEAN_EXPORT lean_object* l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_EMatchTheorems_contains_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_PersistentHashMap_foldlMAux___at___Lean_PersistentHashMap_foldlM___at___Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0_spec__0_spec__0_spec__0_spec__0___boxed(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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -293,6 +307,7 @@ static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_l static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized_spec__0___closed__1; static lean_object* l_Lean_Meta_Grind_initFn___closed__0____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2690967049____hygCtx___hyg_4_; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__10; +LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___lam__1____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2275318982____hygCtx___hyg_2____boxed(lean_object*, lean_object*); lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__8_spec__9_spec__9_spec__9(lean_object*, lean_object*, lean_object*); @@ -301,6 +316,7 @@ lean_object* l_Lean_PersistentHashMap_find_x3f___redArg(lean_object*, lean_objec LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1_spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___lam__2____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2275318982____hygCtx___hyg_2_(lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar_spec__0_spec__0___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetEMatchTheoremsExt___redArg(lean_object*, lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__3_spec__3___redArg___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__6_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*); @@ -316,15 +332,17 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__10; lean_object* lean_array_fget_borrowed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorems; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_foldlMAux_traverse___at___Lean_PersistentHashMap_foldlMAux___at___Lean_PersistentHashMap_foldlM___at___Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0_spec__0_spec__0_spec__0_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Tactic_TryThis_addSuggestion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_List_beq___at___Lean_Meta_Grind_EMatchTheorems_containsWithSamePatterns_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorems_default; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEMatchTheorem___redArg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(lean_object*, lean_object*, uint8_t, uint8_t, 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*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f_visit_x3f_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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_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_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp(lean_object*); @@ -338,7 +356,7 @@ lean_object* l_ReaderT_instApplicativeOfMonad___redArg___lam__3(lean_object*, le static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___closed__2____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_1821940401____hygCtx___hyg_2_; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_proof_elim(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_initFn___closed__4____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2192377466____hygCtx___hyg_4_; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0(lean_object*, lean_object*, uint8_t, 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_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0(lean_object*, lean_object*, uint8_t, uint8_t, 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_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar_spec__0_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at___Lean_Meta_Grind_isMatchCongrEqDeclName_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_SymbolPriorityEntry_ctorIdx(lean_object*); @@ -360,6 +378,7 @@ static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__6 LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_SymbolPriorities_insert_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(lean_object*); static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__4; static lean_object* l_Lean_Meta_Grind_resetSymbolPrioExt___redArg___closed__2; @@ -370,12 +389,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_toCto LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprOrigin; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__8; lean_object* l_Lean_MessageData_note(lean_object*); +LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isMatchCongrEqDeclName___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__2___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectGeneralizedPatterns_x3f_spec__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprOrigin_repr___closed__12; @@ -395,6 +414,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_EMatchTheorems_contains_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__3; LEAN_EXPORT lean_object* l_Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Tactic_TryThis_addSuggestions___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); static lean_object* l_panic___at___Lean_Meta_Grind_isGenPattern_x3f_spec__0___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); @@ -412,14 +432,15 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_SymbolPriorities_contains_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprOrigin_repr___closed__10; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_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_Grind_addEMatchAttr(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_EMatchTheorems_isErased(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___lam__0____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_1821940401____hygCtx___hyg_2____boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_Data_Array_QSort_Basic_0__Array_qsort_sort___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities_spec__0___redArg___lam__0(lean_object*, lean_object*); static uint64_t l_Lean_Meta_Grind_instHashableEMatchTheoremKind_hash___closed__7; static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(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*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_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*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normConfig___closed__0; +lean_object* lean_string_push(lean_object*, uint32_t); lean_object* l_Array_back_x21___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__0; static uint64_t l_Lean_Meta_Grind_instHashableEMatchTheoremKind_hash___closed__2; @@ -479,6 +500,7 @@ size_t lean_ptr_addr(lean_object*); static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__10; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars_spec__0___redArg___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_Tactic_TryThis_instInhabitedSuggestion_default; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__5(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_Grind_EMatchTheorems_eraseDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -506,22 +528,20 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___L LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___Array_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectGeneralizedPatterns_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_SymbolPriorities_insert_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0___boxed(lean_object**); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_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_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___redArg(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*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_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_EXPORT lean_object* l_Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_mkUnknownIdentifierMessage___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__1___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_ctorElim___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__6; +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__9; LEAN_EXPORT uint8_t l_List_elem___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqOrigin___lam__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_empty___at___Lean_Meta_Grind_instInhabitedEMatchTheorems_default_spec__0___closed__0; LEAN_EXPORT lean_object* l_Lean_throwError___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go_spec__0(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_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lam__0___closed__0; -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__7; static lean_object* l_Lean_Meta_Grind_ppPattern___closed__7; static lean_object* l_Lean_Meta_Grind_initFn___closed__5____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2192377466____hygCtx___hyg_4_; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -529,10 +549,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessPattern(lean_object*, uint8 LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_user_elim(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Match_isCongrEqnReservedNameSuffix(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__0(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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern(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___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_containsWithSamePatterns___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isGenPattern_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_expandOffsetPatterns_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -544,10 +562,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea static lean_object* l_Lean_Meta_Grind_initFn___closed__1____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2690967049____hygCtx___hyg_4_; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_user_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_resetSymbolPrioExt___redArg___closed__3; +static lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__3; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_find(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__8; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -558,8 +578,9 @@ static size_t l_Lean_PersistentHashMap_eraseAux___at___Lean_PersistentHashMap_er uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___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* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(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*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_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_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(lean_object*, lean_object*, uint8_t, uint8_t, 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*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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 lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__10_spec__10_spec__10___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__19; LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0(lean_object*); @@ -584,7 +605,7 @@ LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashM LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_SymbolPriorities_erase_spec__0___redArg___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__0; static lean_object* l_Lean_Meta_Grind_splitWhileForbidden___closed__4; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_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_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_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_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_SymbolPriorities_erase_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__12; @@ -594,6 +615,7 @@ static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__1 LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___boxed(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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__10_spec__10___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___redArg___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__0; LEAN_EXPORT lean_object* l_Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f___closed__0; lean_object* lean_nat_div(lean_object*, lean_object*); @@ -612,6 +634,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_Persist static lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__9___closed__0; static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities_spec__1___redArg___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__5; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0___redArg(uint8_t, lean_object*, uint8_t, 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*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lam__0___closed__1; static lean_object* l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKind_repr___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__13(lean_object*, size_t, size_t, lean_object*); @@ -647,6 +670,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetEMatchTheoremsExt___redArg___box static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetEMatchTheoremsExt___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_default_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__0; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__10___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_Collector_State_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); @@ -677,10 +701,10 @@ lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_obj static lean_object* l_Lean_mkUnknownIdentifierMessage___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__1___closed__1; LEAN_EXPORT lean_object* l_panic___at___Lean_Meta_Grind_isGenPattern_x3f_spec__0(lean_object*); static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__3; -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__12; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__9; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr_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*); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__6; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instApplicativeOfMonad___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -705,7 +729,7 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at_____ static lean_object* l_Lean_Meta_Grind_instReprOrigin_repr___closed__13; static lean_object* l_Lean_Meta_Grind_instReprOrigin___closed__0; static lean_object* l_Lean_Meta_Grind_instReprOrigin_repr___closed__11; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f(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_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f(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_Lean_Meta_Grind_NormalizePattern_PatternArgKind_ctorIdx(uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CheckCoverageResult_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons___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*); @@ -731,7 +755,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___boxed(lean_obje LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__8___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at___Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__2_spec__2(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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*); uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities___closed__0; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_SymbolPriorities_erase_spec__0_spec__0___redArg(lean_object*, size_t, lean_object*); @@ -752,7 +776,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea lean_object* l_ST_Prim_mkRef___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_SymbolPriorities_contains_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqOrigin; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_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*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_SymbolPriorities_contains_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__5; static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized_spec__0___closed__2; @@ -767,10 +791,10 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_eqLhs_elim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__8_spec__9(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___Lean_Core_withIncRecDepth___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__6_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__2___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CheckCoverageResult_ok_elim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -804,7 +828,6 @@ LEAN_EXPORT uint8_t l_List_beq___at___Option_instBEq_beq___at_____private_Lean_M LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0(uint8_t, 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*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__0___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -879,6 +902,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_ static lean_object* l_Lean_throwMaxRecDepthAt___at___Lean_Core_withIncRecDepth___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__6_spec__6___redArg___closed__4; LEAN_EXPORT lean_object* l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__4; +static lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__5; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_EMatchTheorems_contains_spec__0_spec__0(lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1(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_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__0___redArg___boxed(lean_object*, lean_object*); @@ -888,13 +912,14 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___closed__1____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_1821940401____hygCtx___hyg_2_; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_symbolPrioExt; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___Lean_Core_withIncRecDepth___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__6_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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_EXPORT lean_object* l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetSymbolPrioExt___redArg___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_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_Lean_Meta_Grind_EMatchTheoremKind_default_elim___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars_spec__0___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___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_Lean_mkUnknownIdentifierMessage___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__1___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_fwd_elim___redArg___boxed(lean_object*, lean_object*); @@ -926,6 +951,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_getPatternArgKinds(l LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_ppPattern_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldl___at___List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_leftRight_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f___closed__0; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___redArg___boxed(lean_object*, lean_object*, lean_object*); @@ -935,24 +961,29 @@ lean_object* l_List_appendTR___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_decl_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_idxOfAux___at___Array_finIdxOf_x3f___at___Lean_PersistentHashMap_eraseAux___at___Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_SymbolPriorities_erase_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__3_spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2192377466____hygCtx___hyg_4_(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0; LEAN_EXPORT lean_object* l_List_filterTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_diff_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__1___closed__0; static lean_object* l_Lean_mkUnknownIdentifierMessage___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__1___closed__9; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__0; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0___boxed(lean_object**); +static lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__1; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__2_spec__2___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__8(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__3; lean_object* lean_array_get_borrowed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldrM___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__12(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at___Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_isDefault___boxed(lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__0; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___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___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__2; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqBwdPattern(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__0; @@ -971,6 +1002,7 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_D uint8_t l_Lean_Environment_contains(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_Context_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CheckCoverageResult_missing_elim(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__1; LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -999,12 +1031,11 @@ static lean_object* l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKind_re LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatternBVars___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkEMatchEqTheoremsForDef_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___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; static lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_SymbolPriorities_getPrio_spec__0___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__5; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_PersistentHashMap_foldlMAux___at___Lean_PersistentHashMap_foldlM___at___Lean_PersistentHashMap_foldl___at___Lean_PersistentHashMap_toList___at___Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0_spec__0_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_getOrigins(lean_object*); lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); @@ -1019,7 +1050,6 @@ static lean_object* l_Lean_Meta_Grind_instInhabitedSymbolPriorityEntry_default__ static lean_object* l_Lean_Meta_Grind_splitWhileForbidden___closed__0; static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__7; static lean_object* l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default___closed__0; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__10_spec__10(lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_isErased___boxed(lean_object*, lean_object*); @@ -1057,7 +1087,6 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____priva LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGroundPattern(lean_object*); lean_object* l_Lean_FVarIdSet_insert(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__9; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_SymbolPriorities_insert_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__18; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default; @@ -1077,7 +1106,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_SymbolPriorities_erase_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__1(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_SymbolPriorities_contains(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___boxed(lean_object**); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_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_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities_spec__3(lean_object*, size_t, size_t, lean_object*); @@ -1096,6 +1125,7 @@ LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at___Lean_Meta_Grind_ad static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___closed__14____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2275318982____hygCtx___hyg_2_; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1_spec__1___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_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*); static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__16; LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList___at___Lean_Meta_Grind_EMatchTheorems_getOrigins_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_isEqLhs___boxed(lean_object*); @@ -1107,6 +1137,7 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lean_Meta_Grind_EMatchTheorems_eraseDecl_spec__0(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(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_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns_go___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_Grind_addEMatchAttrAndSuggest___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_Grind_instReprEMatchTheoremKind_repr___closed__0; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0___closed__2; @@ -1115,6 +1146,7 @@ LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Meta_Grind_NormalizePatter LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableEMatchTheoremKind_hash___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_instReprOrigin_repr___closed__9; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__10(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_backward_grind_inferPattern; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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_Lean_throwMaxRecDepthAt___at___Lean_Core_withIncRecDepth___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__6_spec__6___redArg___closed__3; @@ -1151,7 +1183,7 @@ lean_object* l_Lean_mkRawNatLit(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___closed__12____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2275318982____hygCtx___hyg_2_; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___lam__0___closed__0; LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0(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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_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_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_getKindsFor(lean_object*, lean_object*); @@ -1160,7 +1192,7 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_SymbolPriorities_insert_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__8_spec__9_spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static uint64_t l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___closed__0; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_modifyState___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___redArg___boxed(lean_object*, lean_object*, lean_object*); @@ -1170,6 +1202,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_noCon LEAN_EXPORT lean_object* l_Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___lam__1____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_1821940401____hygCtx___hyg_2____boxed(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__2; static lean_object* l_Lean_Meta_Grind_isGenPattern_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedSymbolPriorities; static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___redArg___lam__0___closed__1; @@ -1201,7 +1234,7 @@ static lean_object* l_Lean_Meta_Grind_splitWhileForbidden___closed__3; static lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1; lean_object* l_ReaderT_instFunctorOfMonad___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_expandOffsetPatterns_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___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_Grind_mkEMatchTheoremForDecl___boxed(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_Lean_Meta_Grind_EMatchTheoremKind_isDefault(lean_object*); static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__24; uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); @@ -1224,6 +1257,8 @@ static lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____pr LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CheckCoverageResult_ok_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__1(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldl___at___List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1_spec__1___boxed(lean_object*, lean_object*); static uint64_t l_Lean_Meta_Grind_instHashableEMatchTheoremKind_hash___closed__4; LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go_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_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__10_spec__10___boxed(lean_object**); @@ -1245,11 +1280,12 @@ lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__0(lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1___redArg___closed__1; lean_object* l_List_reverse___redArg(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_SelectM_State_ctorIdx(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Bool_repr___redArg(uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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_EXPORT lean_object* l_Lean_Meta_isMatcher___at___Lean_Meta_Grind_isMatchCongrEqDeclName_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0(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_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_ctorIdx___boxed(lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go_spec__2___closed__1; @@ -1276,6 +1312,7 @@ uint8_t l_Lean_isPrivateName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_eqBwd_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_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 uint8_t l_Lean_PersistentHashMap_containsAtAux___at___Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_Meta_Grind_SymbolPriorities_contains_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_finIdxOf_x3f___at___Lean_PersistentHashMap_eraseAux___at___Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__6_spec__6_spec__6___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1302,7 +1339,6 @@ uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__6; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___closed__11____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2275318982____hygCtx___hyg_2_; static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__1; -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__13; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetSymbolPrioExt___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_relevant_elim(lean_object*, uint8_t, lean_object*, lean_object*); @@ -1335,11 +1371,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_SymbolPriorities_insert(lean_object*, static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__5; static lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lam__0___closed__0; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatternBVars_go(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lam__0___closed__0; size_t lean_usize_sub(size_t, size_t); static uint64_t l_Lean_Meta_Grind_instHashableEMatchTheoremKind_hash___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__2; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__5___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1351,6 +1387,7 @@ static lean_object* l_Lean_Meta_Grind_ppPattern___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_expandOffsetPatterns_spec__0_spec__0_spec__4(lean_object*, 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_Expr_withAppAux___at___Lean_Expr_withAppAux___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized_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*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___boxed(lean_object*, lean_object*); @@ -1365,6 +1402,7 @@ LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentH LEAN_EXPORT lean_object* l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_SymbolPriorities_erase_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqEMatchTheoremKind; +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getGlobalSymbolPriorities(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkUnknownIdentifierMessage___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__1___closed__15; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f___closed__2; @@ -1376,13 +1414,16 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedSymbolPriorityEntry; static lean_object* l_Lean_mkUnknownIdentifierMessage___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__1___closed__6; static lean_object* l_Lean_Meta_Grind_instReprEMatchTheoremKind_repr___closed__20; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__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_Meta_Grind_addEMatchAttrAndSuggest___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__3; +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__4; lean_object* l_Lean_collectFVars(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_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*); size_t lean_array_size(lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__7; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__7_spec__7___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__3_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_EXPORT lean_object* l_Lean_Expr_withAppAux___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_expandOffsetPatterns_spec__0_spec__0_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1400,6 +1441,7 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FVarId_getType___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f___closed__1; +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__4; uint8_t l_Lean_isInductiveCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_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_Lean_Meta_Grind_Origin_stx_elim___redArg(lean_object*, lean_object*); @@ -1424,17 +1466,19 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_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* l_Lean_Core_instMonadCoreM___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___closed__3____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_1821940401____hygCtx___hyg_2_; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr___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_Grind_addEMatchAttr___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___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___Array_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectGeneralizedPatterns_x3f_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__1___boxed(lean_object**); static lean_object* l_Lean_Meta_Grind_mkGenPattern___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___Lean_Meta_Grind_isGenPattern_x3f_spec__0___closed__3; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__4; +static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__5; static lean_object* l_Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1___redArg___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_QSort_Basic_0__Array_qsort_sort___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_SymbolPriorities_getPrio___boxed(lean_object*, lean_object*); @@ -1448,6 +1492,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr___redArg( LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_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_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_spec__8_spec__9_spec__9_spec__9___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__2; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0(uint8_t, lean_object*, uint8_t, 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_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized_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_EXPORT lean_object* l_List_beq___at___Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2_spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_addCore___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); @@ -1508,6 +1553,9 @@ static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__1 LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_Grind_SymbolPriorities_getPrio_spec__0___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1(lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__2; static lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___lam__0___closed__0; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1542,13 +1590,15 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprGenPatternInfo_repr(lean_obje lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isMatchCongrEqConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_contains___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol_spec__0_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_SelectM_State_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f_visit_x3f_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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Meta_Grind_preprocessPattern_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__3(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_fwd_elim___redArg(lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_empty___at___Lean_Meta_Grind_instInhabitedEMatchTheorems_default_spec__0___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__6; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect___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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect___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_Grind_groundPattern_x3f___boxed(lean_object*); uint8_t l_Lean_wasOriginallyTheorem(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Meta_Grind_SymbolPriorities_insert_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1563,13 +1613,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_leftRight_elim___re lean_object* l_Lean_Meta_instMonadMetaM___lam__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_Meta_Grind_GenPatternInfo_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage_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*); -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__9; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__1; lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_getPatternArgKinds___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___Lean_Meta_Grind_EMatchTheorems_insert_spec__6___redArg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_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*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem_default___closed__4; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized_spec__2_spec__2___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_Name_hash___override___boxed(lean_object*); @@ -1593,11 +1642,13 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_m LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_getPatternArgKinds___lam__0(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_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_SymbolPriorities_getPrio(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__8; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_____private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0_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_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_initFn___closed__0____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2275318982____hygCtx___hyg_2_; +static lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__0; +static lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__7; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_Meta_Grind_NormalizePattern_getPatternArgKinds_spec__0___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__2; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; @@ -10570,7 +10621,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_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(26u); -x_3 = lean_unsigned_to_nat(146u); +x_3 = lean_unsigned_to_nat(147u); x_4 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__1; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -10583,7 +10634,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_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(26u); -x_3 = lean_unsigned_to_nat(145u); +x_3 = lean_unsigned_to_nat(146u); x_4 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__1; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -10596,7 +10647,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_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(26u); -x_3 = lean_unsigned_to_nat(142u); +x_3 = lean_unsigned_to_nat(143u); x_4 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__1; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -10609,7 +10660,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_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(26u); -x_3 = lean_unsigned_to_nat(141u); +x_3 = lean_unsigned_to_nat(142u); x_4 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__1; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -15780,119 +15831,119 @@ x_3 = lean_box(x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__0() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__0() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind =]", 9, 9); +x_1 = lean_mk_string_unchecked(" =", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind = gen]", 13, 13); +x_1 = lean_mk_string_unchecked(" = gen", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind =_]", 10, 10); +x_1 = lean_mk_string_unchecked(" =_", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind =_ gen]", 14, 14); +x_1 = lean_mk_string_unchecked(" =_ gen", 7, 7); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__4() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind _=_]", 11, 11); +x_1 = lean_mk_string_unchecked(" _=_", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind _=_ gen]", 15, 15); +x_1 = lean_mk_string_unchecked(" _=_ gen", 8, 8); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__6() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind ←=]", 12, 10); +x_1 = lean_mk_string_unchecked(" ←=", 5, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__7() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind →]", 11, 9); +x_1 = lean_mk_string_unchecked(" →", 4, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__8() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__8() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind ←]", 11, 9); +x_1 = lean_mk_string_unchecked(" ←", 4, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__9() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__9() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind ← gen]", 15, 13); +x_1 = lean_mk_string_unchecked(" ← gen", 8, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__10() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__10() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind =>]", 10, 10); +x_1 = lean_mk_string_unchecked(" =>", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__11() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__11() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind <=]", 10, 10); +x_1 = lean_mk_string_unchecked(" <=", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__12() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind]", 7, 7); +x_1 = lean_mk_string_unchecked("", 0, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__13() { +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__13() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind gen]", 11, 11); +x_1 = lean_mk_string_unchecked(" gen", 4, 4); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -15903,13 +15954,13 @@ x_2 = lean_ctor_get_uint8(x_1, 0); if (x_2 == 0) { lean_object* x_3; -x_3 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__0; +x_3 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__0; return x_3; } else { lean_object* x_4; -x_4 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1; +x_4 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__1; return x_4; } } @@ -15920,13 +15971,13 @@ x_5 = lean_ctor_get_uint8(x_1, 0); if (x_5 == 0) { lean_object* x_6; -x_6 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__2; +x_6 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__2; return x_6; } else { lean_object* x_7; -x_7 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__3; +x_7 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__3; return x_7; } } @@ -15937,26 +15988,26 @@ x_8 = lean_ctor_get_uint8(x_1, 0); if (x_8 == 0) { lean_object* x_9; -x_9 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__4; +x_9 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__4; return x_9; } else { lean_object* x_10; -x_10 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__5; +x_10 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__5; return x_10; } } case 3: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__6; +x_11 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__6; return x_11; } case 4: { lean_object* x_12; -x_12 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__7; +x_12 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__7; return x_12; } case 5: @@ -15966,26 +16017,26 @@ x_13 = lean_ctor_get_uint8(x_1, 0); if (x_13 == 0) { lean_object* x_14; -x_14 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__8; +x_14 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__8; return x_14; } else { lean_object* x_15; -x_15 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__9; +x_15 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__9; return x_15; } } case 6: { lean_object* x_16; -x_16 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__10; +x_16 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__10; return x_16; } case 7: { lean_object* x_17; -x_17 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__11; +x_17 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__11; return x_17; } case 8: @@ -15995,25 +16046,63 @@ x_18 = lean_ctor_get_uint8(x_1, 0); if (x_18 == 0) { lean_object* x_19; -x_19 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__12; +x_19 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; return x_19; } else { lean_object* x_20; -x_20 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__13; +x_20 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__13; return x_20; } } default: { lean_object* x_21; -x_21 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__12; +x_21 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; return x_21; } } } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[grind", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("]", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__0; +x_3 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(x_1); +x_4 = lean_string_append(x_2, x_3); +lean_dec_ref(x_3); +x_5 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1; +x_6 = lean_string_append(x_4, x_5); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___boxed(lean_object* x_1) { _start: { @@ -16023,19 +16112,11 @@ lean_dec(x_1); return x_2; } } -static lean_object* _init_l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_2 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_3 = lean_panic_fn(x_2, x_1); return x_3; } @@ -16070,7 +16151,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_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(18u); -x_3 = lean_unsigned_to_nat(371u); +x_3 = lean_unsigned_to_nat(375u); x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__2; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -16131,7 +16212,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_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(18u); -x_3 = lean_unsigned_to_nat(378u); +x_3 = lean_unsigned_to_nat(382u); x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__2; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -17534,7 +17615,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_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(6u); -x_3 = lean_unsigned_to_nat(422u); +x_3 = lean_unsigned_to_nat(426u); x_4 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__0; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -21073,16 +21154,8 @@ return x_2; static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__8() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("]", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__9() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_ppPattern___closed__8; +x_1 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -21185,7 +21258,7 @@ x_38 = l_Lean_MessageData_ofExpr(x_36); 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_Grind_ppPattern___closed__9; +x_40 = l_Lean_Meta_Grind_ppPattern___closed__8; x_41 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); @@ -25100,7 +25173,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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__3; x_2 = lean_unsigned_to_nat(2u); -x_3 = lean_unsigned_to_nat(710u); +x_3 = lean_unsigned_to_nat(714u); x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__2; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -29764,7 +29837,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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lam__0___closed__2; x_2 = lean_unsigned_to_nat(4u); -x_3 = lean_unsigned_to_nat(800u); +x_3 = lean_unsigned_to_nat(804u); x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lam__0___closed__1; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); @@ -31393,85 +31466,93 @@ x_19 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Me return x_19; } } +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lam__0___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___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) { _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; lean_object* x_15; uint8_t x_16; +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; x_9 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__1___redArg___closed__0; x_10 = lean_array_get_size(x_2); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; -x_13 = l_Lean_stringToMessageData(x_12); -x_14 = l_Std_PRange_instSupportsUpperBoundOpenOfDecidableLT___redArg(x_9); +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lam__0___closed__0; +x_13 = l_Std_PRange_instSupportsUpperBoundOpenOfDecidableLT___redArg(x_9); lean_inc(x_10); -x_15 = lean_apply_2(x_14, x_10, x_11); -x_16 = lean_unbox(x_15); -if (x_16 == 0) +x_14 = lean_apply_2(x_13, x_10, x_11); +x_15 = lean_unbox(x_14); +if (x_15 == 0) { -lean_object* x_17; +lean_object* x_16; lean_dec(x_10); -x_17 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2_spec__2(x_13, x_4, x_5, x_6, x_7, x_8); +x_16 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2_spec__2(x_12, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_4); -return x_17; +return x_16; } else { -uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = 0; -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_15); -lean_ctor_set(x_20, 1, x_13); +uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = 0; +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_12); lean_inc(x_7); lean_inc_ref(x_6); lean_inc(x_5); lean_inc_ref(x_4); -x_21 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1___redArg(x_1, x_2, x_19, x_18, x_10, x_11, x_20, x_11, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_21) == 0) +x_20 = l_Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1___redArg(x_1, x_2, x_18, x_17, x_10, x_11, x_19, x_11, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_21, 0); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +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_ctor_get(x_21, 1); lean_inc(x_23); -lean_dec_ref(x_21); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2_spec__2(x_24, x_4, x_5, x_6, x_7, x_23); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -return x_25; -} -else -{ -uint8_t x_26; -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -x_26 = !lean_is_exclusive(x_21); -if (x_26 == 0) -{ -return x_21; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_21, 0); -x_28 = lean_ctor_get(x_21, 1); -lean_inc(x_28); -lean_inc(x_27); lean_dec(x_21); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +x_24 = l_Lean_addMessageContextFull___at___Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2_spec__2(x_23, x_4, x_5, x_6, x_7, x_22); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +return x_20; +} +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_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; } } } @@ -31908,7 +31989,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2(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: { -lean_object* x_10; lean_object* x_11; uint8_t 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_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* 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; uint8_t 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; uint8_t x_135; lean_object* 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; lean_object* x_11; uint8_t 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; lean_object* x_82; uint8_t x_83; lean_object* x_84; uint8_t 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; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* 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; lean_object* x_136; uint8_t 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_instBEqMessageSeverity_beq(x_3, x_133); if (x_158 == 0) @@ -31950,13 +32031,13 @@ x_28 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_28, 0, x_20); lean_ctor_set(x_28, 1, x_11); x_29 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 0, x_10); lean_ctor_set(x_29, 1, x_15); -lean_ctor_set(x_29, 2, x_16); -lean_ctor_set(x_29, 3, x_10); +lean_ctor_set(x_29, 2, x_13); +lean_ctor_set(x_29, 3, x_16); lean_ctor_set(x_29, 4, x_28); -lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_13); -lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_12); +lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_12); +lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_14); 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); @@ -32012,13 +32093,13 @@ x_47 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_47, 0, x_20); lean_ctor_set(x_47, 1, x_11); x_48 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_48, 0, x_14); +lean_ctor_set(x_48, 0, x_10); lean_ctor_set(x_48, 1, x_15); -lean_ctor_set(x_48, 2, x_16); -lean_ctor_set(x_48, 3, x_10); +lean_ctor_set(x_48, 2, x_13); +lean_ctor_set(x_48, 3, x_16); lean_ctor_set(x_48, 4, x_47); -lean_ctor_set_uint8(x_48, sizeof(void*)*5, x_13); -lean_ctor_set_uint8(x_48, sizeof(void*)*5 + 1, x_12); +lean_ctor_set_uint8(x_48, sizeof(void*)*5, x_12); +lean_ctor_set_uint8(x_48, sizeof(void*)*5 + 1, x_14); 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); @@ -32106,13 +32187,13 @@ x_71 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_11); x_72 = lean_alloc_ctor(0, 5, 3); -lean_ctor_set(x_72, 0, x_14); +lean_ctor_set(x_72, 0, x_10); lean_ctor_set(x_72, 1, x_15); -lean_ctor_set(x_72, 2, x_16); -lean_ctor_set(x_72, 3, x_10); +lean_ctor_set(x_72, 2, x_13); +lean_ctor_set(x_72, 3, x_16); lean_ctor_set(x_72, 4, x_71); -lean_ctor_set_uint8(x_72, sizeof(void*)*5, x_13); -lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 1, x_12); +lean_ctor_set_uint8(x_72, sizeof(void*)*5, x_12); +lean_ctor_set_uint8(x_72, sizeof(void*)*5 + 1, x_14); 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)) { @@ -32162,25 +32243,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_82); -x_94 = l_Lean_FileMap_toPosition(x_82, x_84); -lean_dec(x_84); -x_95 = l_Lean_FileMap_toPosition(x_82, x_88); +lean_inc_ref(x_84); +x_94 = l_Lean_FileMap_toPosition(x_84, x_87); +lean_dec(x_87); +x_95 = l_Lean_FileMap_toPosition(x_84, 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_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_97 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; if (x_85 == 0) { lean_free_object(x_90); lean_dec_ref(x_81); -x_10 = x_97; +x_10 = x_82; x_11 = x_92; x_12 = x_83; -x_13 = x_86; -x_14 = x_87; +x_13 = x_96; +x_14 = x_86; x_15 = x_94; -x_16 = x_96; +x_16 = x_97; x_17 = x_7; x_18 = x_8; x_19 = x_93; @@ -32197,7 +32278,7 @@ lean_object* x_99; lean_dec_ref(x_96); lean_dec_ref(x_94); lean_dec(x_92); -lean_dec_ref(x_87); +lean_dec_ref(x_82); lean_dec_ref(x_7); x_99 = lean_box(0); lean_ctor_set(x_90, 0, x_99); @@ -32206,13 +32287,13 @@ return x_90; else { lean_free_object(x_90); -x_10 = x_97; +x_10 = x_82; x_11 = x_92; x_12 = x_83; -x_13 = x_86; -x_14 = x_87; +x_13 = x_96; +x_14 = x_86; x_15 = x_94; -x_16 = x_96; +x_16 = x_97; x_17 = x_7; x_18 = x_8; x_19 = x_93; @@ -32228,24 +32309,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_82); -x_102 = l_Lean_FileMap_toPosition(x_82, x_84); -lean_dec(x_84); -x_103 = l_Lean_FileMap_toPosition(x_82, x_88); +lean_inc_ref(x_84); +x_102 = l_Lean_FileMap_toPosition(x_84, x_87); +lean_dec(x_87); +x_103 = l_Lean_FileMap_toPosition(x_84, 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_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_105 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; if (x_85 == 0) { lean_dec_ref(x_81); -x_10 = x_105; +x_10 = x_82; x_11 = x_100; x_12 = x_83; -x_13 = x_86; -x_14 = x_87; +x_13 = x_104; +x_14 = x_86; x_15 = x_102; -x_16 = x_104; +x_16 = x_105; x_17 = x_7; x_18 = x_8; x_19 = x_101; @@ -32262,7 +32343,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_87); +lean_dec_ref(x_82); lean_dec_ref(x_7); x_107 = lean_box(0); x_108 = lean_alloc_ctor(0, 2, 0); @@ -32272,13 +32353,13 @@ return x_108; } else { -x_10 = x_105; +x_10 = x_82; x_11 = x_100; x_12 = x_83; -x_13 = x_86; -x_14 = x_87; +x_13 = x_104; +x_14 = x_86; x_15 = x_102; -x_16 = x_104; +x_16 = x_105; x_17 = x_7; x_18 = x_8; x_19 = x_101; @@ -32290,18 +32371,18 @@ goto block_80; block_120: { lean_object* x_118; -x_118 = l_Lean_Syntax_getTailPos_x3f(x_113, x_115); -lean_dec(x_113); +x_118 = l_Lean_Syntax_getTailPos_x3f(x_116, x_113); +lean_dec(x_116); if (lean_obj_tag(x_118) == 0) { lean_inc(x_117); x_81 = x_110; x_82 = x_111; -x_83 = x_112; -x_84 = x_117; +x_83 = x_113; +x_84 = x_112; x_85 = x_114; x_86 = x_115; -x_87 = x_116; +x_87 = x_117; x_88 = x_117; goto block_109; } @@ -32313,11 +32394,11 @@ lean_inc(x_119); lean_dec_ref(x_118); x_81 = x_110; x_82 = x_111; -x_83 = x_112; -x_84 = x_117; +x_83 = x_113; +x_84 = x_112; x_85 = x_114; x_86 = x_115; -x_87 = x_116; +x_87 = x_117; x_88 = x_119; goto block_109; } @@ -32325,20 +32406,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_124); +x_128 = l_Lean_replaceRef(x_1, x_126); +lean_dec(x_126); +x_129 = l_Lean_Syntax_getPos_x3f(x_128, x_123); 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_122; -x_112 = x_127; -x_113 = x_128; -x_114 = x_123; -x_115 = x_124; -x_116 = x_126; +x_112 = x_124; +x_113 = x_123; +x_114 = x_125; +x_115 = x_127; +x_116 = x_128; x_117 = x_130; goto block_120; } @@ -32350,11 +32431,11 @@ lean_inc(x_131); lean_dec_ref(x_129); x_110 = x_121; x_111 = x_122; -x_112 = x_127; -x_113 = x_128; -x_114 = x_123; -x_115 = x_124; -x_116 = x_126; +x_112 = x_124; +x_113 = x_123; +x_114 = x_125; +x_115 = x_127; +x_116 = x_128; x_117 = x_131; goto block_120; } @@ -32363,23 +32444,23 @@ block_141: { if (x_140 == 0) { -x_121 = x_138; -x_122 = x_134; -x_123 = x_135; -x_124 = x_139; -x_125 = x_136; -x_126 = x_137; +x_121 = x_134; +x_122 = x_135; +x_123 = x_139; +x_124 = x_136; +x_125 = x_137; +x_126 = x_138; x_127 = x_3; goto block_132; } else { -x_121 = x_138; -x_122 = x_134; -x_123 = x_135; -x_124 = x_139; -x_125 = x_136; -x_126 = x_137; +x_121 = x_134; +x_122 = x_135; +x_123 = x_139; +x_124 = x_136; +x_125 = x_137; +x_126 = x_138; x_127 = x_133; goto block_132; } @@ -32403,14 +32484,14 @@ x_151 = 1; x_152 = l_Lean_instBEqMessageSeverity_beq(x_3, x_151); if (x_152 == 0) { -lean_inc_ref(x_143); lean_inc(x_146); lean_inc_ref(x_144); -x_134 = x_144; -x_135 = x_147; -x_136 = x_146; -x_137 = x_143; -x_138 = x_150; +lean_inc_ref(x_143); +x_134 = x_150; +x_135 = x_143; +x_136 = x_144; +x_137 = x_147; +x_138 = x_146; x_139 = x_142; x_140 = x_152; goto block_141; @@ -32420,14 +32501,14 @@ else lean_object* x_153; uint8_t x_154; x_153 = l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___closed__0; x_154 = l_Lean_Option_get___at___Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2_spec__2(x_145, x_153); -lean_inc_ref(x_143); lean_inc(x_146); lean_inc_ref(x_144); -x_134 = x_144; -x_135 = x_147; -x_136 = x_146; -x_137 = x_143; -x_138 = x_150; +lean_inc_ref(x_143); +x_134 = x_150; +x_135 = x_143; +x_136 = x_144; +x_137 = x_147; +x_138 = x_146; x_139 = x_142; x_140 = x_154; goto block_141; @@ -32669,7 +32750,7 @@ lean_object* x_21; double x_22; uint8_t x_23; lean_object* x_24; lean_object* x_ x_21 = lean_ctor_get(x_14, 0); x_22 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_23 = 0; -x_24 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_24 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_25 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_25, 0, x_1); lean_ctor_set(x_25, 1, x_24); @@ -32719,7 +32800,7 @@ lean_inc(x_37); lean_dec(x_14); x_38 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_39 = 0; -x_40 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_40 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_41 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_41, 0, x_1); lean_ctor_set(x_41, 1, x_40); @@ -32793,7 +32874,7 @@ if (lean_is_exclusive(x_14)) { } x_62 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_63 = 0; -x_64 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_64 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_65 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_65, 0, x_1); lean_ctor_set(x_65, 1, x_64); @@ -32897,7 +32978,7 @@ if (lean_is_exclusive(x_14)) { } x_89 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_90 = 0; -x_91 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_91 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_92 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_92, 0, x_1); lean_ctor_set(x_92, 1, x_91); @@ -34192,7 +34273,7 @@ lean_inc(x_24); lean_inc_ref(x_23); lean_inc(x_22); lean_inc_ref(x_21); -x_26 = l_Lean_Meta_Grind_preprocessPattern(x_20, x_2, x_21, x_22, x_23, x_24, x_25); +x_26 = l_Lean_Meta_Grind_preprocessPattern(x_19, x_2, x_21, x_22, x_23, x_24, x_25); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; @@ -34201,8 +34282,8 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec_ref(x_26); -lean_inc(x_19); -x_29 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___redArg(x_19, x_23, x_28); +lean_inc(x_20); +x_29 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___redArg(x_20, x_23, x_28); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_unbox(x_30); @@ -34214,7 +34295,7 @@ lean_dec(x_24); lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); -lean_dec(x_19); +lean_dec(x_20); x_32 = lean_ctor_get(x_29, 1); lean_inc(x_32); lean_dec_ref(x_29); @@ -34261,7 +34342,7 @@ x_44 = l_Lean_MessageData_ofExpr(x_38); 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_Meta_Grind_mkEMatchTheoremCore_spec__1(x_19, x_45, x_21, x_22, x_23, x_24, x_39); +x_46 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_20, x_45, x_21, x_22, x_23, x_24, x_39); lean_dec(x_24); lean_dec_ref(x_23); lean_dec(x_22); @@ -34282,7 +34363,7 @@ lean_dec(x_24); lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); -lean_dec(x_19); +lean_dec(x_20); x_48 = !lean_is_exclusive(x_37); if (x_48 == 0) { @@ -34338,7 +34419,7 @@ x_62 = l_Lean_MessageData_ofExpr(x_55); x_63 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_63, 0, x_61); lean_ctor_set(x_63, 1, x_62); -x_64 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_19, x_63, x_21, x_22, x_23, x_24, x_56); +x_64 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_20, x_63, x_21, x_22, x_23, x_24, x_56); lean_dec(x_24); lean_dec_ref(x_23); lean_dec(x_22); @@ -34358,7 +34439,7 @@ lean_dec(x_24); lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); -lean_dec(x_19); +lean_dec(x_20); x_66 = lean_ctor_get(x_54, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_54, 1); @@ -34390,7 +34471,7 @@ lean_dec(x_24); lean_dec_ref(x_23); lean_dec(x_22); lean_dec_ref(x_21); -lean_dec(x_19); +lean_dec(x_20); x_70 = !lean_is_exclusive(x_26); if (x_70 == 0) { @@ -34418,15 +34499,15 @@ x_80 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_80, 0, x_79); x_81 = l_Lean_MessageData_ofFormat(x_80); x_82 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_82, 0, x_77); +lean_ctor_set(x_82, 0, x_78); lean_ctor_set(x_82, 1, x_81); -lean_inc(x_76); -x_83 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_76, x_82, x_6, x_7, x_8, x_9, x_75); +lean_inc(x_77); +x_83 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_77, x_82, x_6, x_7, x_8, x_9, x_76); x_84 = lean_ctor_get(x_83, 1); lean_inc(x_84); lean_dec_ref(x_83); -x_19 = x_76; -x_20 = x_78; +x_19 = x_75; +x_20 = x_77; x_21 = x_6; x_22 = x_7; x_23 = x_8; @@ -34450,8 +34531,8 @@ lean_dec_ref(x_3); x_91 = lean_ctor_get(x_88, 1); lean_inc(x_91); lean_dec_ref(x_88); -x_19 = x_87; -x_20 = x_86; +x_19 = x_86; +x_20 = x_87; x_21 = x_6; x_22 = x_7; x_23 = x_8; @@ -34491,10 +34572,10 @@ if (x_4 == 0) { lean_object* x_103; x_103 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_75 = x_93; -x_76 = x_87; -x_77 = x_102; -x_78 = x_86; +x_75 = x_86; +x_76 = x_93; +x_77 = x_87; +x_78 = x_102; x_79 = x_103; goto block_85; } @@ -34502,10 +34583,10 @@ else { lean_object* x_104; x_104 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_75 = x_93; -x_76 = x_87; -x_77 = x_102; -x_78 = x_86; +x_75 = x_86; +x_76 = x_93; +x_77 = x_87; +x_78 = x_102; x_79 = x_104; goto block_85; } @@ -34538,10 +34619,10 @@ if (x_4 == 0) { lean_object* x_115; x_115 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_75 = x_105; -x_76 = x_87; -x_77 = x_114; -x_78 = x_86; +x_75 = x_86; +x_76 = x_105; +x_77 = x_87; +x_78 = x_114; x_79 = x_115; goto block_85; } @@ -34549,10 +34630,10 @@ else { lean_object* x_116; x_116 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_75 = x_105; -x_76 = x_87; -x_77 = x_114; -x_78 = x_86; +x_75 = x_86; +x_76 = x_105; +x_77 = x_87; +x_78 = x_114; x_79 = x_116; goto block_85; } @@ -36418,7 +36499,7 @@ lean_object* x_21; double x_22; uint8_t x_23; lean_object* x_24; lean_object* x_ x_21 = lean_ctor_get(x_14, 0); x_22 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_23 = 0; -x_24 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_24 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_25 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_25, 0, x_1); lean_ctor_set(x_25, 1, x_24); @@ -36468,7 +36549,7 @@ lean_inc(x_37); lean_dec(x_14); x_38 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_39 = 0; -x_40 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_40 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_41 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_41, 0, x_1); lean_ctor_set(x_41, 1, x_40); @@ -36542,7 +36623,7 @@ if (lean_is_exclusive(x_14)) { } x_62 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_63 = 0; -x_64 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_64 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_65 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_65, 0, x_1); lean_ctor_set(x_65, 1, x_64); @@ -36646,7 +36727,7 @@ if (lean_is_exclusive(x_14)) { } x_89 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_90 = 0; -x_91 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_91 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_92 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_92, 0, x_1); lean_ctor_set(x_92, 1, x_91); @@ -39605,30 +39686,30 @@ if (lean_obj_tag(x_60) == 0) { lean_dec_ref(x_60); lean_dec(x_15); -x_17 = x_55; -x_18 = x_54; -x_19 = x_58; -x_20 = x_56; -x_21 = x_53; -x_22 = x_52; -x_23 = x_57; -x_24 = x_59; +x_17 = x_52; +x_18 = x_55; +x_19 = x_53; +x_20 = x_51; +x_21 = x_59; +x_22 = x_54; +x_23 = x_58; +x_24 = x_57; x_25 = x_50; -x_26 = x_51; +x_26 = x_56; x_27 = x_61; goto block_49; } else { lean_object* x_62; lean_object* x_63; -lean_dec(x_59); +lean_dec_ref(x_59); lean_dec_ref(x_58); -lean_dec_ref(x_57); +lean_dec(x_57); lean_dec(x_56); -lean_dec_ref(x_55); +lean_dec(x_55); lean_dec(x_54); lean_dec_ref(x_53); -lean_dec(x_52); +lean_dec_ref(x_52); lean_dec(x_51); lean_dec_ref(x_50); lean_dec_ref(x_1); @@ -39656,15 +39737,15 @@ x_77 = lean_ctor_get(x_75, 1); lean_inc(x_77); lean_dec_ref(x_75); x_50 = x_65; -x_51 = x_68; +x_51 = x_66; x_52 = x_67; -x_53 = x_66; -x_54 = x_70; -x_55 = x_69; -x_56 = x_71; -x_57 = x_72; +x_53 = x_68; +x_54 = x_69; +x_55 = x_71; +x_56 = x_70; +x_57 = x_74; x_58 = x_73; -x_59 = x_74; +x_59 = x_72; x_60 = x_76; x_61 = x_77; goto block_64; @@ -39677,10 +39758,10 @@ lean_dec_ref(x_73); lean_dec_ref(x_72); lean_dec(x_71); lean_dec(x_70); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec_ref(x_66); +lean_dec(x_69); +lean_dec_ref(x_68); +lean_dec_ref(x_67); +lean_dec(x_66); lean_dec_ref(x_65); lean_dec(x_15); lean_dec_ref(x_1); @@ -39709,7 +39790,7 @@ block_123: if (x_96 == 0) { lean_object* x_97; lean_object* x_98; uint8_t x_99; -x_97 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_16, x_83, x_85); +x_97 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_16, x_83, x_86); x_98 = lean_ctor_get(x_97, 0); lean_inc(x_98); x_99 = lean_unbox(x_98); @@ -39717,30 +39798,30 @@ lean_dec(x_98); if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec_ref(x_84); +lean_dec_ref(x_89); x_100 = lean_ctor_get(x_97, 1); lean_inc(x_100); lean_dec_ref(x_97); x_101 = lean_box(0); -lean_inc(x_88); -lean_inc_ref(x_83); lean_inc(x_93); +lean_inc_ref(x_83); +lean_inc(x_95); +lean_inc_ref(x_88); +lean_inc(x_92); +lean_inc_ref(x_87); +lean_inc(x_84); lean_inc_ref(x_91); -lean_inc(x_87); -lean_inc_ref(x_86); -lean_inc(x_90); -lean_inc_ref(x_92); -x_102 = lean_apply_10(x_94, x_101, x_92, x_90, x_86, x_87, x_91, x_93, x_83, x_88, x_100); +x_102 = lean_apply_10(x_90, x_101, x_91, x_84, x_87, x_92, x_88, x_95, x_83, x_93, x_100); x_65 = x_83; -x_66 = x_86; -x_67 = x_87; -x_68 = x_88; -x_69 = x_89; -x_70 = x_95; -x_71 = x_90; -x_72 = x_91; -x_73 = x_92; -x_74 = x_93; +x_66 = x_84; +x_67 = x_85; +x_68 = x_91; +x_69 = x_92; +x_70 = x_93; +x_71 = x_94; +x_72 = x_87; +x_73 = x_88; +x_74 = x_95; x_75 = x_102; goto block_82; } @@ -39755,36 +39836,36 @@ x_104 = lean_ctor_get(x_97, 1); x_105 = lean_ctor_get(x_97, 0); lean_dec(x_105); x_106 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; -x_107 = l_Lean_Exception_toMessageData(x_84); +x_107 = l_Lean_Exception_toMessageData(x_89); x_108 = l_Lean_indentD(x_107); lean_ctor_set_tag(x_97, 7); lean_ctor_set(x_97, 1, x_108); lean_ctor_set(x_97, 0, x_106); -x_109 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_97, x_91, x_93, x_83, x_88, x_104); +x_109 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_97, x_88, x_95, x_83, x_93, x_104); x_110 = lean_ctor_get(x_109, 0); lean_inc(x_110); x_111 = lean_ctor_get(x_109, 1); lean_inc(x_111); lean_dec_ref(x_109); -lean_inc(x_88); -lean_inc_ref(x_83); lean_inc(x_93); +lean_inc_ref(x_83); +lean_inc(x_95); +lean_inc_ref(x_88); +lean_inc(x_92); +lean_inc_ref(x_87); +lean_inc(x_84); lean_inc_ref(x_91); -lean_inc(x_87); -lean_inc_ref(x_86); -lean_inc(x_90); -lean_inc_ref(x_92); -x_112 = lean_apply_10(x_94, x_110, x_92, x_90, x_86, x_87, x_91, x_93, x_83, x_88, x_111); +x_112 = lean_apply_10(x_90, x_110, x_91, x_84, x_87, x_92, x_88, x_95, x_83, x_93, x_111); x_65 = x_83; -x_66 = x_86; -x_67 = x_87; -x_68 = x_88; -x_69 = x_89; -x_70 = x_95; -x_71 = x_90; -x_72 = x_91; -x_73 = x_92; -x_74 = x_93; +x_66 = x_84; +x_67 = x_85; +x_68 = x_91; +x_69 = x_92; +x_70 = x_93; +x_71 = x_94; +x_72 = x_87; +x_73 = x_88; +x_74 = x_95; x_75 = x_112; goto block_82; } @@ -39795,36 +39876,36 @@ x_113 = lean_ctor_get(x_97, 1); lean_inc(x_113); lean_dec(x_97); x_114 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; -x_115 = l_Lean_Exception_toMessageData(x_84); +x_115 = l_Lean_Exception_toMessageData(x_89); x_116 = l_Lean_indentD(x_115); x_117 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_117, 0, x_114); lean_ctor_set(x_117, 1, x_116); -x_118 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_117, x_91, x_93, x_83, x_88, x_113); +x_118 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_117, x_88, x_95, x_83, x_93, x_113); 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); -lean_inc(x_88); -lean_inc_ref(x_83); lean_inc(x_93); +lean_inc_ref(x_83); +lean_inc(x_95); +lean_inc_ref(x_88); +lean_inc(x_92); +lean_inc_ref(x_87); +lean_inc(x_84); lean_inc_ref(x_91); -lean_inc(x_87); -lean_inc_ref(x_86); -lean_inc(x_90); -lean_inc_ref(x_92); -x_121 = lean_apply_10(x_94, x_119, x_92, x_90, x_86, x_87, x_91, x_93, x_83, x_88, x_120); +x_121 = lean_apply_10(x_90, x_119, x_91, x_84, x_87, x_92, x_88, x_95, x_83, x_93, x_120); x_65 = x_83; -x_66 = x_86; -x_67 = x_87; -x_68 = x_88; -x_69 = x_89; -x_70 = x_95; -x_71 = x_90; -x_72 = x_91; -x_73 = x_92; -x_74 = x_93; +x_66 = x_84; +x_67 = x_85; +x_68 = x_91; +x_69 = x_92; +x_70 = x_93; +x_71 = x_94; +x_72 = x_87; +x_73 = x_88; +x_74 = x_95; x_75 = x_121; goto block_82; } @@ -39834,21 +39915,21 @@ else { lean_object* x_122; lean_dec(x_95); -lean_dec_ref(x_94); +lean_dec(x_94); lean_dec(x_93); -lean_dec_ref(x_92); +lean_dec(x_92); lean_dec_ref(x_91); -lean_dec(x_90); -lean_dec_ref(x_89); -lean_dec(x_88); -lean_dec(x_87); -lean_dec_ref(x_86); +lean_dec_ref(x_90); +lean_dec_ref(x_88); +lean_dec_ref(x_87); +lean_dec_ref(x_85); +lean_dec(x_84); lean_dec_ref(x_83); lean_dec(x_15); lean_dec_ref(x_1); x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_84); -lean_ctor_set(x_122, 1, x_85); +lean_ctor_set(x_122, 0, x_89); +lean_ctor_set(x_122, 1, x_86); return x_122; } } @@ -39861,36 +39942,36 @@ if (x_137 == 0) uint8_t x_138; x_138 = l_Lean_Exception_isRuntime(x_135); x_83 = x_124; -x_84 = x_135; -x_85 = x_136; -x_86 = x_127; -x_87 = x_126; -x_88 = x_125; -x_89 = x_130; -x_90 = x_131; -x_91 = x_132; -x_92 = x_133; -x_93 = x_134; -x_94 = x_129; -x_95 = x_128; +x_84 = x_125; +x_85 = x_126; +x_86 = x_136; +x_87 = x_134; +x_88 = x_133; +x_89 = x_135; +x_90 = x_128; +x_91 = x_127; +x_92 = x_129; +x_93 = x_131; +x_94 = x_130; +x_95 = x_132; x_96 = x_138; goto block_123; } else { x_83 = x_124; -x_84 = x_135; -x_85 = x_136; -x_86 = x_127; -x_87 = x_126; -x_88 = x_125; -x_89 = x_130; -x_90 = x_131; -x_91 = x_132; -x_92 = x_133; -x_93 = x_134; -x_94 = x_129; -x_95 = x_128; +x_84 = x_125; +x_85 = x_126; +x_86 = x_136; +x_87 = x_134; +x_88 = x_133; +x_89 = x_135; +x_90 = x_128; +x_91 = x_127; +x_92 = x_129; +x_93 = x_131; +x_94 = x_130; +x_95 = x_132; x_96 = x_137; goto block_123; } @@ -39900,22 +39981,22 @@ block_156: if (lean_obj_tag(x_151) == 0) { lean_object* x_152; lean_object* x_153; -lean_dec_ref(x_144); +lean_dec_ref(x_143); x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); x_153 = lean_ctor_get(x_151, 1); lean_inc(x_153); lean_dec_ref(x_151); x_50 = x_140; -x_51 = x_143; +x_51 = x_141; x_52 = x_142; -x_53 = x_141; -x_54 = x_146; -x_55 = x_145; -x_56 = x_147; -x_57 = x_148; +x_53 = x_144; +x_54 = x_145; +x_55 = x_147; +x_56 = x_146; +x_57 = x_150; x_58 = x_149; -x_59 = x_150; +x_59 = x_148; x_60 = x_152; x_61 = x_153; goto block_64; @@ -39929,16 +40010,16 @@ x_155 = lean_ctor_get(x_151, 1); lean_inc(x_155); lean_dec_ref(x_151); x_124 = x_140; -x_125 = x_143; +x_125 = x_141; x_126 = x_142; -x_127 = x_141; -x_128 = x_146; -x_129 = x_144; -x_130 = x_145; -x_131 = x_147; -x_132 = x_148; +x_127 = x_144; +x_128 = x_143; +x_129 = x_145; +x_130 = x_147; +x_131 = x_146; +x_132 = x_150; x_133 = x_149; -x_134 = x_150; +x_134 = x_148; x_135 = x_154; x_136 = x_155; goto block_139; @@ -40029,15 +40110,15 @@ lean_inc_ref(x_157); lean_inc(x_169); x_185 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1(x_1, x_16, x_177, x_169, x_184, x_157, x_158, x_159, x_160, x_161, x_162, x_163, x_164, x_183); x_140 = x_163; -x_141 = x_159; -x_142 = x_160; -x_143 = x_164; -x_144 = x_179; -x_145 = x_169; -x_146 = x_167; -x_147 = x_158; -x_148 = x_161; -x_149 = x_157; +x_141 = x_158; +x_142 = x_169; +x_143 = x_179; +x_144 = x_157; +x_145 = x_160; +x_146 = x_164; +x_147 = x_167; +x_148 = x_159; +x_149 = x_161; x_150 = x_162; x_151 = x_185; goto block_156; @@ -40074,15 +40155,15 @@ lean_inc_ref(x_157); lean_inc(x_169); x_194 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1(x_1, x_16, x_177, x_169, x_192, x_157, x_158, x_159, x_160, x_161, x_162, x_163, x_164, x_193); x_140 = x_163; -x_141 = x_159; -x_142 = x_160; -x_143 = x_164; -x_144 = x_179; -x_145 = x_169; -x_146 = x_167; -x_147 = x_158; -x_148 = x_161; -x_149 = x_157; +x_141 = x_158; +x_142 = x_169; +x_143 = x_179; +x_144 = x_157; +x_145 = x_160; +x_146 = x_164; +x_147 = x_167; +x_148 = x_159; +x_149 = x_161; x_150 = x_162; x_151 = x_194; goto block_156; @@ -40115,15 +40196,15 @@ lean_inc_ref(x_157); lean_inc(x_169); x_202 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1(x_1, x_16, x_177, x_169, x_200, x_157, x_158, x_159, x_160, x_161, x_162, x_163, x_164, x_201); x_140 = x_163; -x_141 = x_159; -x_142 = x_160; -x_143 = x_164; -x_144 = x_179; -x_145 = x_169; -x_146 = x_167; -x_147 = x_158; -x_148 = x_161; -x_149 = x_157; +x_141 = x_158; +x_142 = x_169; +x_143 = x_179; +x_144 = x_157; +x_145 = x_160; +x_146 = x_164; +x_147 = x_167; +x_148 = x_159; +x_149 = x_161; x_150 = x_162; x_151 = x_202; goto block_156; @@ -40667,11 +40748,778 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, size_t x_6, size_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_object* x_16) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(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, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; uint8_t x_22; +x_22 = lean_usize_dec_lt(x_6, x_5); +if (x_22 == 0) +{ +lean_object* x_23; +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_ref(x_8); +lean_dec_ref(x_2); +lean_dec(x_1); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_7); +lean_ctor_set(x_23, 1, x_15); +return x_23; +} +else +{ +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_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_25 = x_7; +} else { + lean_dec_ref(x_7); + x_25 = lean_box(0); +} +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +x_28 = lean_ctor_get(x_24, 2); +x_29 = lean_nat_dec_lt(x_27, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +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_ref(x_8); +lean_dec_ref(x_2); +if (lean_is_scalar(x_25)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_25; +} +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_24); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_15); +return x_31; +} +else +{ +uint8_t x_32; +lean_inc(x_28); +lean_inc(x_27); +lean_inc_ref(x_26); +x_32 = !lean_is_exclusive(x_24); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_54; +x_33 = lean_ctor_get(x_24, 2); +lean_dec(x_33); +x_34 = lean_ctor_get(x_24, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_24, 0); +lean_dec(x_35); +x_36 = lean_array_fget_borrowed(x_26, x_27); +x_37 = lean_unbox(x_36); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_27, x_38); +lean_dec(x_27); +lean_ctor_set(x_24, 1, x_39); +x_54 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_37); +if (x_54 == 0) +{ +lean_object* x_55; uint8_t x_56; +x_55 = lean_array_uget(x_4, x_6); +x_56 = l_Lean_Expr_isFVar(x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_inc_ref(x_55); +x_57 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_55); +if (lean_obj_tag(x_57) == 0) +{ +if (x_56 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_58 = l_Lean_Expr_getAppFn(x_55); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +x_59 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_58, x_8, x_9, x_15); +lean_dec_ref(x_58); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_unbox(x_60); +lean_dec(x_60); +if (x_61 == 0) +{ +uint8_t x_62; +lean_dec_ref(x_55); +lean_dec(x_25); +x_62 = !lean_is_exclusive(x_59); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_59, 1); +x_64 = lean_ctor_get(x_59, 0); +lean_dec(x_64); +lean_inc(x_1); +lean_ctor_set(x_59, 1, x_24); +lean_ctor_set(x_59, 0, x_1); +x_16 = x_59; +x_17 = x_63; +goto block_21; +} +else +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +lean_dec(x_59); +lean_inc(x_1); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_1); +lean_ctor_set(x_66, 1, x_24); +x_16 = x_66; +x_17 = x_65; +goto block_21; +} +} +else +{ +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_67 = lean_ctor_get(x_59, 1); +lean_inc(x_67); +lean_dec_ref(x_59); +lean_inc_ref(x_2); +x_68 = lean_st_ref_set(x_10, x_2, x_67); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec_ref(x_68); +x_70 = lean_ctor_get(x_8, 1); +x_71 = lean_expr_abstract(x_55, x_70); +lean_dec_ref(x_55); +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_72 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_71, x_9, x_10, x_11, x_12, x_13, x_14, x_69); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec_ref(x_72); +x_74 = lean_st_ref_get(x_10, x_73); +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_76 = lean_ctor_get(x_74, 0); +x_77 = lean_ctor_get(x_74, 1); +x_78 = lean_ctor_get(x_76, 2); +lean_inc_ref(x_78); +lean_dec(x_76); +x_79 = lean_ctor_get(x_2, 2); +x_80 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_78, x_79); +x_81 = lean_nat_dec_eq(x_80, x_3); +lean_dec(x_80); +if (x_81 == 0) +{ +lean_dec(x_25); +lean_inc(x_1); +lean_ctor_set(x_74, 1, x_24); +lean_ctor_set(x_74, 0, x_1); +x_16 = x_74; +x_17 = x_77; +goto block_21; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +lean_free_object(x_74); +lean_dec_ref(x_9); +lean_dec_ref(x_8); +lean_dec(x_1); +x_82 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_83 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_82, x_13, x_77); +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_86; +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +lean_dec_ref(x_83); +x_40 = x_10; +x_41 = x_86; +goto block_51; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_83, 1); +lean_inc(x_87); +lean_dec_ref(x_83); +x_88 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; +x_89 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_82, x_88, x_11, x_12, x_13, x_14, x_87); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +lean_dec_ref(x_89); +x_40 = x_10; +x_41 = x_90; +goto block_51; +} +} +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_91 = lean_ctor_get(x_74, 0); +x_92 = lean_ctor_get(x_74, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_74); +x_93 = lean_ctor_get(x_91, 2); +lean_inc_ref(x_93); +lean_dec(x_91); +x_94 = lean_ctor_get(x_2, 2); +x_95 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_93, x_94); +x_96 = lean_nat_dec_eq(x_95, x_3); +lean_dec(x_95); +if (x_96 == 0) +{ +lean_object* x_97; +lean_dec(x_25); +lean_inc(x_1); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_1); +lean_ctor_set(x_97, 1, x_24); +x_16 = x_97; +x_17 = x_92; +goto block_21; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +lean_dec_ref(x_9); +lean_dec_ref(x_8); +lean_dec(x_1); +x_98 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_99 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_98, x_13, x_92); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_unbox(x_100); +lean_dec(x_100); +if (x_101 == 0) +{ +lean_object* x_102; +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +x_102 = lean_ctor_get(x_99, 1); +lean_inc(x_102); +lean_dec_ref(x_99); +x_40 = x_10; +x_41 = x_102; +goto block_51; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +lean_dec_ref(x_99); +x_104 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; +x_105 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_98, x_104, x_11, x_12, x_13, x_14, x_103); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec_ref(x_105); +x_40 = x_10; +x_41 = x_106; +goto block_51; +} +} +} +} +else +{ +uint8_t x_107; +lean_dec_ref(x_24); +lean_dec(x_25); +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_ref(x_8); +lean_dec_ref(x_2); +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_72); +if (x_107 == 0) +{ +return x_72; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_72, 0); +x_109 = lean_ctor_get(x_72, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_72); +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; +} +} +} +} +else +{ +lean_dec_ref(x_55); +lean_dec(x_25); +goto block_53; +} +} +else +{ +lean_dec_ref(x_57); +lean_dec_ref(x_55); +lean_dec(x_25); +goto block_53; +} +} +else +{ +lean_object* x_111; +lean_dec_ref(x_55); +lean_dec(x_25); +lean_inc(x_1); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_1); +lean_ctor_set(x_111, 1, x_24); +x_16 = x_111; +x_17 = x_15; +goto block_21; +} +} +else +{ +lean_object* x_112; +lean_dec(x_25); +lean_inc(x_1); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_1); +lean_ctor_set(x_112, 1, x_24); +x_16 = x_112; +x_17 = x_15; +goto block_21; +} +block_51: +{ +lean_object* x_42; uint8_t x_43; +x_42 = lean_st_ref_set(x_40, x_2, x_41); +lean_dec(x_40); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +x_45 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; +if (lean_is_scalar(x_25)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_25; +} +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_24); +lean_ctor_set(x_42, 0, x_46); +return x_42; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +lean_dec(x_42); +x_48 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; +if (lean_is_scalar(x_25)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_25; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_24); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +} +block_53: +{ +lean_object* x_52; +lean_inc(x_1); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_1); +lean_ctor_set(x_52, 1, x_24); +x_16 = x_52; +x_17 = x_15; +goto block_21; +} +} +else +{ +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; uint8_t x_129; +lean_dec(x_24); +x_113 = lean_array_fget_borrowed(x_26, x_27); +x_114 = lean_unbox(x_113); +x_115 = lean_unsigned_to_nat(1u); +x_116 = lean_nat_add(x_27, x_115); +lean_dec(x_27); +x_117 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_117, 0, x_26); +lean_ctor_set(x_117, 1, x_116); +lean_ctor_set(x_117, 2, x_28); +x_129 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_114); +if (x_129 == 0) +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_array_uget(x_4, x_6); +x_131 = l_Lean_Expr_isFVar(x_130); +if (x_131 == 0) +{ +lean_object* x_132; +lean_inc_ref(x_130); +x_132 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_130); +if (lean_obj_tag(x_132) == 0) +{ +if (x_131 == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_133 = l_Lean_Expr_getAppFn(x_130); +lean_inc_ref(x_9); +lean_inc_ref(x_8); +x_134 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_133, x_8, x_9, x_15); +lean_dec_ref(x_133); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_unbox(x_135); +lean_dec(x_135); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec_ref(x_130); +lean_dec(x_25); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_138 = x_134; +} else { + lean_dec_ref(x_134); + x_138 = lean_box(0); +} +lean_inc(x_1); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_138; +} +lean_ctor_set(x_139, 0, x_1); +lean_ctor_set(x_139, 1, x_117); +x_16 = x_139; +x_17 = x_137; +goto block_21; +} +else +{ +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_140 = lean_ctor_get(x_134, 1); +lean_inc(x_140); +lean_dec_ref(x_134); +lean_inc_ref(x_2); +x_141 = lean_st_ref_set(x_10, x_2, x_140); +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec_ref(x_141); +x_143 = lean_ctor_get(x_8, 1); +x_144 = lean_expr_abstract(x_130, x_143); +lean_dec_ref(x_130); +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_145 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_144, x_9, x_10, x_11, x_12, x_13, x_14, x_142); +if (lean_obj_tag(x_145) == 0) +{ +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; uint8_t x_154; +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +lean_dec_ref(x_145); +x_147 = lean_st_ref_get(x_10, 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); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_150 = x_147; +} else { + lean_dec_ref(x_147); + x_150 = lean_box(0); +} +x_151 = lean_ctor_get(x_148, 2); +lean_inc_ref(x_151); +lean_dec(x_148); +x_152 = lean_ctor_get(x_2, 2); +x_153 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_151, x_152); +x_154 = lean_nat_dec_eq(x_153, x_3); +lean_dec(x_153); +if (x_154 == 0) +{ +lean_object* x_155; +lean_dec(x_25); +lean_inc(x_1); +if (lean_is_scalar(x_150)) { + x_155 = lean_alloc_ctor(0, 2, 0); +} else { + x_155 = x_150; +} +lean_ctor_set(x_155, 0, x_1); +lean_ctor_set(x_155, 1, x_117); +x_16 = x_155; +x_17 = x_149; +goto block_21; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +lean_dec(x_150); +lean_dec_ref(x_9); +lean_dec_ref(x_8); +lean_dec(x_1); +x_156 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_157 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_156, x_13, x_149); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_unbox(x_158); +lean_dec(x_158); +if (x_159 == 0) +{ +lean_object* x_160; +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +x_160 = lean_ctor_get(x_157, 1); +lean_inc(x_160); +lean_dec_ref(x_157); +x_118 = x_10; +x_119 = x_160; +goto block_126; +} +else +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_161 = lean_ctor_get(x_157, 1); +lean_inc(x_161); +lean_dec_ref(x_157); +x_162 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; +x_163 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_156, x_162, x_11, x_12, x_13, x_14, x_161); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +lean_dec_ref(x_163); +x_118 = x_10; +x_119 = x_164; +goto block_126; +} +} +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec_ref(x_117); +lean_dec(x_25); +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_ref(x_8); +lean_dec_ref(x_2); +lean_dec(x_1); +x_165 = lean_ctor_get(x_145, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_145, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_167 = x_145; +} else { + lean_dec_ref(x_145); + 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_dec_ref(x_130); +lean_dec(x_25); +goto block_128; +} +} +else +{ +lean_dec_ref(x_132); +lean_dec_ref(x_130); +lean_dec(x_25); +goto block_128; +} +} +else +{ +lean_object* x_169; +lean_dec_ref(x_130); +lean_dec(x_25); +lean_inc(x_1); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_1); +lean_ctor_set(x_169, 1, x_117); +x_16 = x_169; +x_17 = x_15; +goto block_21; +} +} +else +{ +lean_object* x_170; +lean_dec(x_25); +lean_inc(x_1); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_1); +lean_ctor_set(x_170, 1, x_117); +x_16 = x_170; +x_17 = x_15; +goto block_21; +} +block_126: +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_120 = lean_st_ref_set(x_118, x_2, x_119); +lean_dec(x_118); +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_122 = x_120; +} else { + lean_dec_ref(x_120); + x_122 = lean_box(0); +} +x_123 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; +if (lean_is_scalar(x_25)) { + x_124 = lean_alloc_ctor(0, 2, 0); +} else { + x_124 = x_25; +} +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_117); +if (lean_is_scalar(x_122)) { + x_125 = lean_alloc_ctor(0, 2, 0); +} else { + x_125 = x_122; +} +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_121); +return x_125; +} +block_128: +{ +lean_object* x_127; +lean_inc(x_1); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_1); +lean_ctor_set(x_127, 1, x_117); +x_16 = x_127; +x_17 = x_15; +goto block_21; +} +} +} +} +block_21: +{ +size_t x_18; size_t x_19; +x_18 = 1; +x_19 = lean_usize_add(x_6, x_18); +x_6 = x_19; +x_7 = x_16; +x_15 = x_17; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0(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, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_17; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(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, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; lean_object* x_18; uint8_t x_23; -x_23 = lean_usize_dec_lt(x_7, x_6); +x_23 = lean_usize_dec_lt(x_6, x_5); if (x_23 == 0) { lean_object* x_24; @@ -40681,25 +41529,25 @@ 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_8); lean_dec_ref(x_2); lean_dec(x_1); x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_8); +lean_ctor_set(x_24, 0, x_7); lean_ctor_set(x_24, 1, x_16); return x_24; } else { 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_8, 1); +x_25 = lean_ctor_get(x_7, 1); lean_inc(x_25); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - x_26 = x_8; +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_26 = x_7; } else { - lean_dec_ref(x_8); + lean_dec_ref(x_7); x_26 = lean_box(0); } x_27 = lean_ctor_get(x_25, 0); @@ -40715,7 +41563,7 @@ 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_8); lean_dec_ref(x_2); if (lean_is_scalar(x_26)) { x_31 = lean_alloc_ctor(0, 2, 0); @@ -40738,7 +41586,7 @@ lean_inc_ref(x_27); x_33 = !lean_is_exclusive(x_25); if (x_33 == 0) { -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; lean_object* x_41; lean_object* x_42; uint8_t x_53; +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; lean_object* x_41; lean_object* x_42; uint8_t x_55; x_34 = lean_ctor_get(x_25, 2); lean_dec(x_34); x_35 = lean_ctor_get(x_25, 1); @@ -40751,259 +41599,234 @@ x_39 = lean_unsigned_to_nat(1u); x_40 = lean_nat_add(x_28, x_39); lean_dec(x_28); lean_ctor_set(x_25, 1, x_40); -x_53 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_38); -if (x_53 == 0) -{ -lean_object* x_54; uint8_t x_55; uint8_t x_111; -x_54 = lean_array_uget(x_5, x_7); -x_111 = l_Lean_Expr_isFVar(x_54); -if (x_111 == 0) -{ -lean_object* x_112; -lean_inc_ref(x_54); -x_112 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_54); -if (lean_obj_tag(x_112) == 0) -{ -x_55 = x_111; -goto block_110; -} -else -{ -lean_dec_ref(x_112); -x_55 = x_4; -goto block_110; -} -} -else -{ -lean_object* x_113; -lean_dec_ref(x_54); -lean_dec(x_26); -lean_inc(x_1); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_1); -lean_ctor_set(x_113, 1, x_25); -x_17 = x_113; -x_18 = x_16; -goto block_22; -} -block_110: -{ +x_55 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_38); if (x_55 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_56 = l_Lean_Expr_getAppFn(x_54); +lean_object* x_56; uint8_t x_57; +x_56 = lean_array_uget(x_4, x_6); +x_57 = l_Lean_Expr_isFVar(x_56); +if (x_57 == 0) +{ +lean_object* x_58; +lean_inc_ref(x_56); +x_58 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_56); +if (lean_obj_tag(x_58) == 0) +{ +if (x_57 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = l_Lean_Expr_getAppFn(x_56); lean_inc_ref(x_10); -lean_inc_ref(x_9); -x_57 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_56, x_9, x_10, x_16); +lean_inc_ref(x_8); +x_60 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_59, x_8, x_10, x_16); +lean_dec_ref(x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_unbox(x_61); +lean_dec(x_61); +if (x_62 == 0) +{ +uint8_t x_63; lean_dec_ref(x_56); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); -lean_dec(x_58); -if (x_59 == 0) -{ -uint8_t x_60; -lean_dec_ref(x_54); lean_dec(x_26); -x_60 = !lean_is_exclusive(x_57); -if (x_60 == 0) +x_63 = !lean_is_exclusive(x_60); +if (x_63 == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_57, 1); -x_62 = lean_ctor_get(x_57, 0); -lean_dec(x_62); +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_60, 1); +x_65 = lean_ctor_get(x_60, 0); +lean_dec(x_65); lean_inc(x_1); -lean_ctor_set(x_57, 1, x_25); -lean_ctor_set(x_57, 0, x_1); -x_17 = x_57; -x_18 = x_61; +lean_ctor_set(x_60, 1, x_25); +lean_ctor_set(x_60, 0, x_1); +x_17 = x_60; +x_18 = x_64; goto block_22; } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_57, 1); -lean_inc(x_63); -lean_dec(x_57); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_dec(x_60); lean_inc(x_1); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_1); -lean_ctor_set(x_64, 1, x_25); -x_17 = x_64; -x_18 = x_63; +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_1); +lean_ctor_set(x_67, 1, x_25); +x_17 = x_67; +x_18 = x_66; goto block_22; } } 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; -x_65 = lean_ctor_get(x_57, 1); -lean_inc(x_65); -lean_dec_ref(x_57); +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_68 = lean_ctor_get(x_60, 1); +lean_inc(x_68); +lean_dec_ref(x_60); lean_inc_ref(x_2); -x_66 = lean_st_ref_set(x_11, x_2, x_65); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec_ref(x_66); -x_68 = lean_ctor_get(x_9, 1); -x_69 = lean_expr_abstract(x_54, x_68); -lean_dec_ref(x_54); +x_69 = lean_st_ref_set(x_11, x_2, x_68); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec_ref(x_69); +x_71 = lean_ctor_get(x_8, 1); +x_72 = lean_expr_abstract(x_56, x_71); +lean_dec_ref(x_56); 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_70 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_69, x_10, x_11, x_12, x_13, x_14, x_15, x_67); -if (lean_obj_tag(x_70) == 0) +x_73 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_72, x_10, x_11, x_12, x_13, x_14, x_15, x_70); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec_ref(x_70); -x_72 = lean_st_ref_get(x_11, x_71); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) +lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec_ref(x_73); +x_75 = lean_st_ref_get(x_11, x_74); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_74 = lean_ctor_get(x_72, 0); -x_75 = lean_ctor_get(x_72, 1); -x_76 = lean_ctor_get(x_74, 2); -lean_inc_ref(x_76); -lean_dec(x_74); -x_77 = lean_ctor_get(x_2, 2); -x_78 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_76, x_77); -x_79 = lean_nat_dec_eq(x_78, x_3); -lean_dec(x_78); -if (x_79 == 0) +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_77 = lean_ctor_get(x_75, 0); +x_78 = lean_ctor_get(x_75, 1); +x_79 = lean_ctor_get(x_77, 2); +lean_inc_ref(x_79); +lean_dec(x_77); +x_80 = lean_ctor_get(x_2, 2); +x_81 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_79, x_80); +x_82 = lean_nat_dec_eq(x_81, x_3); +lean_dec(x_81); +if (x_82 == 0) { lean_dec(x_26); lean_inc(x_1); -lean_ctor_set(x_72, 1, x_25); -lean_ctor_set(x_72, 0, x_1); -x_17 = x_72; -x_18 = x_75; +lean_ctor_set(x_75, 1, x_25); +lean_ctor_set(x_75, 0, x_1); +x_17 = x_75; +x_18 = x_78; goto block_22; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -lean_free_object(x_72); +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +lean_free_object(x_75); lean_dec_ref(x_10); -lean_dec_ref(x_9); +lean_dec_ref(x_8); lean_dec(x_1); -x_80 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_81 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_80, x_14, x_75); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_unbox(x_82); -lean_dec(x_82); -if (x_83 == 0) -{ -lean_object* x_84; -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -x_84 = lean_ctor_get(x_81, 1); -lean_inc(x_84); -lean_dec_ref(x_81); -x_41 = x_11; -x_42 = x_84; -goto block_52; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_81, 1); +x_83 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_84 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_83, x_14, x_78); +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -lean_dec_ref(x_81); -x_86 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; -x_87 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_80, x_86, x_12, x_13, x_14, x_15, x_85); +x_86 = lean_unbox(x_85); +lean_dec(x_85); +if (x_86 == 0) +{ +lean_object* x_87; lean_dec(x_15); lean_dec_ref(x_14); lean_dec(x_13); lean_dec_ref(x_12); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec_ref(x_87); +x_87 = lean_ctor_get(x_84, 1); +lean_inc(x_87); +lean_dec_ref(x_84); x_41 = x_11; -x_42 = x_88; +x_42 = x_87; +goto block_52; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_88 = lean_ctor_get(x_84, 1); +lean_inc(x_88); +lean_dec_ref(x_84); +x_89 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; +x_90 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_83, 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); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec_ref(x_90); +x_41 = x_11; +x_42 = x_91; goto block_52; } } } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_89 = lean_ctor_get(x_72, 0); -x_90 = lean_ctor_get(x_72, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_72); -x_91 = lean_ctor_get(x_89, 2); -lean_inc_ref(x_91); -lean_dec(x_89); -x_92 = lean_ctor_get(x_2, 2); -x_93 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_91, x_92); -x_94 = lean_nat_dec_eq(x_93, x_3); -lean_dec(x_93); -if (x_94 == 0) +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_92 = lean_ctor_get(x_75, 0); +x_93 = lean_ctor_get(x_75, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_75); +x_94 = lean_ctor_get(x_92, 2); +lean_inc_ref(x_94); +lean_dec(x_92); +x_95 = lean_ctor_get(x_2, 2); +x_96 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_94, x_95); +x_97 = lean_nat_dec_eq(x_96, x_3); +lean_dec(x_96); +if (x_97 == 0) { -lean_object* x_95; +lean_object* x_98; lean_dec(x_26); lean_inc(x_1); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_1); -lean_ctor_set(x_95, 1, x_25); -x_17 = x_95; -x_18 = x_90; +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_1); +lean_ctor_set(x_98, 1, x_25); +x_17 = x_98; +x_18 = x_93; goto block_22; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_dec_ref(x_10); -lean_dec_ref(x_9); +lean_dec_ref(x_8); lean_dec(x_1); -x_96 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_97 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_96, x_14, x_90); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_unbox(x_98); -lean_dec(x_98); -if (x_99 == 0) -{ -lean_object* x_100; -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -x_100 = lean_ctor_get(x_97, 1); -lean_inc(x_100); -lean_dec_ref(x_97); -x_41 = x_11; -x_42 = x_100; -goto block_52; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_101 = lean_ctor_get(x_97, 1); +x_99 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_100 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_99, x_14, x_93); +x_101 = lean_ctor_get(x_100, 0); lean_inc(x_101); -lean_dec_ref(x_97); -x_102 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; -x_103 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_96, x_102, x_12, x_13, x_14, x_15, x_101); +x_102 = lean_unbox(x_101); +lean_dec(x_101); +if (x_102 == 0) +{ +lean_object* x_103; lean_dec(x_15); lean_dec_ref(x_14); lean_dec(x_13); lean_dec_ref(x_12); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec_ref(x_103); +x_103 = lean_ctor_get(x_100, 1); +lean_inc(x_103); +lean_dec_ref(x_100); x_41 = x_11; -x_42 = x_104; +x_42 = x_103; +goto block_52; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_104 = lean_ctor_get(x_100, 1); +lean_inc(x_104); +lean_dec_ref(x_100); +x_105 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; +x_106 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_99, x_105, x_12, x_13, x_14, x_15, x_104); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +lean_dec_ref(x_106); +x_41 = x_11; +x_42 = x_107; goto block_52; } } @@ -41011,7 +41834,7 @@ goto block_52; } else { -uint8_t x_105; +uint8_t x_108; lean_dec_ref(x_25); lean_dec(x_26); lean_dec(x_15); @@ -41020,54 +41843,68 @@ 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_8); lean_dec_ref(x_2); lean_dec(x_1); -x_105 = !lean_is_exclusive(x_70); -if (x_105 == 0) +x_108 = !lean_is_exclusive(x_73); +if (x_108 == 0) { -return x_70; +return x_73; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_70, 0); -x_107 = lean_ctor_get(x_70, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_70); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_73, 0); +x_110 = lean_ctor_get(x_73, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_73); +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_109; -lean_dec_ref(x_54); +lean_dec_ref(x_56); +lean_dec(x_26); +goto block_54; +} +} +else +{ +lean_dec_ref(x_58); +lean_dec_ref(x_56); +lean_dec(x_26); +goto block_54; +} +} +else +{ +lean_object* x_112; +lean_dec_ref(x_56); lean_dec(x_26); lean_inc(x_1); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_1); -lean_ctor_set(x_109, 1, x_25); -x_17 = x_109; +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_1); +lean_ctor_set(x_112, 1, x_25); +x_17 = x_112; x_18 = x_16; goto block_22; } } -} else { -lean_object* x_114; +lean_object* x_113; lean_dec(x_26); lean_inc(x_1); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_1); -lean_ctor_set(x_114, 1, x_25); -x_17 = x_114; +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_1); +lean_ctor_set(x_113, 1, x_25); +x_17 = x_113; x_18 = x_16; goto block_22; } @@ -41113,212 +41950,198 @@ lean_ctor_set(x_51, 1, x_48); return x_51; } } -} -else +block_54: { -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; uint8_t x_129; -lean_dec(x_25); -x_115 = lean_array_fget_borrowed(x_27, x_28); -x_116 = lean_unbox(x_115); -x_117 = lean_unsigned_to_nat(1u); -x_118 = lean_nat_add(x_28, x_117); -lean_dec(x_28); -x_119 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_119, 0, x_27); -lean_ctor_set(x_119, 1, x_118); -lean_ctor_set(x_119, 2, x_29); -x_129 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_116); -if (x_129 == 0) -{ -lean_object* x_130; uint8_t x_131; uint8_t x_170; -x_130 = lean_array_uget(x_5, x_7); -x_170 = l_Lean_Expr_isFVar(x_130); -if (x_170 == 0) -{ -lean_object* x_171; -lean_inc_ref(x_130); -x_171 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_130); -if (lean_obj_tag(x_171) == 0) -{ -x_131 = x_170; -goto block_169; -} -else -{ -lean_dec_ref(x_171); -x_131 = x_4; -goto block_169; -} -} -else -{ -lean_object* x_172; -lean_dec_ref(x_130); -lean_dec(x_26); +lean_object* x_53; lean_inc(x_1); -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_1); -lean_ctor_set(x_172, 1, x_119); -x_17 = x_172; +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_1); +lean_ctor_set(x_53, 1, x_25); +x_17 = x_53; x_18 = x_16; goto block_22; } -block_169: +} +else { -if (x_131 == 0) +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_130; +lean_dec(x_25); +x_114 = lean_array_fget_borrowed(x_27, x_28); +x_115 = lean_unbox(x_114); +x_116 = lean_unsigned_to_nat(1u); +x_117 = lean_nat_add(x_28, x_116); +lean_dec(x_28); +x_118 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_118, 0, x_27); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set(x_118, 2, x_29); +x_130 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_115); +if (x_130 == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_132 = l_Lean_Expr_getAppFn(x_130); +lean_object* x_131; uint8_t x_132; +x_131 = lean_array_uget(x_4, x_6); +x_132 = l_Lean_Expr_isFVar(x_131); +if (x_132 == 0) +{ +lean_object* x_133; +lean_inc_ref(x_131); +x_133 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_131); +if (lean_obj_tag(x_133) == 0) +{ +if (x_132 == 0) +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_134 = l_Lean_Expr_getAppFn(x_131); lean_inc_ref(x_10); -lean_inc_ref(x_9); -x_133 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_132, x_9, x_10, x_16); -lean_dec_ref(x_132); -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_unbox(x_134); -lean_dec(x_134); -if (x_135 == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec_ref(x_130); -lean_dec(x_26); -x_136 = lean_ctor_get(x_133, 1); +lean_inc_ref(x_8); +x_135 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_134, x_8, x_10, x_16); +lean_dec_ref(x_134); +x_136 = lean_ctor_get(x_135, 0); lean_inc(x_136); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_137 = x_133; +x_137 = lean_unbox(x_136); +lean_dec(x_136); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec_ref(x_131); +lean_dec(x_26); +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_133); - x_137 = lean_box(0); + lean_dec_ref(x_135); + x_139 = lean_box(0); } lean_inc(x_1); -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(0, 2, 0); } else { - x_138 = x_137; + x_140 = x_139; } -lean_ctor_set(x_138, 0, x_1); -lean_ctor_set(x_138, 1, x_119); -x_17 = x_138; -x_18 = x_136; +lean_ctor_set(x_140, 0, x_1); +lean_ctor_set(x_140, 1, x_118); +x_17 = x_140; +x_18 = x_138; goto block_22; } else { -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_139 = lean_ctor_get(x_133, 1); -lean_inc(x_139); -lean_dec_ref(x_133); -lean_inc_ref(x_2); -x_140 = lean_st_ref_set(x_11, x_2, x_139); -x_141 = lean_ctor_get(x_140, 1); +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_141 = lean_ctor_get(x_135, 1); lean_inc(x_141); -lean_dec_ref(x_140); -x_142 = lean_ctor_get(x_9, 1); -x_143 = lean_expr_abstract(x_130, x_142); -lean_dec_ref(x_130); +lean_dec_ref(x_135); +lean_inc_ref(x_2); +x_142 = lean_st_ref_set(x_11, x_2, x_141); +x_143 = lean_ctor_get(x_142, 1); +lean_inc(x_143); +lean_dec_ref(x_142); +x_144 = lean_ctor_get(x_8, 1); +x_145 = lean_expr_abstract(x_131, x_144); +lean_dec_ref(x_131); 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_144 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_143, x_10, x_11, x_12, x_13, x_14, x_15, x_141); -if (lean_obj_tag(x_144) == 0) +x_146 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_145, x_10, x_11, x_12, x_13, x_14, x_15, x_143); +if (lean_obj_tag(x_146) == 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; uint8_t x_153; -x_145 = lean_ctor_get(x_144, 1); -lean_inc(x_145); -lean_dec_ref(x_144); -x_146 = lean_st_ref_get(x_11, x_145); -x_147 = lean_ctor_get(x_146, 0); +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; uint8_t x_155; +x_147 = lean_ctor_get(x_146, 1); 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; +lean_dec_ref(x_146); +x_148 = lean_st_ref_get(x_11, x_147); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_151 = x_148; } else { - lean_dec_ref(x_146); - x_149 = lean_box(0); + lean_dec_ref(x_148); + x_151 = lean_box(0); } -x_150 = lean_ctor_get(x_147, 2); -lean_inc_ref(x_150); -lean_dec(x_147); -x_151 = lean_ctor_get(x_2, 2); -x_152 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_150, x_151); -x_153 = lean_nat_dec_eq(x_152, x_3); -lean_dec(x_152); -if (x_153 == 0) +x_152 = lean_ctor_get(x_149, 2); +lean_inc_ref(x_152); +lean_dec(x_149); +x_153 = lean_ctor_get(x_2, 2); +x_154 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_152, x_153); +x_155 = lean_nat_dec_eq(x_154, x_3); +lean_dec(x_154); +if (x_155 == 0) { -lean_object* x_154; +lean_object* x_156; lean_dec(x_26); lean_inc(x_1); -if (lean_is_scalar(x_149)) { - x_154 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_151)) { + x_156 = lean_alloc_ctor(0, 2, 0); } else { - x_154 = x_149; + x_156 = x_151; } -lean_ctor_set(x_154, 0, x_1); -lean_ctor_set(x_154, 1, x_119); -x_17 = x_154; -x_18 = x_148; +lean_ctor_set(x_156, 0, x_1); +lean_ctor_set(x_156, 1, x_118); +x_17 = x_156; +x_18 = x_150; goto block_22; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; -lean_dec(x_149); +lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; +lean_dec(x_151); lean_dec_ref(x_10); -lean_dec_ref(x_9); +lean_dec_ref(x_8); lean_dec(x_1); -x_155 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_156 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_155, x_14, x_148); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_unbox(x_157); -lean_dec(x_157); -if (x_158 == 0) -{ -lean_object* x_159; -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -x_159 = lean_ctor_get(x_156, 1); +x_157 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_158 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_157, x_14, x_150); +x_159 = lean_ctor_get(x_158, 0); lean_inc(x_159); -lean_dec_ref(x_156); -x_120 = x_11; -x_121 = x_159; -goto block_128; -} -else +x_160 = lean_unbox(x_159); +lean_dec(x_159); +if (x_160 == 0) { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_160 = lean_ctor_get(x_156, 1); -lean_inc(x_160); -lean_dec_ref(x_156); -x_161 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; -x_162 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_155, x_161, x_12, x_13, x_14, x_15, x_160); +lean_object* x_161; lean_dec(x_15); lean_dec_ref(x_14); lean_dec(x_13); lean_dec_ref(x_12); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -lean_dec_ref(x_162); -x_120 = x_11; -x_121 = x_163; -goto block_128; +x_161 = lean_ctor_get(x_158, 1); +lean_inc(x_161); +lean_dec_ref(x_158); +x_119 = x_11; +x_120 = x_161; +goto block_127; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_158, 1); +lean_inc(x_162); +lean_dec_ref(x_158); +x_163 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; +x_164 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_157, x_163, x_12, x_13, x_14, x_15, x_162); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec_ref(x_12); +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +lean_dec_ref(x_164); +x_119 = x_11; +x_120 = x_165; +goto block_127; } } } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec_ref(x_119); +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec_ref(x_118); lean_dec(x_26); lean_dec(x_15); lean_dec_ref(x_14); @@ -41326,868 +42149,126 @@ 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_8); lean_dec_ref(x_2); lean_dec(x_1); -x_164 = lean_ctor_get(x_144, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_144, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_166 = x_144; +x_166 = lean_ctor_get(x_146, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_146, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_168 = x_146; } else { - lean_dec_ref(x_144); - x_166 = lean_box(0); + lean_dec_ref(x_146); + x_168 = lean_box(0); } -if (lean_is_scalar(x_166)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_166; + x_169 = x_168; } -lean_ctor_set(x_167, 0, x_164); -lean_ctor_set(x_167, 1, x_165); -return x_167; +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; } } } else { -lean_object* x_168; -lean_dec_ref(x_130); +lean_dec_ref(x_131); lean_dec(x_26); -lean_inc(x_1); -x_168 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_168, 0, x_1); -lean_ctor_set(x_168, 1, x_119); -x_17 = x_168; -x_18 = x_16; -goto block_22; -} +goto block_129; } } else { -lean_object* x_173; +lean_dec_ref(x_133); +lean_dec_ref(x_131); +lean_dec(x_26); +goto block_129; +} +} +else +{ +lean_object* x_170; +lean_dec_ref(x_131); lean_dec(x_26); lean_inc(x_1); -x_173 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_173, 0, x_1); -lean_ctor_set(x_173, 1, x_119); -x_17 = x_173; +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_1); +lean_ctor_set(x_170, 1, x_118); +x_17 = x_170; x_18 = x_16; goto block_22; } -block_128: -{ -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_122 = lean_st_ref_set(x_120, x_2, x_121); -lean_dec(x_120); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_124 = x_122; -} else { - lean_dec_ref(x_122); - x_124 = lean_box(0); } -x_125 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; +else +{ +lean_object* x_171; +lean_dec(x_26); +lean_inc(x_1); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_1); +lean_ctor_set(x_171, 1, x_118); +x_17 = x_171; +x_18 = x_16; +goto block_22; +} +block_127: +{ +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_121 = lean_st_ref_set(x_119, x_2, x_120); +lean_dec(x_119); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); +} +x_124 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; if (lean_is_scalar(x_26)) { + x_125 = lean_alloc_ctor(0, 2, 0); +} else { + x_125 = x_26; +} +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_118); +if (lean_is_scalar(x_123)) { x_126 = lean_alloc_ctor(0, 2, 0); } else { - x_126 = x_26; + x_126 = x_123; } lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_119); -if (lean_is_scalar(x_124)) { - x_127 = lean_alloc_ctor(0, 2, 0); -} else { - x_127 = x_124; +lean_ctor_set(x_126, 1, x_122); +return x_126; } -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_123); -return x_127; +block_129: +{ +lean_object* x_128; +lean_inc(x_1); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_1); +lean_ctor_set(x_128, 1, x_118); +x_17 = x_128; +x_18 = x_16; +goto block_22; } } } } block_22: { -size_t x_19; size_t x_20; +size_t x_19; size_t x_20; lean_object* x_21; x_19 = 1; -x_20 = lean_usize_add(x_7, x_19); -x_7 = x_20; -x_8 = x_17; -x_16 = x_18; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, size_t x_6, size_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_object* x_16, lean_object* x_17) { -_start: -{ -lean_object* x_18; -x_18 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -return x_18; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, size_t x_6, size_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_object* x_16, lean_object* x_17) { -_start: -{ -lean_object* x_18; lean_object* x_19; uint8_t x_24; -x_24 = lean_usize_dec_lt(x_7, x_6); -if (x_24 == 0) -{ -lean_object* x_25; -lean_dec(x_16); -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_9); -lean_dec_ref(x_2); -lean_dec(x_1); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_8); -lean_ctor_set(x_25, 1, x_17); -return x_25; -} -else -{ -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_26 = lean_ctor_get(x_8, 1); -lean_inc(x_26); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - x_27 = x_8; -} else { - lean_dec_ref(x_8); - x_27 = lean_box(0); -} -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -x_30 = lean_ctor_get(x_26, 2); -x_31 = lean_nat_dec_lt(x_29, x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_16); -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_9); -lean_dec_ref(x_2); -if (lean_is_scalar(x_27)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_27; -} -lean_ctor_set(x_32, 0, x_1); -lean_ctor_set(x_32, 1, x_26); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_17); -return x_33; -} -else -{ -uint8_t x_34; -lean_inc(x_30); -lean_inc(x_29); -lean_inc_ref(x_28); -x_34 = !lean_is_exclusive(x_26); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_54; -x_35 = lean_ctor_get(x_26, 2); -lean_dec(x_35); -x_36 = lean_ctor_get(x_26, 1); -lean_dec(x_36); -x_37 = lean_ctor_get(x_26, 0); -lean_dec(x_37); -x_38 = lean_array_fget_borrowed(x_28, x_29); -x_39 = lean_unbox(x_38); -x_40 = lean_unsigned_to_nat(1u); -x_41 = lean_nat_add(x_29, x_40); -lean_dec(x_29); -lean_ctor_set(x_26, 1, x_41); -x_54 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_39); -if (x_54 == 0) -{ -lean_object* x_55; uint8_t x_56; uint8_t x_112; -x_55 = lean_array_uget(x_5, x_7); -x_112 = l_Lean_Expr_isFVar(x_55); -if (x_112 == 0) -{ -lean_object* x_113; -lean_inc_ref(x_55); -x_113 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_55); -if (lean_obj_tag(x_113) == 0) -{ -x_56 = x_112; -goto block_111; -} -else -{ -lean_dec_ref(x_113); -x_56 = x_4; -goto block_111; -} -} -else -{ -lean_object* x_114; -lean_dec_ref(x_55); -lean_dec(x_27); -lean_inc(x_1); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_1); -lean_ctor_set(x_114, 1, x_26); -x_18 = x_114; -x_19 = x_17; -goto block_23; -} -block_111: -{ -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_57 = l_Lean_Expr_getAppFn(x_55); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_58 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_57, x_9, x_11, x_17); -lean_dec_ref(x_57); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_unbox(x_59); -lean_dec(x_59); -if (x_60 == 0) -{ -uint8_t x_61; -lean_dec_ref(x_55); -lean_dec(x_27); -x_61 = !lean_is_exclusive(x_58); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_58, 1); -x_63 = lean_ctor_get(x_58, 0); -lean_dec(x_63); -lean_inc(x_1); -lean_ctor_set(x_58, 1, x_26); -lean_ctor_set(x_58, 0, x_1); -x_18 = x_58; -x_19 = x_62; -goto block_23; -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_58, 1); -lean_inc(x_64); -lean_dec(x_58); -lean_inc(x_1); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_1); -lean_ctor_set(x_65, 1, x_26); -x_18 = x_65; -x_19 = x_64; -goto block_23; -} -} -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; -x_66 = lean_ctor_get(x_58, 1); -lean_inc(x_66); -lean_dec_ref(x_58); -lean_inc_ref(x_2); -x_67 = lean_st_ref_set(x_12, x_2, x_66); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec_ref(x_67); -x_69 = lean_ctor_get(x_9, 1); -x_70 = lean_expr_abstract(x_55, x_69); -lean_dec_ref(x_55); -lean_inc(x_16); -lean_inc_ref(x_15); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_71 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_70, x_11, x_12, x_13, x_14, x_15, x_16, x_68); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec_ref(x_71); -x_73 = lean_st_ref_get(x_12, x_72); -x_74 = !lean_is_exclusive(x_73); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_75 = lean_ctor_get(x_73, 0); -x_76 = lean_ctor_get(x_73, 1); -x_77 = lean_ctor_get(x_75, 2); -lean_inc_ref(x_77); -lean_dec(x_75); -x_78 = lean_ctor_get(x_2, 2); -x_79 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_77, x_78); -x_80 = lean_nat_dec_eq(x_79, x_3); -lean_dec(x_79); -if (x_80 == 0) -{ -lean_dec(x_27); -lean_inc(x_1); -lean_ctor_set(x_73, 1, x_26); -lean_ctor_set(x_73, 0, x_1); -x_18 = x_73; -x_19 = x_76; -goto block_23; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -lean_free_object(x_73); -lean_dec_ref(x_11); -lean_dec_ref(x_9); -lean_dec(x_1); -x_81 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_82 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_81, x_15, x_76); -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_85; -lean_dec(x_16); -lean_dec_ref(x_15); -lean_dec(x_14); -lean_dec_ref(x_13); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec_ref(x_82); -x_42 = x_12; -x_43 = x_85; -goto block_53; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_86 = lean_ctor_get(x_82, 1); -lean_inc(x_86); -lean_dec_ref(x_82); -x_87 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; -x_88 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_81, x_87, x_13, x_14, x_15, x_16, x_86); -lean_dec(x_16); -lean_dec_ref(x_15); -lean_dec(x_14); -lean_dec_ref(x_13); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec_ref(x_88); -x_42 = x_12; -x_43 = x_89; -goto block_53; -} -} -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_90 = lean_ctor_get(x_73, 0); -x_91 = lean_ctor_get(x_73, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_73); -x_92 = lean_ctor_get(x_90, 2); -lean_inc_ref(x_92); -lean_dec(x_90); -x_93 = lean_ctor_get(x_2, 2); -x_94 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_92, x_93); -x_95 = lean_nat_dec_eq(x_94, x_3); -lean_dec(x_94); -if (x_95 == 0) -{ -lean_object* x_96; -lean_dec(x_27); -lean_inc(x_1); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_1); -lean_ctor_set(x_96, 1, x_26); -x_18 = x_96; -x_19 = x_91; -goto block_23; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -lean_dec_ref(x_11); -lean_dec_ref(x_9); -lean_dec(x_1); -x_97 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_98 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_97, x_15, x_91); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_unbox(x_99); -lean_dec(x_99); -if (x_100 == 0) -{ -lean_object* x_101; -lean_dec(x_16); -lean_dec_ref(x_15); -lean_dec(x_14); -lean_dec_ref(x_13); -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_dec_ref(x_98); -x_42 = x_12; -x_43 = x_101; -goto block_53; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_102 = lean_ctor_get(x_98, 1); -lean_inc(x_102); -lean_dec_ref(x_98); -x_103 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; -x_104 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_97, x_103, x_13, x_14, x_15, x_16, x_102); -lean_dec(x_16); -lean_dec_ref(x_15); -lean_dec(x_14); -lean_dec_ref(x_13); -x_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -lean_dec_ref(x_104); -x_42 = x_12; -x_43 = x_105; -goto block_53; -} -} -} -} -else -{ -uint8_t x_106; -lean_dec_ref(x_26); -lean_dec(x_27); -lean_dec(x_16); -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_9); -lean_dec_ref(x_2); -lean_dec(x_1); -x_106 = !lean_is_exclusive(x_71); -if (x_106 == 0) -{ -return x_71; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_71, 0); -x_108 = lean_ctor_get(x_71, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_71); -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 -{ -lean_object* x_110; -lean_dec_ref(x_55); -lean_dec(x_27); -lean_inc(x_1); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_1); -lean_ctor_set(x_110, 1, x_26); -x_18 = x_110; -x_19 = x_17; -goto block_23; -} -} -} -else -{ -lean_object* x_115; -lean_dec(x_27); -lean_inc(x_1); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_1); -lean_ctor_set(x_115, 1, x_26); -x_18 = x_115; -x_19 = x_17; -goto block_23; -} -block_53: -{ -lean_object* x_44; uint8_t x_45; -x_44 = lean_st_ref_set(x_42, x_2, x_43); -lean_dec(x_42); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -x_47 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; -if (lean_is_scalar(x_27)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_27; -} -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_26); -lean_ctor_set(x_44, 0, x_48); -return x_44; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_44, 1); -lean_inc(x_49); -lean_dec(x_44); -x_50 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; -if (lean_is_scalar(x_27)) { - x_51 = lean_alloc_ctor(0, 2, 0); -} else { - x_51 = x_27; -} -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_26); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_49); -return x_52; -} -} -} -else -{ -lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_130; -lean_dec(x_26); -x_116 = lean_array_fget_borrowed(x_28, x_29); -x_117 = lean_unbox(x_116); -x_118 = lean_unsigned_to_nat(1u); -x_119 = lean_nat_add(x_29, x_118); -lean_dec(x_29); -x_120 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_120, 0, x_28); -lean_ctor_set(x_120, 1, x_119); -lean_ctor_set(x_120, 2, x_30); -x_130 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_117); -if (x_130 == 0) -{ -lean_object* x_131; uint8_t x_132; uint8_t x_171; -x_131 = lean_array_uget(x_5, x_7); -x_171 = l_Lean_Expr_isFVar(x_131); -if (x_171 == 0) -{ -lean_object* x_172; -lean_inc_ref(x_131); -x_172 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_131); -if (lean_obj_tag(x_172) == 0) -{ -x_132 = x_171; -goto block_170; -} -else -{ -lean_dec_ref(x_172); -x_132 = x_4; -goto block_170; -} -} -else -{ -lean_object* x_173; -lean_dec_ref(x_131); -lean_dec(x_27); -lean_inc(x_1); -x_173 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_173, 0, x_1); -lean_ctor_set(x_173, 1, x_120); -x_18 = x_173; -x_19 = x_17; -goto block_23; -} -block_170: -{ -if (x_132 == 0) -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_133 = l_Lean_Expr_getAppFn(x_131); -lean_inc_ref(x_11); -lean_inc_ref(x_9); -x_134 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_133, x_9, x_11, x_17); -lean_dec_ref(x_133); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_unbox(x_135); -lean_dec(x_135); -if (x_136 == 0) -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; -lean_dec_ref(x_131); -lean_dec(x_27); -x_137 = lean_ctor_get(x_134, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_138 = x_134; -} else { - lean_dec_ref(x_134); - x_138 = lean_box(0); -} -lean_inc(x_1); -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(0, 2, 0); -} else { - x_139 = x_138; -} -lean_ctor_set(x_139, 0, x_1); -lean_ctor_set(x_139, 1, x_120); -x_18 = x_139; -x_19 = x_137; -goto block_23; -} -else -{ -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_140 = lean_ctor_get(x_134, 1); -lean_inc(x_140); -lean_dec_ref(x_134); -lean_inc_ref(x_2); -x_141 = lean_st_ref_set(x_12, x_2, x_140); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -lean_dec_ref(x_141); -x_143 = lean_ctor_get(x_9, 1); -x_144 = lean_expr_abstract(x_131, x_143); -lean_dec_ref(x_131); -lean_inc(x_16); -lean_inc_ref(x_15); -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc_ref(x_11); -x_145 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_144, x_11, x_12, x_13, x_14, x_15, x_16, x_142); -if (lean_obj_tag(x_145) == 0) -{ -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; uint8_t x_154; -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -lean_dec_ref(x_145); -x_147 = lean_st_ref_get(x_12, 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); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_150 = x_147; -} else { - lean_dec_ref(x_147); - x_150 = lean_box(0); -} -x_151 = lean_ctor_get(x_148, 2); -lean_inc_ref(x_151); -lean_dec(x_148); -x_152 = lean_ctor_get(x_2, 2); -x_153 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_151, x_152); -x_154 = lean_nat_dec_eq(x_153, x_3); -lean_dec(x_153); -if (x_154 == 0) -{ -lean_object* x_155; -lean_dec(x_27); -lean_inc(x_1); -if (lean_is_scalar(x_150)) { - x_155 = lean_alloc_ctor(0, 2, 0); -} else { - x_155 = x_150; -} -lean_ctor_set(x_155, 0, x_1); -lean_ctor_set(x_155, 1, x_120); -x_18 = x_155; -x_19 = x_149; -goto block_23; -} -else -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; -lean_dec(x_150); -lean_dec_ref(x_11); -lean_dec_ref(x_9); -lean_dec(x_1); -x_156 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_157 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_156, x_15, x_149); -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_unbox(x_158); -lean_dec(x_158); -if (x_159 == 0) -{ -lean_object* x_160; -lean_dec(x_16); -lean_dec_ref(x_15); -lean_dec(x_14); -lean_dec_ref(x_13); -x_160 = lean_ctor_get(x_157, 1); -lean_inc(x_160); -lean_dec_ref(x_157); -x_121 = x_12; -x_122 = x_160; -goto block_129; -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_161 = lean_ctor_get(x_157, 1); -lean_inc(x_161); -lean_dec_ref(x_157); -x_162 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__2; -x_163 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_156, x_162, x_13, x_14, x_15, x_16, x_161); -lean_dec(x_16); -lean_dec_ref(x_15); -lean_dec(x_14); -lean_dec_ref(x_13); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -lean_dec_ref(x_163); -x_121 = x_12; -x_122 = x_164; -goto block_129; -} -} -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec_ref(x_120); -lean_dec(x_27); -lean_dec(x_16); -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_9); -lean_dec_ref(x_2); -lean_dec(x_1); -x_165 = lean_ctor_get(x_145, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_145, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_167 = x_145; -} else { - lean_dec_ref(x_145); - 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_dec_ref(x_131); -lean_dec(x_27); -lean_inc(x_1); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_1); -lean_ctor_set(x_169, 1, x_120); -x_18 = x_169; -x_19 = x_17; -goto block_23; -} -} -} -else -{ -lean_object* x_174; -lean_dec(x_27); -lean_inc(x_1); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_1); -lean_ctor_set(x_174, 1, x_120); -x_18 = x_174; -x_19 = x_17; -goto block_23; -} -block_129: -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_123 = lean_st_ref_set(x_121, x_2, x_122); -lean_dec(x_121); -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_125 = x_123; -} else { - lean_dec_ref(x_123); - x_125 = lean_box(0); -} -x_126 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg___closed__0; -if (lean_is_scalar(x_27)) { - x_127 = lean_alloc_ctor(0, 2, 0); -} else { - x_127 = x_27; -} -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_120); -if (lean_is_scalar(x_125)) { - x_128 = lean_alloc_ctor(0, 2, 0); -} else { - x_128 = x_125; -} -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_124); -return x_128; -} -} -} -} -block_23: -{ -size_t x_20; size_t x_21; lean_object* x_22; -x_20 = 1; -x_21 = lean_usize_add(x_7, x_20); -x_22 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_18, x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_19); -return x_22; +x_20 = lean_usize_add(x_6, x_19); +x_21 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_20, x_17, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_18); +return x_21; } } } @@ -42336,7 +42417,23 @@ return x_33; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_1); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_11); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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) { _start: { lean_object* x_13; @@ -42445,222 +42542,219 @@ return x_33; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_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, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f(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_12; lean_object* x_13; lean_object* x_23; lean_object* x_31; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_3, 1); -x_36 = lean_expr_abstract(x_1, x_35); -x_37 = l_Lean_Expr_hasLooseBVars(x_36); -if (x_37 == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_24; lean_object* x_32; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_4, 1); +x_37 = lean_expr_abstract(x_1, x_36); +x_38 = l_Lean_Expr_hasLooseBVars(x_37); +if (x_38 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -lean_dec_ref(x_36); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_dec_ref(x_37); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_38 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_39 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_38, x_9, x_11); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_unbox(x_40); -lean_dec(x_40); -if (x_41 == 0) +x_39 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_40 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_39, x_10, x_12); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_unbox(x_41); +lean_dec(x_41); +if (x_42 == 0) { -lean_object* x_42; -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec_ref(x_39); -x_31 = x_42; -goto block_34; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_39, 1); +lean_object* x_43; +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +x_43 = lean_ctor_get(x_40, 1); lean_inc(x_43); -lean_dec_ref(x_39); -x_44 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__4; -x_45 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_38, x_44, x_7, x_8, x_9, x_10, x_43); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec_ref(x_45); -x_31 = x_46; -goto block_34; +lean_dec_ref(x_40); +x_32 = x_43; +goto block_35; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_dec_ref(x_40); +x_45 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__4; +x_46 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_39, x_45, x_8, x_9, x_10, x_11, x_44); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec_ref(x_46); +x_32 = x_47; +goto block_35; } } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_84; lean_object* x_85; lean_object* x_89; lean_object* x_95; -x_47 = lean_st_ref_get(x_6, x_11); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); +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_85; lean_object* x_86; lean_object* x_90; lean_object* x_96; +x_48 = lean_st_ref_get(x_7, x_12); +x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_50 = x_47; +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; } else { - lean_dec_ref(x_47); - x_50 = lean_box(0); + lean_dec_ref(x_48); + x_51 = lean_box(0); } -x_51 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__0___boxed), 10, 0); -lean_inc(x_48); -x_52 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__1___boxed), 8, 1); -lean_closure_set(x_52, 0, x_48); -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); -x_95 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_49); -if (lean_obj_tag(x_95) == 0) +x_52 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__0___boxed), 10, 0); +lean_inc(x_49); +x_53 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__1___boxed), 8, 1); +lean_closure_set(x_53, 0, x_49); +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); +x_96 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_normalizePattern(x_37, x_6, x_7, x_8, x_9, x_10, x_11, x_50); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); +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; uint8_t x_106; +x_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); -lean_dec_ref(x_95); -x_98 = lean_st_ref_get(x_6, x_97); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec_ref(x_96); +x_99 = lean_st_ref_get(x_7, x_98); +x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); -lean_dec_ref(x_98); -x_101 = lean_st_ref_get(x_6, x_100); -x_102 = !lean_is_exclusive(x_101); -if (x_102 == 0) +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec_ref(x_99); +x_102 = lean_ctor_get(x_100, 2); +lean_inc_ref(x_102); +lean_dec(x_100); +x_103 = lean_ctor_get(x_49, 2); +x_104 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_102, x_103); +x_105 = lean_unsigned_to_nat(0u); +x_106 = lean_nat_dec_eq(x_104, x_105); +if (x_106 == 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; uint8_t x_109; -x_103 = lean_ctor_get(x_101, 0); -x_104 = lean_ctor_get(x_101, 1); -x_105 = lean_ctor_get(x_103, 2); -lean_inc_ref(x_105); -lean_dec(x_103); -x_106 = lean_ctor_get(x_48, 2); -x_107 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_105, x_106); -x_108 = lean_unsigned_to_nat(0u); -x_109 = lean_nat_dec_eq(x_107, x_108); -if (x_109 == 0) +if (x_3 == 0) { -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; size_t x_119; size_t x_120; lean_object* x_121; -x_110 = lean_array_get_size(x_2); -x_111 = l_Array_toSubarray___redArg(x_2, x_108, x_110); -x_112 = l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0___lam__1___closed__0; -x_113 = l_Lean_Expr_getAppNumArgs(x_1); -lean_inc(x_113); -x_114 = lean_mk_array(x_113, x_112); -x_115 = lean_unsigned_to_nat(1u); -x_116 = lean_nat_sub(x_113, x_115); -lean_dec(x_113); -x_117 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_114, x_116); -x_118 = lean_box(0); -lean_ctor_set(x_101, 1, x_111); -lean_ctor_set(x_101, 0, x_118); -x_119 = lean_array_size(x_117); -x_120 = 0; -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_ref(x_3); -x_121 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(x_118, x_48, x_107, x_37, x_117, x_119, x_120, x_101, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_104); -lean_dec_ref(x_117); -lean_dec(x_107); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; lean_object* x_123; -lean_dec_ref(x_52); -lean_dec_ref(x_51); -lean_dec(x_50); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -lean_dec(x_122); -if (lean_obj_tag(x_123) == 0) -{ -lean_object* x_124; lean_object* x_125; uint8_t x_126; -x_124 = lean_ctor_get(x_121, 1); -lean_inc(x_124); -lean_dec_ref(x_121); -x_125 = lean_st_ref_set(x_6, x_99, x_124); -lean_dec(x_6); -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) -{ -lean_object* x_127; lean_object* x_128; -x_127 = lean_ctor_get(x_125, 0); -lean_dec(x_127); -x_128 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_128, 0, x_96); -lean_ctor_set(x_125, 0, x_128); -return x_125; +lean_object* x_107; lean_object* x_108; +lean_dec(x_104); +lean_dec(x_49); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_107 = lean_box(0); +x_108 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_97, x_107, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_101); +x_90 = x_108; +goto block_95; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_125, 1); -lean_inc(x_129); +lean_object* x_109; uint8_t x_110; +x_109 = lean_st_ref_get(x_7, x_101); +x_110 = !lean_is_exclusive(x_109); +if (x_110 == 0) +{ +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; +x_111 = lean_ctor_get(x_109, 0); +x_112 = lean_ctor_get(x_109, 1); +x_113 = lean_array_get_size(x_2); +x_114 = l_Array_toSubarray___redArg(x_2, x_105, x_113); +x_115 = l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0___lam__1___closed__0; +x_116 = l_Lean_Expr_getAppNumArgs(x_1); +lean_inc(x_116); +x_117 = lean_mk_array(x_116, x_115); +x_118 = lean_unsigned_to_nat(1u); +x_119 = lean_nat_sub(x_116, x_118); +lean_dec(x_116); +x_120 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_117, x_119); +x_121 = lean_box(0); +lean_ctor_set(x_109, 1, x_114); +lean_ctor_set(x_109, 0, x_121); +x_122 = lean_array_size(x_120); +x_123 = 0; +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_ref(x_4); +x_124 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(x_121, x_49, x_104, x_120, x_122, x_123, x_109, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_112); +lean_dec_ref(x_120); +lean_dec(x_104); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); lean_dec(x_125); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_96); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_129); -return x_131; -} +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_127 = lean_ctor_get(x_124, 1); +lean_inc(x_127); +lean_dec_ref(x_124); +x_128 = lean_st_ref_set(x_7, x_111, x_127); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec_ref(x_128); +x_131 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_97, x_129, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_130); +x_90 = x_131; +goto block_95; } else { uint8_t x_132; -lean_dec(x_99); -lean_dec(x_96); -lean_dec(x_6); -x_132 = !lean_is_exclusive(x_121); +lean_dec(x_111); +lean_dec(x_97); +lean_dec_ref(x_53); +lean_dec_ref(x_52); +lean_dec(x_51); +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); +x_132 = !lean_is_exclusive(x_124); if (x_132 == 0) { lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_121, 0); +x_133 = lean_ctor_get(x_124, 0); lean_dec(x_133); -x_134 = lean_ctor_get(x_123, 0); +x_134 = lean_ctor_get(x_126, 0); lean_inc(x_134); -lean_dec_ref(x_123); -lean_ctor_set(x_121, 0, x_134); -return x_121; +lean_dec_ref(x_126); +lean_ctor_set(x_124, 0, x_134); +return x_124; } else { lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_121, 1); +x_135 = lean_ctor_get(x_124, 1); lean_inc(x_135); -lean_dec(x_121); -x_136 = lean_ctor_get(x_123, 0); +lean_dec(x_124); +x_136 = lean_ctor_get(x_126, 0); lean_inc(x_136); -lean_dec_ref(x_123); +lean_dec_ref(x_126); x_137 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_137, 0, x_136); lean_ctor_set(x_137, 1, x_135); @@ -42671,633 +42765,508 @@ return x_137; else { lean_object* x_138; lean_object* x_139; -lean_dec(x_99); -lean_dec(x_96); -x_138 = lean_ctor_get(x_121, 0); +lean_dec(x_111); +lean_dec(x_97); +x_138 = lean_ctor_get(x_124, 0); lean_inc(x_138); -x_139 = lean_ctor_get(x_121, 1); +x_139 = lean_ctor_get(x_124, 1); lean_inc(x_139); -lean_dec_ref(x_121); -x_84 = x_138; -x_85 = x_139; -goto block_88; +lean_dec_ref(x_124); +x_85 = x_138; +x_86 = x_139; +goto block_89; } } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -lean_dec(x_107); -lean_free_object(x_101); -lean_dec(x_99); -lean_dec(x_96); -lean_dec(x_48); +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; size_t x_153; lean_object* x_154; +x_140 = lean_ctor_get(x_109, 0); +x_141 = lean_ctor_get(x_109, 1); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_109); +x_142 = lean_array_get_size(x_2); +x_143 = l_Array_toSubarray___redArg(x_2, x_105, x_142); +x_144 = l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0___lam__1___closed__0; +x_145 = l_Lean_Expr_getAppNumArgs(x_1); +lean_inc(x_145); +x_146 = lean_mk_array(x_145, x_144); +x_147 = lean_unsigned_to_nat(1u); +x_148 = lean_nat_sub(x_145, x_147); +lean_dec(x_145); +x_149 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_146, x_148); +x_150 = lean_box(0); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_143); +x_152 = lean_array_size(x_149); +x_153 = 0; +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_ref(x_4); +x_154 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(x_150, x_49, x_104, x_149, x_152, x_153, x_151, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_141); +lean_dec_ref(x_149); +lean_dec(x_104); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; lean_object* x_156; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +lean_dec(x_155); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_157 = lean_ctor_get(x_154, 1); +lean_inc(x_157); +lean_dec_ref(x_154); +x_158 = lean_st_ref_set(x_7, x_140, x_157); +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_158, 1); +lean_inc(x_160); +lean_dec_ref(x_158); +x_161 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_97, x_159, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_160); +x_90 = x_161; +goto block_95; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_140); +lean_dec(x_97); +lean_dec_ref(x_53); +lean_dec_ref(x_52); +lean_dec(x_51); +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); +x_162 = lean_ctor_get(x_154, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_163 = x_154; +} else { + lean_dec_ref(x_154); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_156, 0); +lean_inc(x_164); +lean_dec_ref(x_156); +if (lean_is_scalar(x_163)) { + x_165 = lean_alloc_ctor(0, 2, 0); +} else { + x_165 = x_163; +} +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_162); +return x_165; +} +} +else +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_140); +lean_dec(x_97); +x_166 = lean_ctor_get(x_154, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_154, 1); +lean_inc(x_167); +lean_dec_ref(x_154); +x_85 = x_166; +x_86 = x_167; +goto block_89; +} +} +} +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; +lean_dec(x_104); +lean_dec(x_97); +lean_dec(x_49); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_140 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_141 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_140, x_9, x_104); -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) +x_168 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_169 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_168, x_10, x_101); +x_170 = lean_ctor_get(x_169, 0); +lean_inc(x_170); +x_171 = lean_unbox(x_170); +lean_dec(x_170); +if (x_171 == 0) { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_141, 1); -lean_inc(x_144); -lean_dec_ref(x_141); -x_145 = lean_box(0); -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_4); -lean_inc_ref(x_3); -lean_inc_ref(x_51); +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_169, 1); +lean_inc(x_172); +lean_dec_ref(x_169); +x_173 = lean_box(0); +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_5); +lean_inc_ref(x_4); lean_inc_ref(x_52); -x_146 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_52, x_51, x_145, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_144); -x_89 = x_146; -goto block_94; +lean_inc_ref(x_53); +x_174 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__4(x_53, x_52, x_173, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_172); +x_90 = x_174; +goto block_95; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_147 = lean_ctor_get(x_141, 1); -lean_inc(x_147); -lean_dec_ref(x_141); -x_148 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__2; -x_149 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_140, x_148, x_7, x_8, x_9, x_10, x_147); -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -lean_dec_ref(x_149); -x_151 = lean_box(0); -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_4); -lean_inc_ref(x_3); -lean_inc_ref(x_51); -lean_inc_ref(x_52); -x_152 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_52, x_51, x_151, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_150); -x_89 = x_152; -goto block_94; -} -} -} -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; uint8_t x_159; -x_153 = lean_ctor_get(x_101, 0); -x_154 = lean_ctor_get(x_101, 1); -lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_101); -x_155 = lean_ctor_get(x_153, 2); -lean_inc_ref(x_155); -lean_dec(x_153); -x_156 = lean_ctor_get(x_48, 2); -x_157 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_sizeOfDiff(x_155, x_156); -x_158 = lean_unsigned_to_nat(0u); -x_159 = lean_nat_dec_eq(x_157, x_158); -if (x_159 == 0) -{ -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; size_t x_170; size_t x_171; lean_object* x_172; -x_160 = lean_array_get_size(x_2); -x_161 = l_Array_toSubarray___redArg(x_2, x_158, x_160); -x_162 = l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0___lam__1___closed__0; -x_163 = l_Lean_Expr_getAppNumArgs(x_1); -lean_inc(x_163); -x_164 = lean_mk_array(x_163, x_162); -x_165 = lean_unsigned_to_nat(1u); -x_166 = lean_nat_sub(x_163, x_165); -lean_dec(x_163); -x_167 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_164, x_166); -x_168 = lean_box(0); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_161); -x_170 = lean_array_size(x_167); -x_171 = 0; -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_ref(x_3); -x_172 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(x_168, x_48, x_157, x_37, x_167, x_170, x_171, x_169, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_154); -lean_dec_ref(x_167); -lean_dec(x_157); -if (lean_obj_tag(x_172) == 0) -{ -lean_object* x_173; lean_object* x_174; -lean_dec_ref(x_52); -lean_dec_ref(x_51); -lean_dec(x_50); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_173, 0); -lean_inc(x_174); -lean_dec(x_173); -if (lean_obj_tag(x_174) == 0) -{ 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_175 = lean_ctor_get(x_172, 1); +x_175 = lean_ctor_get(x_169, 1); lean_inc(x_175); -lean_dec_ref(x_172); -x_176 = lean_st_ref_set(x_6, x_99, x_175); -lean_dec(x_6); -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_178 = x_176; -} else { - lean_dec_ref(x_176); - x_178 = lean_box(0); +lean_dec_ref(x_169); +x_176 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__2; +x_177 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_168, x_176, x_8, x_9, x_10, x_11, x_175); +x_178 = lean_ctor_get(x_177, 1); +lean_inc(x_178); +lean_dec_ref(x_177); +x_179 = lean_box(0); +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_5); +lean_inc_ref(x_4); +lean_inc_ref(x_52); +lean_inc_ref(x_53); +x_180 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__4(x_53, x_52, x_179, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_178); +x_90 = x_180; +goto block_95; } -x_179 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_179, 0, x_96); -if (lean_is_scalar(x_178)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_178; } -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_177); -return x_180; } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_99); -lean_dec(x_96); -lean_dec(x_6); -x_181 = lean_ctor_get(x_172, 1); +lean_object* x_181; lean_object* x_182; +lean_dec(x_49); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_181 = lean_ctor_get(x_96, 0); lean_inc(x_181); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_182 = x_172; -} else { - lean_dec_ref(x_172); - x_182 = lean_box(0); -} -x_183 = lean_ctor_get(x_174, 0); -lean_inc(x_183); -lean_dec_ref(x_174); -if (lean_is_scalar(x_182)) { - x_184 = lean_alloc_ctor(0, 2, 0); -} else { - x_184 = x_182; -} -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_181); -return x_184; +x_182 = lean_ctor_get(x_96, 1); +lean_inc(x_182); +lean_dec_ref(x_96); +x_85 = x_181; +x_86 = x_182; +goto block_89; } +block_84: +{ +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_dec(x_51); +x_57 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_58 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_57, x_10, x_54); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_unbox(x_59); +lean_dec(x_59); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec_ref(x_55); +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_dec_ref(x_58); +x_62 = lean_box(0); +x_63 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__2(x_53, x_52, x_62, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_61); +x_24 = x_63; +goto block_31; } else { -lean_object* x_185; lean_object* x_186; -lean_dec(x_99); -lean_dec(x_96); -x_185 = lean_ctor_get(x_172, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_172, 1); -lean_inc(x_186); -lean_dec_ref(x_172); -x_84 = x_185; -x_85 = x_186; -goto block_88; -} +uint8_t x_64; +x_64 = !lean_is_exclusive(x_58); +if (x_64 == 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; +x_65 = lean_ctor_get(x_58, 1); +x_66 = lean_ctor_get(x_58, 0); +lean_dec(x_66); +x_67 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; +x_68 = l_Lean_Exception_toMessageData(x_55); +x_69 = l_Lean_indentD(x_68); +lean_ctor_set_tag(x_58, 7); +lean_ctor_set(x_58, 1, x_69); +lean_ctor_set(x_58, 0, x_67); +x_70 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_57, x_58, x_8, x_9, x_10, x_11, x_65); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec_ref(x_70); +x_72 = lean_box(0); +x_73 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__2(x_53, x_52, x_72, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_71); +x_24 = x_73; +goto block_31; } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; -lean_dec(x_157); -lean_dec(x_99); -lean_dec(x_96); -lean_dec(x_48); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_187 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_188 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_187, x_9, x_154); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_unbox(x_189); -lean_dec(x_189); -if (x_190 == 0) -{ -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(0); -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_4); -lean_inc_ref(x_3); -lean_inc_ref(x_51); -lean_inc_ref(x_52); -x_193 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_52, x_51, x_192, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_191); -x_89 = x_193; -goto block_94; -} -else -{ -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_194 = lean_ctor_get(x_188, 1); -lean_inc(x_194); -lean_dec_ref(x_188); -x_195 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___lam__1___closed__2; -x_196 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_187, x_195, x_7, x_8, x_9, x_10, x_194); -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -lean_dec_ref(x_196); -x_198 = lean_box(0); -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_4); -lean_inc_ref(x_3); -lean_inc_ref(x_51); -lean_inc_ref(x_52); -x_199 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_52, x_51, x_198, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_197); -x_89 = x_199; -goto block_94; -} -} -} -} -else -{ -lean_object* x_200; lean_object* x_201; -lean_dec(x_48); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_200 = lean_ctor_get(x_95, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_95, 1); -lean_inc(x_201); -lean_dec_ref(x_95); -x_84 = x_200; -x_85 = x_201; -goto block_88; -} -block_83: -{ -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec(x_50); -x_56 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_57 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_56, x_9, x_53); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); +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; +x_74 = lean_ctor_get(x_58, 1); +lean_inc(x_74); lean_dec(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec_ref(x_54); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec_ref(x_57); -x_61 = lean_box(0); -x_62 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__2(x_52, x_51, x_61, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_60); -x_23 = x_62; -goto block_30; -} -else -{ -uint8_t x_63; -x_63 = !lean_is_exclusive(x_57); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_64 = lean_ctor_get(x_57, 1); -x_65 = lean_ctor_get(x_57, 0); -lean_dec(x_65); -x_66 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; -x_67 = l_Lean_Exception_toMessageData(x_54); -x_68 = l_Lean_indentD(x_67); -lean_ctor_set_tag(x_57, 7); -lean_ctor_set(x_57, 1, x_68); -lean_ctor_set(x_57, 0, x_66); -x_69 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_56, x_57, x_7, x_8, x_9, x_10, x_64); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec_ref(x_69); -x_71 = lean_box(0); -x_72 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__2(x_52, x_51, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_70); -x_23 = x_72; -goto block_30; -} -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; lean_object* x_81; -x_73 = lean_ctor_get(x_57, 1); -lean_inc(x_73); -lean_dec(x_57); -x_74 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; -x_75 = l_Lean_Exception_toMessageData(x_54); -x_76 = l_Lean_indentD(x_75); -x_77 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_56, x_77, x_7, x_8, x_9, x_10, x_73); -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -lean_dec_ref(x_78); -x_80 = lean_box(0); -x_81 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__2(x_52, x_51, x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_79); -x_23 = x_81; -goto block_30; +x_75 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; +x_76 = l_Lean_Exception_toMessageData(x_55); +x_77 = l_Lean_indentD(x_76); +x_78 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_77); +x_79 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_57, x_78, x_8, x_9, x_10, x_11, x_74); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +lean_dec_ref(x_79); +x_81 = lean_box(0); +x_82 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__2(x_53, x_52, x_81, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_80); +x_24 = x_82; +goto block_31; } } } else { -lean_object* x_82; +lean_object* x_83; +lean_dec_ref(x_53); lean_dec_ref(x_52); -lean_dec_ref(x_51); -lean_dec(x_10); -lean_dec_ref(x_9); -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); -if (lean_is_scalar(x_50)) { - x_82 = lean_alloc_ctor(1, 2, 0); +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); +if (lean_is_scalar(x_51)) { + x_83 = lean_alloc_ctor(1, 2, 0); } else { - x_82 = x_50; - lean_ctor_set_tag(x_82, 1); + x_83 = x_51; + lean_ctor_set_tag(x_83, 1); } -lean_ctor_set(x_82, 0, x_54); -lean_ctor_set(x_82, 1, x_53); -return x_82; +lean_ctor_set(x_83, 0, x_55); +lean_ctor_set(x_83, 1, x_54); +return x_83; } } -block_88: -{ -uint8_t x_86; -x_86 = l_Lean_Exception_isInterrupt(x_84); -if (x_86 == 0) +block_89: { uint8_t x_87; -x_87 = l_Lean_Exception_isRuntime(x_84); -x_53 = x_85; -x_54 = x_84; -x_55 = x_87; -goto block_83; +x_87 = l_Lean_Exception_isInterrupt(x_85); +if (x_87 == 0) +{ +uint8_t x_88; +x_88 = l_Lean_Exception_isRuntime(x_85); +x_54 = x_86; +x_55 = x_85; +x_56 = x_88; +goto block_84; } else { -x_53 = x_85; -x_54 = x_84; -x_55 = x_86; -goto block_83; +x_54 = x_86; +x_55 = x_85; +x_56 = x_87; +goto block_84; } } -block_94: +block_95: { -if (lean_obj_tag(x_89) == 0) +if (lean_obj_tag(x_90) == 0) { -lean_object* x_90; lean_object* x_91; +lean_object* x_91; lean_object* x_92; +lean_dec_ref(x_53); lean_dec_ref(x_52); -lean_dec_ref(x_51); -lean_dec(x_50); -lean_dec(x_10); -lean_dec_ref(x_9); -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); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); +lean_dec(x_51); +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); +x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); -lean_dec_ref(x_89); -x_12 = x_90; -x_13 = x_91; -goto block_22; -} -else -{ -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_89, 0); +x_92 = lean_ctor_get(x_90, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_89, 1); +lean_dec_ref(x_90); +x_13 = x_91; +x_14 = x_92; +goto block_23; +} +else +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_90, 0); lean_inc(x_93); -lean_dec_ref(x_89); -x_84 = x_92; +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_dec_ref(x_90); x_85 = x_93; -goto block_88; +x_86 = x_94; +goto block_89; } } } -block_22: +block_23: { -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_13) == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_12); -if (x_14 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) { -lean_object* x_15; -x_15 = lean_ctor_get(x_12, 1); -lean_dec(x_15); -lean_ctor_set(x_12, 1, x_13); -return x_12; +lean_object* x_16; +x_16 = lean_ctor_get(x_13, 1); +lean_dec(x_16); +lean_ctor_set(x_13, 1, x_14); +return x_13; } else { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_12, 0); -lean_inc(x_16); -lean_dec(x_12); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_13); -return x_17; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_14); +return x_18; } } else { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_12); -if (x_18 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_13); +if (x_19 == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_12, 1); -lean_dec(x_19); -lean_ctor_set_tag(x_12, 0); -lean_ctor_set(x_12, 1, x_13); -return x_12; +lean_object* x_20; +x_20 = lean_ctor_get(x_13, 1); +lean_dec(x_20); +lean_ctor_set_tag(x_13, 0); +lean_ctor_set(x_13, 1, x_14); +return x_13; } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_12, 0); -lean_inc(x_20); -lean_dec(x_12); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_13); -return x_21; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_14); +return x_22; } } } -block_30: +block_31: { -if (lean_obj_tag(x_23) == 0) +if (lean_obj_tag(x_24) == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec_ref(x_23); -x_12 = x_24; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec_ref(x_24); x_13 = x_25; -goto block_22; +x_14 = x_26; +goto block_23; } else { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_23); -if (x_26 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) { -return x_23; +return x_24; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_23, 0); -x_28 = lean_ctor_get(x_23, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_24, 0); +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_23); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_dec(x_24); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } -block_34: +block_35: { -lean_object* x_32; lean_object* x_33; -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -return x_33; +lean_object* x_33; lean_object* x_34; +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_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, 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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_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, 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_17; size_t x_18; size_t x_19; lean_object* x_20; -x_17 = lean_unbox(x_4); +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_17 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_18 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_16, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec_ref(x_4); +lean_dec(x_3); +return x_18; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_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, 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: +{ +size_t x_17; size_t x_18; lean_object* x_19; +x_17 = lean_unbox_usize(x_5); +lean_dec(x_5); x_18 = lean_unbox_usize(x_6); lean_dec(x_6); -x_19 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_20 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___redArg(x_1, x_2, x_3, x_17, x_5, x_18, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec_ref(x_5); +x_19 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_17, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_9); +lean_dec_ref(x_4); lean_dec(x_3); -return x_20; +return x_19; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0___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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; -x_18 = lean_unbox(x_4); -x_19 = lean_unbox_usize(x_6); +size_t x_17; size_t x_18; lean_object* x_19; +x_17 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_18 = lean_unbox_usize(x_6); lean_dec(x_6); -x_20 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_21 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0_spec__0(x_1, x_2, x_3, x_18, x_5, x_19, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_10); -lean_dec_ref(x_5); +x_19 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(x_1, x_2, x_3, x_4, x_17, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_9); +lean_dec_ref(x_4); lean_dec(x_3); -return x_21; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0___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: -{ -uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; -x_18 = lean_unbox(x_4); -x_19 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_20 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_21 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f_spec__0(x_1, x_2, x_3, x_18, x_5, x_19, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_10); -lean_dec_ref(x_5); -lean_dec(x_3); -return x_21; +return x_19; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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) { @@ -43330,106 +43299,130 @@ lean_dec_ref(x_2); return x_9; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0_spec__0(uint8_t x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_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, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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) { _start: { -lean_object* x_16; lean_object* x_17; uint8_t x_22; -x_22 = lean_usize_dec_lt(x_5, x_4); -if (x_22 == 0) -{ -lean_object* x_23; -lean_dec(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_11); +lean_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___lam__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec_ref(x_9); 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); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0_spec__0(uint8_t x_1, lean_object* x_2, uint8_t 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, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; uint8_t x_23; +x_23 = lean_usize_dec_lt(x_6, x_5); +if (x_23 == 0) +{ +lean_object* x_24; +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_9); +lean_dec_ref(x_8); lean_dec(x_2); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_6); -lean_ctor_set(x_23, 1, x_15); -return x_23; +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_7); +lean_ctor_set(x_24, 1, x_16); +return x_24; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_6, 0); -x_25 = lean_ctor_get(x_6, 1); -x_26 = lean_ctor_get(x_6, 2); -x_27 = lean_nat_dec_lt(x_25, x_26); -if (x_27 == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_7, 0); +x_26 = lean_ctor_get(x_7, 1); +x_27 = lean_ctor_get(x_7, 2); +x_28 = lean_nat_dec_lt(x_26, x_27); +if (x_28 == 0) { -lean_object* x_28; -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_8); -lean_dec_ref(x_7); +lean_object* x_29; +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_9); +lean_dec_ref(x_8); lean_dec(x_2); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_6); -lean_ctor_set(x_28, 1, x_15); -return x_28; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_7); +lean_ctor_set(x_29, 1, x_16); +return x_29; } else { -uint8_t x_29; +uint8_t x_30; +lean_inc(x_27); lean_inc(x_26); -lean_inc(x_25); -lean_inc_ref(x_24); -x_29 = !lean_is_exclusive(x_6); -if (x_29 == 0) +lean_inc_ref(x_25); +x_30 = !lean_is_exclusive(x_7); +if (x_30 == 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; -x_30 = lean_ctor_get(x_6, 2); -lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 1); +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_7, 2); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 0); +x_32 = lean_ctor_get(x_7, 1); lean_dec(x_32); -x_33 = lean_array_uget(x_3, x_5); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_25, x_34); -lean_inc_ref(x_24); -lean_ctor_set(x_6, 1, x_35); -lean_inc_ref(x_33); -x_36 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_33); -if (lean_obj_tag(x_36) == 0) +x_33 = lean_ctor_get(x_7, 0); +lean_dec(x_33); +x_34 = lean_array_uget(x_4, x_6); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_26, x_35); +lean_inc_ref(x_25); +lean_ctor_set(x_7, 1, x_36); +lean_inc_ref(x_34); +x_37 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_34); +if (lean_obj_tag(x_37) == 0) { if (x_1 == 0) { -lean_object* x_37; uint8_t x_38; +lean_object* x_38; uint8_t x_39; lean_inc(x_2); -x_37 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_13, x_15); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +x_38 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_14, x_16); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -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; uint8_t x_60; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -x_41 = lean_array_fget(x_24, x_25); -lean_dec(x_25); -lean_dec_ref(x_24); -x_42 = lean_unbox(x_41); -x_60 = lean_unbox(x_39); -lean_dec(x_39); -if (x_60 == 0) +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 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_61; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +x_42 = lean_array_fget(x_25, x_26); +lean_dec(x_26); +lean_dec_ref(x_25); +x_43 = lean_unbox(x_42); +x_61 = lean_unbox(x_40); +lean_dec(x_40); +if (x_61 == 0) { -lean_free_object(x_37); -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_8); -lean_inc_ref(x_7); -x_43 = x_7; +lean_free_object(x_38); +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_9); +lean_inc_ref(x_8); x_44 = x_8; x_45 = x_9; x_46 = x_10; @@ -43437,1964 +43430,1969 @@ x_47 = x_11; x_48 = x_12; x_49 = x_13; x_50 = x_14; -x_51 = x_40; -goto block_59; +x_51 = x_15; +x_52 = x_41; +goto block_60; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_72; -x_61 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; -lean_inc_ref(x_33); -x_62 = l_Lean_MessageData_ofExpr(x_33); -lean_ctor_set_tag(x_37, 7); -lean_ctor_set(x_37, 1, x_62); -lean_ctor_set(x_37, 0, x_61); -x_63 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; -x_64 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_64, 0, x_37); -lean_ctor_set(x_64, 1, x_63); -x_72 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_42); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_65 = x_73; -goto block_71; -} -else +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_73; +x_62 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; +lean_inc_ref(x_34); +x_63 = l_Lean_MessageData_ofExpr(x_34); +lean_ctor_set_tag(x_38, 7); +lean_ctor_set(x_38, 1, x_63); +lean_ctor_set(x_38, 0, x_62); +x_64 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_38); +lean_ctor_set(x_65, 1, x_64); +x_73 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_43); +if (x_73 == 0) { lean_object* x_74; -x_74 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_65 = x_74; -goto block_71; +x_74 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; +x_66 = x_74; +goto block_72; } -block_71: +else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_66, 0, x_65); -x_67 = l_Lean_MessageData_ofFormat(x_66); -x_68 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_68, 0, x_64); -lean_ctor_set(x_68, 1, x_67); +lean_object* x_75; +x_75 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; +x_66 = x_75; +goto block_72; +} +block_72: +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_67 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_67, 0, x_66); +x_68 = l_Lean_MessageData_ofFormat(x_67); +x_69 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_69, 0, x_65); +lean_ctor_set(x_69, 1, x_68); lean_inc(x_2); -x_69 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_68, x_11, x_12, x_13, x_14, x_40); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec_ref(x_69); -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_8); -lean_inc_ref(x_7); -x_43 = x_7; -x_44 = x_8; -x_45 = x_9; -x_46 = x_10; -x_47 = x_11; -x_48 = x_12; -x_49 = x_13; -x_50 = x_14; -x_51 = x_70; -goto block_59; -} -} -block_59: -{ -uint8_t x_52; -x_52 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_42); -if (x_52 == 0) -{ -lean_object* x_53; -x_53 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_33, x_43, x_44, x_45, x_46, x_47, x_48, x_49, x_50, x_51); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec_ref(x_53); -x_16 = x_6; -x_17 = x_54; -goto block_21; -} -else -{ -uint8_t x_55; -lean_dec_ref(x_6); -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_53); -if (x_55 == 0) -{ -return x_53; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_53, 0); -x_57 = lean_ctor_get(x_53, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_53); -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_dec(x_50); -lean_dec_ref(x_49); -lean_dec(x_48); -lean_dec_ref(x_47); -lean_dec(x_46); -lean_dec_ref(x_45); -lean_dec(x_44); -lean_dec_ref(x_43); -lean_dec_ref(x_33); -x_16 = x_6; -x_17 = x_51; -goto block_21; -} -} -} -else -{ -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_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; uint8_t x_96; -x_75 = lean_ctor_get(x_37, 0); -x_76 = lean_ctor_get(x_37, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_37); -x_77 = lean_array_fget(x_24, x_25); -lean_dec(x_25); -lean_dec_ref(x_24); -x_78 = lean_unbox(x_77); -x_96 = lean_unbox(x_75); -lean_dec(x_75); -if (x_96 == 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_8); -lean_inc_ref(x_7); -x_79 = x_7; -x_80 = x_8; -x_81 = x_9; -x_82 = x_10; -x_83 = x_11; -x_84 = x_12; -x_85 = x_13; -x_86 = x_14; -x_87 = x_76; -goto block_95; -} -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; uint8_t x_109; -x_97 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; -lean_inc_ref(x_33); -x_98 = l_Lean_MessageData_ofExpr(x_33); -x_99 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -x_100 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_109 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_78); -if (x_109 == 0) -{ -lean_object* x_110; -x_110 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_102 = x_110; -goto block_108; -} -else -{ -lean_object* x_111; -x_111 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_102 = x_111; -goto block_108; -} -block_108: -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_103 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_103, 0, x_102); -x_104 = l_Lean_MessageData_ofFormat(x_103); -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_101); -lean_ctor_set(x_105, 1, x_104); -lean_inc(x_2); -x_106 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_105, x_11, x_12, x_13, x_14, x_76); -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -lean_dec_ref(x_106); -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_8); -lean_inc_ref(x_7); -x_79 = x_7; -x_80 = x_8; -x_81 = x_9; -x_82 = x_10; -x_83 = x_11; -x_84 = x_12; -x_85 = x_13; -x_86 = x_14; -x_87 = x_107; -goto block_95; -} -} -block_95: -{ -uint8_t x_88; -x_88 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_78); -if (x_88 == 0) -{ -lean_object* x_89; -x_89 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_33, x_79, x_80, x_81, x_82, x_83, x_84, x_85, x_86, x_87); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec_ref(x_89); -x_16 = x_6; -x_17 = x_90; -goto block_21; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec_ref(x_6); -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_91 = lean_ctor_get(x_89, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_89, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_93 = x_89; -} else { - lean_dec_ref(x_89); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -} -else -{ -lean_dec(x_86); -lean_dec_ref(x_85); -lean_dec(x_84); -lean_dec_ref(x_83); -lean_dec(x_82); -lean_dec_ref(x_81); -lean_dec(x_80); -lean_dec_ref(x_79); -lean_dec_ref(x_33); -x_16 = x_6; -x_17 = x_87; -goto block_21; -} -} -} -} -else -{ -lean_dec_ref(x_33); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_6; -x_17 = x_15; -goto block_21; -} -} -else -{ -lean_dec_ref(x_36); -lean_dec_ref(x_33); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_6; -x_17 = x_15; -goto block_21; -} -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_6); -x_112 = lean_array_uget(x_3, x_5); -x_113 = lean_unsigned_to_nat(1u); -x_114 = lean_nat_add(x_25, x_113); -lean_inc_ref(x_24); -x_115 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_115, 0, x_24); -lean_ctor_set(x_115, 1, x_114); -lean_ctor_set(x_115, 2, x_26); -lean_inc_ref(x_112); -x_116 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_112); -if (lean_obj_tag(x_116) == 0) -{ -if (x_1 == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t 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_140; -lean_inc(x_2); -x_117 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_13, x_15); -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); -} -x_121 = lean_array_fget(x_24, x_25); -lean_dec(x_25); -lean_dec_ref(x_24); -x_122 = lean_unbox(x_121); -x_140 = lean_unbox(x_118); -lean_dec(x_118); -if (x_140 == 0) -{ -lean_dec(x_120); -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_8); -lean_inc_ref(x_7); -x_123 = x_7; -x_124 = x_8; -x_125 = x_9; -x_126 = x_10; -x_127 = x_11; -x_128 = x_12; -x_129 = x_13; -x_130 = x_14; -x_131 = x_119; -goto block_139; -} -else -{ -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_153; -x_141 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; -lean_inc_ref(x_112); -x_142 = l_Lean_MessageData_ofExpr(x_112); -if (lean_is_scalar(x_120)) { - x_143 = lean_alloc_ctor(7, 2, 0); -} else { - x_143 = x_120; - lean_ctor_set_tag(x_143, 7); -} -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -x_144 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; -x_145 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -x_153 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_122); -if (x_153 == 0) -{ -lean_object* x_154; -x_154 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_146 = x_154; -goto block_152; -} -else -{ -lean_object* x_155; -x_155 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_146 = x_155; -goto block_152; -} -block_152: -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_147 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_148 = l_Lean_MessageData_ofFormat(x_147); -x_149 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_149, 0, x_145); -lean_ctor_set(x_149, 1, x_148); -lean_inc(x_2); -x_150 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_149, x_11, x_12, x_13, x_14, x_119); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec_ref(x_150); -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_8); -lean_inc_ref(x_7); -x_123 = x_7; -x_124 = x_8; -x_125 = x_9; -x_126 = x_10; -x_127 = x_11; -x_128 = x_12; -x_129 = x_13; -x_130 = x_14; -x_131 = x_151; -goto block_139; -} -} -block_139: -{ -uint8_t x_132; -x_132 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_122); -if (x_132 == 0) -{ -lean_object* x_133; -x_133 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_112, x_123, x_124, x_125, x_126, x_127, x_128, x_129, x_130, x_131); -if (lean_obj_tag(x_133) == 0) -{ -lean_object* x_134; -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -lean_dec_ref(x_133); -x_16 = x_115; -x_17 = x_134; -goto block_21; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec_ref(x_115); -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_135 = lean_ctor_get(x_133, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_133, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_137 = x_133; -} else { - lean_dec_ref(x_133); - x_137 = lean_box(0); -} -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); -return x_138; -} -} -else -{ -lean_dec(x_130); -lean_dec_ref(x_129); -lean_dec(x_128); -lean_dec_ref(x_127); -lean_dec(x_126); -lean_dec_ref(x_125); -lean_dec(x_124); -lean_dec_ref(x_123); -lean_dec_ref(x_112); -x_16 = x_115; -x_17 = x_131; -goto block_21; -} -} -} -else -{ -lean_dec_ref(x_112); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_115; -x_17 = x_15; -goto block_21; -} -} -else -{ -lean_dec_ref(x_116); -lean_dec_ref(x_112); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_115; -x_17 = x_15; -goto block_21; -} -} -} -} -block_21: -{ -size_t x_18; size_t x_19; -x_18 = 1; -x_19 = lean_usize_add(x_5, x_18); -x_5 = x_19; -x_6 = x_16; -x_15 = x_17; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___redArg(uint8_t x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_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, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; lean_object* x_17; uint8_t x_22; -x_22 = lean_usize_dec_lt(x_5, x_4); -if (x_22 == 0) -{ -lean_object* x_23; -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_6); -lean_ctor_set(x_23, 1, x_15); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_6, 0); -x_25 = lean_ctor_get(x_6, 1); -x_26 = lean_ctor_get(x_6, 2); -x_27 = lean_nat_dec_lt(x_25, x_26); -if (x_27 == 0) -{ -lean_object* x_28; -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_6); -lean_ctor_set(x_28, 1, x_15); -return x_28; -} -else -{ -uint8_t x_29; -lean_inc(x_26); -lean_inc(x_25); -lean_inc_ref(x_24); -x_29 = !lean_is_exclusive(x_6); -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; -x_30 = lean_ctor_get(x_6, 2); -lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 1); -lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 0); -lean_dec(x_32); -x_33 = lean_array_uget(x_3, x_5); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_25, x_34); -lean_inc_ref(x_24); -lean_ctor_set(x_6, 1, x_35); -lean_inc_ref(x_33); -x_36 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_33); -if (lean_obj_tag(x_36) == 0) -{ -if (x_1 == 0) -{ -lean_object* x_37; uint8_t x_38; -lean_inc(x_2); -x_37 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_13, x_15); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -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; uint8_t x_60; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -x_41 = lean_array_fget(x_24, x_25); -lean_dec(x_25); -lean_dec_ref(x_24); -x_42 = lean_unbox(x_41); -x_60 = lean_unbox(x_39); -lean_dec(x_39); -if (x_60 == 0) -{ -lean_free_object(x_37); -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_8); -lean_inc_ref(x_7); -x_43 = x_7; -x_44 = x_8; -x_45 = x_9; -x_46 = x_10; -x_47 = x_11; -x_48 = x_12; -x_49 = x_13; -x_50 = x_14; -x_51 = x_40; -goto block_59; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_72; -x_61 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; -lean_inc_ref(x_33); -x_62 = l_Lean_MessageData_ofExpr(x_33); -lean_ctor_set_tag(x_37, 7); -lean_ctor_set(x_37, 1, x_62); -lean_ctor_set(x_37, 0, x_61); -x_63 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; -x_64 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_64, 0, x_37); -lean_ctor_set(x_64, 1, x_63); -x_72 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_42); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_65 = x_73; -goto block_71; -} -else -{ -lean_object* x_74; -x_74 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_65 = x_74; -goto block_71; -} -block_71: -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_66, 0, x_65); -x_67 = l_Lean_MessageData_ofFormat(x_66); -x_68 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_68, 0, x_64); -lean_ctor_set(x_68, 1, x_67); -lean_inc(x_2); -x_69 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_68, x_11, x_12, x_13, x_14, x_40); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec_ref(x_69); -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_8); -lean_inc_ref(x_7); -x_43 = x_7; -x_44 = x_8; -x_45 = x_9; -x_46 = x_10; -x_47 = x_11; -x_48 = x_12; -x_49 = x_13; -x_50 = x_14; -x_51 = x_70; -goto block_59; -} -} -block_59: -{ -uint8_t x_52; -x_52 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_42); -if (x_52 == 0) -{ -lean_object* x_53; -x_53 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_33, x_43, x_44, x_45, x_46, x_47, x_48, x_49, x_50, x_51); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec_ref(x_53); -x_16 = x_6; -x_17 = x_54; -goto block_21; -} -else -{ -uint8_t x_55; -lean_dec_ref(x_6); -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_53); -if (x_55 == 0) -{ -return x_53; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_53, 0); -x_57 = lean_ctor_get(x_53, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_53); -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_dec(x_50); -lean_dec_ref(x_49); -lean_dec(x_48); -lean_dec_ref(x_47); -lean_dec(x_46); -lean_dec_ref(x_45); -lean_dec(x_44); -lean_dec_ref(x_43); -lean_dec_ref(x_33); -x_16 = x_6; -x_17 = x_51; -goto block_21; -} -} -} -else -{ -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_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; uint8_t x_96; -x_75 = lean_ctor_get(x_37, 0); -x_76 = lean_ctor_get(x_37, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_37); -x_77 = lean_array_fget(x_24, x_25); -lean_dec(x_25); -lean_dec_ref(x_24); -x_78 = lean_unbox(x_77); -x_96 = lean_unbox(x_75); -lean_dec(x_75); -if (x_96 == 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_8); -lean_inc_ref(x_7); -x_79 = x_7; -x_80 = x_8; -x_81 = x_9; -x_82 = x_10; -x_83 = x_11; -x_84 = x_12; -x_85 = x_13; -x_86 = x_14; -x_87 = x_76; -goto block_95; -} -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; uint8_t x_109; -x_97 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; -lean_inc_ref(x_33); -x_98 = l_Lean_MessageData_ofExpr(x_33); -x_99 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -x_100 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_109 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_78); -if (x_109 == 0) -{ -lean_object* x_110; -x_110 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_102 = x_110; -goto block_108; -} -else -{ -lean_object* x_111; -x_111 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_102 = x_111; -goto block_108; -} -block_108: -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_103 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_103, 0, x_102); -x_104 = l_Lean_MessageData_ofFormat(x_103); -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_101); -lean_ctor_set(x_105, 1, x_104); -lean_inc(x_2); -x_106 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_105, x_11, x_12, x_13, x_14, x_76); -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -lean_dec_ref(x_106); -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_8); -lean_inc_ref(x_7); -x_79 = x_7; -x_80 = x_8; -x_81 = x_9; -x_82 = x_10; -x_83 = x_11; -x_84 = x_12; -x_85 = x_13; -x_86 = x_14; -x_87 = x_107; -goto block_95; -} -} -block_95: -{ -uint8_t x_88; -x_88 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_78); -if (x_88 == 0) -{ -lean_object* x_89; -x_89 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_33, x_79, x_80, x_81, x_82, x_83, x_84, x_85, x_86, x_87); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec_ref(x_89); -x_16 = x_6; -x_17 = x_90; -goto block_21; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec_ref(x_6); -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_91 = lean_ctor_get(x_89, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_89, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_93 = x_89; -} else { - lean_dec_ref(x_89); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -} -else -{ -lean_dec(x_86); -lean_dec_ref(x_85); -lean_dec(x_84); -lean_dec_ref(x_83); -lean_dec(x_82); -lean_dec_ref(x_81); -lean_dec(x_80); -lean_dec_ref(x_79); -lean_dec_ref(x_33); -x_16 = x_6; -x_17 = x_87; -goto block_21; -} -} -} -} -else -{ -lean_dec_ref(x_33); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_6; -x_17 = x_15; -goto block_21; -} -} -else -{ -lean_dec_ref(x_36); -lean_dec_ref(x_33); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_6; -x_17 = x_15; -goto block_21; -} -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_6); -x_112 = lean_array_uget(x_3, x_5); -x_113 = lean_unsigned_to_nat(1u); -x_114 = lean_nat_add(x_25, x_113); -lean_inc_ref(x_24); -x_115 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_115, 0, x_24); -lean_ctor_set(x_115, 1, x_114); -lean_ctor_set(x_115, 2, x_26); -lean_inc_ref(x_112); -x_116 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_112); -if (lean_obj_tag(x_116) == 0) -{ -if (x_1 == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t 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_140; -lean_inc(x_2); -x_117 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_13, x_15); -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); -} -x_121 = lean_array_fget(x_24, x_25); -lean_dec(x_25); -lean_dec_ref(x_24); -x_122 = lean_unbox(x_121); -x_140 = lean_unbox(x_118); -lean_dec(x_118); -if (x_140 == 0) -{ -lean_dec(x_120); -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_8); -lean_inc_ref(x_7); -x_123 = x_7; -x_124 = x_8; -x_125 = x_9; -x_126 = x_10; -x_127 = x_11; -x_128 = x_12; -x_129 = x_13; -x_130 = x_14; -x_131 = x_119; -goto block_139; -} -else -{ -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_153; -x_141 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; -lean_inc_ref(x_112); -x_142 = l_Lean_MessageData_ofExpr(x_112); -if (lean_is_scalar(x_120)) { - x_143 = lean_alloc_ctor(7, 2, 0); -} else { - x_143 = x_120; - lean_ctor_set_tag(x_143, 7); -} -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -x_144 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; -x_145 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -x_153 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_122); -if (x_153 == 0) -{ -lean_object* x_154; -x_154 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; -x_146 = x_154; -goto block_152; -} -else -{ -lean_object* x_155; -x_155 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; -x_146 = x_155; -goto block_152; -} -block_152: -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_147 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_148 = l_Lean_MessageData_ofFormat(x_147); -x_149 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_149, 0, x_145); -lean_ctor_set(x_149, 1, x_148); -lean_inc(x_2); -x_150 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_149, x_11, x_12, x_13, x_14, x_119); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec_ref(x_150); -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_8); -lean_inc_ref(x_7); -x_123 = x_7; -x_124 = x_8; -x_125 = x_9; -x_126 = x_10; -x_127 = x_11; -x_128 = x_12; -x_129 = x_13; -x_130 = x_14; -x_131 = x_151; -goto block_139; -} -} -block_139: -{ -uint8_t x_132; -x_132 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_122); -if (x_132 == 0) -{ -lean_object* x_133; -x_133 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_112, x_123, x_124, x_125, x_126, x_127, x_128, x_129, x_130, x_131); -if (lean_obj_tag(x_133) == 0) -{ -lean_object* x_134; -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -lean_dec_ref(x_133); -x_16 = x_115; -x_17 = x_134; -goto block_21; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec_ref(x_115); -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_8); -lean_dec_ref(x_7); -lean_dec(x_2); -x_135 = lean_ctor_get(x_133, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_133, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_137 = x_133; -} else { - lean_dec_ref(x_133); - x_137 = lean_box(0); -} -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); -return x_138; -} -} -else -{ -lean_dec(x_130); -lean_dec_ref(x_129); -lean_dec(x_128); -lean_dec_ref(x_127); -lean_dec(x_126); -lean_dec_ref(x_125); -lean_dec(x_124); -lean_dec_ref(x_123); -lean_dec_ref(x_112); -x_16 = x_115; -x_17 = x_131; -goto block_21; -} -} -} -else -{ -lean_dec_ref(x_112); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_115; -x_17 = x_15; -goto block_21; -} -} -else -{ -lean_dec_ref(x_116); -lean_dec_ref(x_112); -lean_dec(x_25); -lean_dec_ref(x_24); -x_16 = x_115; -x_17 = x_15; -goto block_21; -} -} -} -} -block_21: -{ -size_t x_18; size_t x_19; lean_object* x_20; -x_18 = 1; -x_19 = lean_usize_add(x_5, x_18); -x_20 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0_spec__0(x_1, x_2, x_3, x_4, x_19, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_17); -return x_20; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__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, size_t x_10, size_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; -x_22 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___redArg(x_1, x_2, 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); -return x_22; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__0(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, 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; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; -x_16 = l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0___lam__1___closed__0; -lean_inc(x_1); -x_17 = lean_mk_array(x_1, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_sub(x_1, x_18); -lean_dec(x_1); -x_20 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_17, x_19); -x_21 = lean_unsigned_to_nat(0u); -x_22 = lean_array_get_size(x_3); -x_23 = l_Array_toSubarray___redArg(x_3, x_21, x_22); -x_24 = lean_array_size(x_20); -x_25 = 0; -x_26 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___redArg(x_4, x_5, x_20, x_24, x_25, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec_ref(x_20); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -x_29 = lean_box(0); -lean_ctor_set(x_26, 0, x_29); -return x_26; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -x_31 = lean_box(0); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -else -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_26); -if (x_33 == 0) -{ -return x_26; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_26, 0); -x_35 = lean_ctor_get(x_26, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_26); -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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(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; lean_object* x_20; lean_object* x_21; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_st_ref_get(x_3, x_10); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get_uint8(x_42, sizeof(void*)*1); -lean_dec(x_42); -if (x_43 == 0) -{ -switch (lean_obj_tag(x_1)) { -case 5: -{ -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_90; lean_object* x_91; uint8_t x_92; -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec_ref(x_41); -x_45 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_90 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_45, x_8, x_44); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_unbox(x_91); -lean_dec(x_91); -if (x_92 == 0) -{ -lean_object* x_93; -x_93 = lean_ctor_get(x_90, 1); -lean_inc(x_93); -lean_dec_ref(x_90); -x_46 = x_2; -x_47 = x_3; -x_48 = x_4; -x_49 = x_5; -x_50 = x_6; -x_51 = x_7; -x_52 = x_8; -x_53 = x_9; -x_54 = x_93; -goto block_89; -} -else -{ -uint8_t x_94; -x_94 = !lean_is_exclusive(x_90); -if (x_94 == 0) -{ -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_90, 1); -x_96 = lean_ctor_get(x_90, 0); -lean_dec(x_96); -x_97 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__5; -lean_inc_ref(x_1); -x_98 = l_Lean_MessageData_ofExpr(x_1); -lean_ctor_set_tag(x_90, 7); -lean_ctor_set(x_90, 1, x_98); -lean_ctor_set(x_90, 0, x_97); -x_99 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_45, x_90, x_6, x_7, x_8, x_9, x_95); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec_ref(x_99); -x_46 = x_2; -x_47 = x_3; -x_48 = x_4; -x_49 = x_5; -x_50 = x_6; -x_51 = x_7; -x_52 = x_8; -x_53 = x_9; -x_54 = x_100; -goto block_89; -} -else -{ -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_101 = lean_ctor_get(x_90, 1); -lean_inc(x_101); -lean_dec(x_90); -x_102 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__5; -lean_inc_ref(x_1); -x_103 = l_Lean_MessageData_ofExpr(x_1); -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_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_45, x_104, x_6, x_7, x_8, x_9, x_101); -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -lean_dec_ref(x_105); -x_46 = x_2; -x_47 = x_3; -x_48 = x_4; -x_49 = x_5; -x_50 = x_6; -x_51 = x_7; -x_52 = x_8; -x_53 = x_9; -x_54 = x_106; -goto block_89; -} -} -block_89: -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = l_Lean_Expr_getAppFn(x_1); -x_56 = l_Lean_Expr_getAppNumArgs(x_1); -lean_inc(x_53); -lean_inc_ref(x_52); -lean_inc(x_51); -lean_inc_ref(x_50); -lean_inc(x_56); -lean_inc_ref(x_55); -x_57 = l_Lean_Meta_Grind_NormalizePattern_getPatternArgKinds(x_55, x_56, x_50, x_51, x_52, x_53, x_54); -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; uint8_t x_65; -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); -lean_inc_ref(x_48); -lean_inc_ref(x_46); -x_60 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_55, x_46, x_48, x_59); -lean_dec_ref(x_55); -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); -x_63 = lean_box(x_43); -lean_inc(x_58); -lean_inc_ref(x_1); -lean_inc(x_56); -x_64 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__0___boxed), 15, 5); -lean_closure_set(x_64, 0, x_56); -lean_closure_set(x_64, 1, x_1); -lean_closure_set(x_64, 2, x_58); -lean_closure_set(x_64, 3, x_63); -lean_closure_set(x_64, 4, x_45); -x_65 = lean_unbox(x_61); -lean_dec(x_61); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; -lean_dec_ref(x_64); -x_66 = lean_box(0); -x_67 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__0(x_56, x_1, x_58, x_43, x_45, x_66, x_46, x_47, x_48, x_49, x_50, x_51, x_52, x_53, x_62); -return x_67; -} -else -{ -lean_object* x_68; lean_object* x_69; uint8_t x_70; -lean_dec(x_56); -x_68 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_45, x_52, x_62); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_unbox(x_69); -lean_dec(x_69); -if (x_70 == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_68, 1); +x_70 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_69, x_12, x_13, x_14, x_15, x_41); +x_71 = lean_ctor_get(x_70, 1); lean_inc(x_71); -lean_dec_ref(x_68); -x_11 = x_64; -x_12 = x_58; -x_13 = x_46; -x_14 = x_47; -x_15 = x_48; -x_16 = x_49; -x_17 = x_50; -x_18 = x_51; -x_19 = x_52; -x_20 = x_53; -x_21 = x_71; -goto block_40; +lean_dec_ref(x_70); +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_9); +lean_inc_ref(x_8); +x_44 = x_8; +x_45 = x_9; +x_46 = x_10; +x_47 = x_11; +x_48 = x_12; +x_49 = x_13; +x_50 = x_14; +x_51 = x_15; +x_52 = x_71; +goto block_60; +} +} +block_60: +{ +uint8_t x_53; +x_53 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_43); +if (x_53 == 0) +{ +lean_object* x_54; +x_54 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_34, x_44, x_45, x_46, x_47, x_48, x_49, x_50, x_51, x_52); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec_ref(x_54); +x_17 = x_7; +x_18 = x_55; +goto block_22; } else { -uint8_t x_72; -x_72 = !lean_is_exclusive(x_68); -if (x_72 == 0) +uint8_t x_56; +lean_dec_ref(x_7); +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_68, 1); -x_74 = lean_ctor_get(x_68, 0); -lean_dec(x_74); -x_75 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__3; -lean_inc_ref(x_1); -x_76 = l_Lean_MessageData_ofExpr(x_1); -lean_ctor_set_tag(x_68, 7); -lean_ctor_set(x_68, 1, x_76); -lean_ctor_set(x_68, 0, x_75); -x_77 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_45, x_68, x_50, x_51, x_52, x_53, x_73); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec_ref(x_77); -x_11 = x_64; -x_12 = x_58; -x_13 = x_46; -x_14 = x_47; -x_15 = x_48; -x_16 = x_49; -x_17 = x_50; -x_18 = x_51; -x_19 = x_52; -x_20 = x_53; -x_21 = x_78; -goto block_40; +return x_54; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_79 = lean_ctor_get(x_68, 1); -lean_inc(x_79); -lean_dec(x_68); -x_80 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__3; -lean_inc_ref(x_1); -x_81 = l_Lean_MessageData_ofExpr(x_1); -x_82 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_45, x_82, x_50, x_51, x_52, x_53, x_79); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec_ref(x_83); -x_11 = x_64; -x_12 = x_58; -x_13 = x_46; -x_14 = x_47; -x_15 = x_48; -x_16 = x_49; -x_17 = x_50; -x_18 = x_51; -x_19 = x_52; -x_20 = x_53; -x_21 = x_84; -goto block_40; -} +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_54, 0); +x_58 = lean_ctor_get(x_54, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_54); +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 { -uint8_t x_85; -lean_dec(x_56); -lean_dec_ref(x_55); -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_ref(x_46); -lean_dec_ref(x_1); -x_85 = !lean_is_exclusive(x_57); -if (x_85 == 0) -{ -return x_57; +lean_dec(x_45); +lean_dec_ref(x_44); +lean_dec_ref(x_34); +x_17 = x_7; +x_18 = x_52; +goto block_22; +} +} } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_57, 0); -x_87 = lean_ctor_get(x_57, 1); -lean_inc(x_87); -lean_inc(x_86); +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; uint8_t x_97; +x_76 = lean_ctor_get(x_38, 0); +x_77 = lean_ctor_get(x_38, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_38); +x_78 = lean_array_fget(x_25, x_26); +lean_dec(x_26); +lean_dec_ref(x_25); +x_79 = lean_unbox(x_78); +x_97 = lean_unbox(x_76); +lean_dec(x_76); +if (x_97 == 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_9); +lean_inc_ref(x_8); +x_80 = x_8; +x_81 = x_9; +x_82 = x_10; +x_83 = x_11; +x_84 = x_12; +x_85 = x_13; +x_86 = x_14; +x_87 = x_15; +x_88 = x_77; +goto block_96; +} +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; uint8_t x_110; +x_98 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; +lean_inc_ref(x_34); +x_99 = l_Lean_MessageData_ofExpr(x_34); +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; +x_102 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +x_110 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_79); +if (x_110 == 0) +{ +lean_object* x_111; +x_111 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; +x_103 = x_111; +goto block_109; +} +else +{ +lean_object* x_112; +x_112 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; +x_103 = x_112; +goto block_109; +} +block_109: +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_104 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_104, 0, x_103); +x_105 = l_Lean_MessageData_ofFormat(x_104); +x_106 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_106, 0, x_102); +lean_ctor_set(x_106, 1, x_105); +lean_inc(x_2); +x_107 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_106, x_12, x_13, x_14, x_15, x_77); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec_ref(x_107); +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_9); +lean_inc_ref(x_8); +x_80 = x_8; +x_81 = x_9; +x_82 = x_10; +x_83 = x_11; +x_84 = x_12; +x_85 = x_13; +x_86 = x_14; +x_87 = x_15; +x_88 = x_108; +goto block_96; +} +} +block_96: +{ +uint8_t x_89; +x_89 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_79); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_34, x_80, x_81, x_82, x_83, x_84, x_85, x_86, x_87, x_88); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec_ref(x_90); +x_17 = x_7; +x_18 = x_91; +goto block_22; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec_ref(x_7); +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_92 = lean_ctor_get(x_90, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_94 = x_90; +} else { + lean_dec_ref(x_90); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} +} +else +{ +lean_dec(x_87); +lean_dec_ref(x_86); +lean_dec(x_85); +lean_dec_ref(x_84); +lean_dec(x_83); +lean_dec_ref(x_82); +lean_dec(x_81); +lean_dec_ref(x_80); +lean_dec_ref(x_34); +x_17 = x_7; +x_18 = x_88; +goto block_22; +} +} +} +} +else +{ +lean_dec_ref(x_34); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_7; +x_18 = x_16; +goto block_22; +} +} +else +{ +lean_dec_ref(x_37); +lean_dec_ref(x_34); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_7; +x_18 = x_16; +goto block_22; +} +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_7); +x_113 = lean_array_uget(x_4, x_6); +x_114 = lean_unsigned_to_nat(1u); +x_115 = lean_nat_add(x_26, x_114); +lean_inc_ref(x_25); +x_116 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_116, 0, x_25); +lean_ctor_set(x_116, 1, x_115); +lean_ctor_set(x_116, 2, x_27); +lean_inc_ref(x_113); +x_117 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_113); +if (lean_obj_tag(x_117) == 0) +{ +if (x_1 == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_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; uint8_t x_141; +lean_inc(x_2); +x_118 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_14, x_16); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_121 = x_118; +} else { + lean_dec_ref(x_118); + x_121 = lean_box(0); +} +x_122 = lean_array_fget(x_25, x_26); +lean_dec(x_26); +lean_dec_ref(x_25); +x_123 = lean_unbox(x_122); +x_141 = lean_unbox(x_119); +lean_dec(x_119); +if (x_141 == 0) +{ +lean_dec(x_121); +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_9); +lean_inc_ref(x_8); +x_124 = x_8; +x_125 = x_9; +x_126 = x_10; +x_127 = x_11; +x_128 = x_12; +x_129 = x_13; +x_130 = x_14; +x_131 = x_15; +x_132 = x_120; +goto block_140; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_154; +x_142 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; +lean_inc_ref(x_113); +x_143 = l_Lean_MessageData_ofExpr(x_113); +if (lean_is_scalar(x_121)) { + x_144 = lean_alloc_ctor(7, 2, 0); +} else { + x_144 = x_121; + lean_ctor_set_tag(x_144, 7); +} +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +x_145 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; +x_146 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +x_154 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_123); +if (x_154 == 0) +{ +lean_object* x_155; +x_155 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; +x_147 = x_155; +goto block_153; +} +else +{ +lean_object* x_156; +x_156 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; +x_147 = x_156; +goto block_153; +} +block_153: +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_148 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_148, 0, x_147); +x_149 = l_Lean_MessageData_ofFormat(x_148); +x_150 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_149); +lean_inc(x_2); +x_151 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_150, x_12, x_13, x_14, x_15, x_120); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec_ref(x_151); +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_9); +lean_inc_ref(x_8); +x_124 = x_8; +x_125 = x_9; +x_126 = x_10; +x_127 = x_11; +x_128 = x_12; +x_129 = x_13; +x_130 = x_14; +x_131 = x_15; +x_132 = x_152; +goto block_140; +} +} +block_140: +{ +uint8_t x_133; +x_133 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_123); +if (x_133 == 0) +{ +lean_object* x_134; +x_134 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_113, x_124, x_125, x_126, x_127, x_128, x_129, x_130, x_131, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec_ref(x_134); +x_17 = x_116; +x_18 = x_135; +goto block_22; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec_ref(x_116); +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_136 = lean_ctor_get(x_134, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_138 = x_134; +} else { + lean_dec_ref(x_134); + x_138 = lean_box(0); +} +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); +} else { + x_139 = x_138; +} +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; +} +} +else +{ +lean_dec(x_131); +lean_dec_ref(x_130); +lean_dec(x_129); +lean_dec_ref(x_128); +lean_dec(x_127); +lean_dec_ref(x_126); +lean_dec(x_125); +lean_dec_ref(x_124); +lean_dec_ref(x_113); +x_17 = x_116; +x_18 = x_132; +goto block_22; +} +} +} +else +{ +lean_dec_ref(x_113); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_116; +x_18 = x_16; +goto block_22; +} +} +else +{ +lean_dec_ref(x_117); +lean_dec_ref(x_113); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_116; +x_18 = x_16; +goto block_22; +} +} +} +} +block_22: +{ +size_t x_19; size_t x_20; +x_19 = 1; +x_20 = lean_usize_add(x_6, x_19); +x_6 = x_20; +x_7 = x_17; +x_16 = x_18; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0___redArg(uint8_t x_1, lean_object* x_2, uint8_t 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, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; uint8_t x_23; +x_23 = lean_usize_dec_lt(x_6, x_5); +if (x_23 == 0) +{ +lean_object* x_24; +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_7); +lean_ctor_set(x_24, 1, x_16); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_7, 0); +x_26 = lean_ctor_get(x_7, 1); +x_27 = lean_ctor_get(x_7, 2); +x_28 = lean_nat_dec_lt(x_26, x_27); +if (x_28 == 0) +{ +lean_object* x_29; +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_7); +lean_ctor_set(x_29, 1, x_16); +return x_29; +} +else +{ +uint8_t x_30; +lean_inc(x_27); +lean_inc(x_26); +lean_inc_ref(x_25); +x_30 = !lean_is_exclusive(x_7); +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; +x_31 = lean_ctor_get(x_7, 2); +lean_dec(x_31); +x_32 = lean_ctor_get(x_7, 1); +lean_dec(x_32); +x_33 = lean_ctor_get(x_7, 0); +lean_dec(x_33); +x_34 = lean_array_uget(x_4, x_6); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_26, x_35); +lean_inc_ref(x_25); +lean_ctor_set(x_7, 1, x_36); +lean_inc_ref(x_34); +x_37 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_34); +if (lean_obj_tag(x_37) == 0) +{ +if (x_1 == 0) +{ +lean_object* x_38; uint8_t x_39; +lean_inc(x_2); +x_38 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_14, x_16); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 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_61; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +x_42 = lean_array_fget(x_25, x_26); +lean_dec(x_26); +lean_dec_ref(x_25); +x_43 = lean_unbox(x_42); +x_61 = lean_unbox(x_40); +lean_dec(x_40); +if (x_61 == 0) +{ +lean_free_object(x_38); +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_9); +lean_inc_ref(x_8); +x_44 = x_8; +x_45 = x_9; +x_46 = x_10; +x_47 = x_11; +x_48 = x_12; +x_49 = x_13; +x_50 = x_14; +x_51 = x_15; +x_52 = x_41; +goto block_60; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_73; +x_62 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; +lean_inc_ref(x_34); +x_63 = l_Lean_MessageData_ofExpr(x_34); +lean_ctor_set_tag(x_38, 7); +lean_ctor_set(x_38, 1, x_63); +lean_ctor_set(x_38, 0, x_62); +x_64 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_38); +lean_ctor_set(x_65, 1, x_64); +x_73 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_43); +if (x_73 == 0) +{ +lean_object* x_74; +x_74 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; +x_66 = x_74; +goto block_72; +} +else +{ +lean_object* x_75; +x_75 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; +x_66 = x_75; +goto block_72; +} +block_72: +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_67 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_67, 0, x_66); +x_68 = l_Lean_MessageData_ofFormat(x_67); +x_69 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_69, 0, x_65); +lean_ctor_set(x_69, 1, x_68); +lean_inc(x_2); +x_70 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_69, x_12, x_13, x_14, x_15, x_41); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec_ref(x_70); +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_9); +lean_inc_ref(x_8); +x_44 = x_8; +x_45 = x_9; +x_46 = x_10; +x_47 = x_11; +x_48 = x_12; +x_49 = x_13; +x_50 = x_14; +x_51 = x_15; +x_52 = x_71; +goto block_60; +} +} +block_60: +{ +uint8_t x_53; +x_53 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_43); +if (x_53 == 0) +{ +lean_object* x_54; +x_54 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_34, x_44, x_45, x_46, x_47, x_48, x_49, x_50, x_51, x_52); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec_ref(x_54); +x_17 = x_7; +x_18 = x_55; +goto block_22; +} +else +{ +uint8_t x_56; +lean_dec_ref(x_7); +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) +{ +return x_54; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_54, 0); +x_58 = lean_ctor_get(x_54, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_54); +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_dec(x_51); +lean_dec_ref(x_50); +lean_dec(x_49); +lean_dec_ref(x_48); +lean_dec(x_47); +lean_dec_ref(x_46); +lean_dec(x_45); +lean_dec_ref(x_44); +lean_dec_ref(x_34); +x_17 = x_7; +x_18 = x_52; +goto block_22; +} +} +} +else +{ +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; uint8_t x_97; +x_76 = lean_ctor_get(x_38, 0); +x_77 = lean_ctor_get(x_38, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_38); +x_78 = lean_array_fget(x_25, x_26); +lean_dec(x_26); +lean_dec_ref(x_25); +x_79 = lean_unbox(x_78); +x_97 = lean_unbox(x_76); +lean_dec(x_76); +if (x_97 == 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_9); +lean_inc_ref(x_8); +x_80 = x_8; +x_81 = x_9; +x_82 = x_10; +x_83 = x_11; +x_84 = x_12; +x_85 = x_13; +x_86 = x_14; +x_87 = x_15; +x_88 = x_77; +goto block_96; +} +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; uint8_t x_110; +x_98 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; +lean_inc_ref(x_34); +x_99 = l_Lean_MessageData_ofExpr(x_34); +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; +x_102 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +x_110 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_79); +if (x_110 == 0) +{ +lean_object* x_111; +x_111 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; +x_103 = x_111; +goto block_109; +} +else +{ +lean_object* x_112; +x_112 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; +x_103 = x_112; +goto block_109; +} +block_109: +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_104 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_104, 0, x_103); +x_105 = l_Lean_MessageData_ofFormat(x_104); +x_106 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_106, 0, x_102); +lean_ctor_set(x_106, 1, x_105); +lean_inc(x_2); +x_107 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_106, x_12, x_13, x_14, x_15, x_77); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec_ref(x_107); +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_9); +lean_inc_ref(x_8); +x_80 = x_8; +x_81 = x_9; +x_82 = x_10; +x_83 = x_11; +x_84 = x_12; +x_85 = x_13; +x_86 = x_14; +x_87 = x_15; +x_88 = x_108; +goto block_96; +} +} +block_96: +{ +uint8_t x_89; +x_89 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_79); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_34, x_80, x_81, x_82, x_83, x_84, x_85, x_86, x_87, x_88); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec_ref(x_90); +x_17 = x_7; +x_18 = x_91; +goto block_22; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec_ref(x_7); +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_92 = lean_ctor_get(x_90, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_94 = x_90; +} else { + lean_dec_ref(x_90); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} +} +else +{ +lean_dec(x_87); +lean_dec_ref(x_86); +lean_dec(x_85); +lean_dec_ref(x_84); +lean_dec(x_83); +lean_dec_ref(x_82); +lean_dec(x_81); +lean_dec_ref(x_80); +lean_dec_ref(x_34); +x_17 = x_7; +x_18 = x_88; +goto block_22; +} +} +} +} +else +{ +lean_dec_ref(x_34); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_7; +x_18 = x_16; +goto block_22; +} +} +else +{ +lean_dec_ref(x_37); +lean_dec_ref(x_34); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_7; +x_18 = x_16; +goto block_22; +} +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_7); +x_113 = lean_array_uget(x_4, x_6); +x_114 = lean_unsigned_to_nat(1u); +x_115 = lean_nat_add(x_26, x_114); +lean_inc_ref(x_25); +x_116 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_116, 0, x_25); +lean_ctor_set(x_116, 1, x_115); +lean_ctor_set(x_116, 2, x_27); +lean_inc_ref(x_113); +x_117 = l_Lean_Meta_Grind_isOffsetPattern_x3f(x_113); +if (lean_obj_tag(x_117) == 0) +{ +if (x_1 == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_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; uint8_t x_141; +lean_inc(x_2); +x_118 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_2, x_14, x_16); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_121 = x_118; +} else { + lean_dec_ref(x_118); + x_121 = lean_box(0); +} +x_122 = lean_array_fget(x_25, x_26); +lean_dec(x_26); +lean_dec_ref(x_25); +x_123 = lean_unbox(x_122); +x_141 = lean_unbox(x_119); +lean_dec(x_119); +if (x_141 == 0) +{ +lean_dec(x_121); +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_9); +lean_inc_ref(x_8); +x_124 = x_8; +x_125 = x_9; +x_126 = x_10; +x_127 = x_11; +x_128 = x_12; +x_129 = x_13; +x_130 = x_14; +x_131 = x_15; +x_132 = x_120; +goto block_140; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_154; +x_142 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__1; +lean_inc_ref(x_113); +x_143 = l_Lean_MessageData_ofExpr(x_113); +if (lean_is_scalar(x_121)) { + x_144 = lean_alloc_ctor(7, 2, 0); +} else { + x_144 = x_121; + lean_ctor_set_tag(x_144, 7); +} +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +x_145 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect_spec__0_spec__0___closed__3; +x_146 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +x_154 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_123); +if (x_154 == 0) +{ +lean_object* x_155; +x_155 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__12; +x_147 = x_155; +goto block_153; +} +else +{ +lean_object* x_156; +x_156 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__13; +x_147 = x_156; +goto block_153; +} +block_153: +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_148 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_148, 0, x_147); +x_149 = l_Lean_MessageData_ofFormat(x_148); +x_150 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_149); +lean_inc(x_2); +x_151 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_2, x_150, x_12, x_13, x_14, x_15, x_120); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec_ref(x_151); +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_9); +lean_inc_ref(x_8); +x_124 = x_8; +x_125 = x_9; +x_126 = x_10; +x_127 = x_11; +x_128 = x_12; +x_129 = x_13; +x_130 = x_14; +x_131 = x_15; +x_132 = x_152; +goto block_140; +} +} +block_140: +{ +uint8_t x_133; +x_133 = l_Lean_Meta_Grind_NormalizePattern_PatternArgKind_isSupport(x_123); +if (x_133 == 0) +{ +lean_object* x_134; +x_134 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_113, x_124, x_125, x_126, x_127, x_128, x_129, x_130, x_131, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec_ref(x_134); +x_17 = x_116; +x_18 = x_135; +goto block_22; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec_ref(x_116); +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_9); +lean_dec_ref(x_8); +lean_dec(x_2); +x_136 = lean_ctor_get(x_134, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_138 = x_134; +} else { + lean_dec_ref(x_134); + x_138 = lean_box(0); +} +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); +} else { + x_139 = x_138; +} +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; +} +} +else +{ +lean_dec(x_131); +lean_dec_ref(x_130); +lean_dec(x_129); +lean_dec_ref(x_128); +lean_dec(x_127); +lean_dec_ref(x_126); +lean_dec(x_125); +lean_dec_ref(x_124); +lean_dec_ref(x_113); +x_17 = x_116; +x_18 = x_132; +goto block_22; +} +} +} +else +{ +lean_dec_ref(x_113); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_116; +x_18 = x_16; +goto block_22; +} +} +else +{ +lean_dec_ref(x_117); +lean_dec_ref(x_113); +lean_dec(x_26); +lean_dec_ref(x_25); +x_17 = x_116; +x_18 = x_16; +goto block_22; +} +} +} +} +block_22: +{ +size_t x_19; size_t x_20; lean_object* x_21; +x_19 = 1; +x_20 = lean_usize_add(x_6, x_19); +x_21 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_20, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_18); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0(uint8_t 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, size_t x_11, size_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) { +_start: +{ +lean_object* x_23; +x_23 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0___redArg(x_1, x_2, x_3, 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); +return x_23; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +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; size_t x_25; size_t x_26; lean_object* x_27; +x_17 = l___private_Lean_Meta_Transform_0__Lean_Core_transform_visit___at___Lean_Core_transform___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets_spec__0_spec__0___lam__1___closed__0; +lean_inc(x_1); +x_18 = lean_mk_array(x_1, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_1, x_19); +lean_dec(x_1); +x_21 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_18, x_20); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_array_get_size(x_3); +x_24 = l_Array_toSubarray___redArg(x_3, x_22, x_23); +x_25 = lean_array_size(x_21); +x_26 = 0; +x_27 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0___redArg(x_4, x_5, x_6, x_21, x_25, x_26, x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec_ref(x_21); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +x_30 = lean_box(0); +lean_ctor_set(x_27, 0, x_30); +return x_27; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_27, 1); +lean_inc(x_31); +lean_dec(x_27); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +else +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_27); +if (x_34 == 0) +{ +return x_27; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_27, 0); +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_27); +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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(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) { +_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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_st_ref_get(x_4, x_11); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get_uint8(x_43, sizeof(void*)*1); +lean_dec(x_43); +if (x_44 == 0) +{ +switch (lean_obj_tag(x_2)) { +case 5: +{ +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_92; lean_object* x_93; uint8_t x_94; +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_dec_ref(x_42); +x_46 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_92 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_46, x_9, x_45); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_unbox(x_93); +lean_dec(x_93); +if (x_94 == 0) +{ +lean_object* x_95; +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +lean_dec_ref(x_92); +x_47 = x_3; +x_48 = x_4; +x_49 = x_5; +x_50 = x_6; +x_51 = x_7; +x_52 = x_8; +x_53 = x_9; +x_54 = x_10; +x_55 = x_95; +goto block_91; +} +else +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_92); +if (x_96 == 0) +{ +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_97 = lean_ctor_get(x_92, 1); +x_98 = lean_ctor_get(x_92, 0); +lean_dec(x_98); +x_99 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__5; +lean_inc_ref(x_2); +x_100 = l_Lean_MessageData_ofExpr(x_2); +lean_ctor_set_tag(x_92, 7); +lean_ctor_set(x_92, 1, x_100); +lean_ctor_set(x_92, 0, x_99); +x_101 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_46, x_92, x_7, x_8, x_9, x_10, x_97); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec_ref(x_101); +x_47 = x_3; +x_48 = x_4; +x_49 = x_5; +x_50 = x_6; +x_51 = x_7; +x_52 = x_8; +x_53 = x_9; +x_54 = x_10; +x_55 = x_102; +goto block_91; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_103 = lean_ctor_get(x_92, 1); +lean_inc(x_103); +lean_dec(x_92); +x_104 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__5; +lean_inc_ref(x_2); +x_105 = l_Lean_MessageData_ofExpr(x_2); +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_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_46, x_106, x_7, x_8, x_9, x_10, x_103); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec_ref(x_107); +x_47 = x_3; +x_48 = x_4; +x_49 = x_5; +x_50 = x_6; +x_51 = x_7; +x_52 = x_8; +x_53 = x_9; +x_54 = x_10; +x_55 = x_108; +goto block_91; +} +} +block_91: +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = l_Lean_Expr_getAppFn(x_2); +x_57 = l_Lean_Expr_getAppNumArgs(x_2); +lean_inc(x_54); +lean_inc_ref(x_53); +lean_inc(x_52); +lean_inc_ref(x_51); +lean_inc(x_57); +lean_inc_ref(x_56); +x_58 = l_Lean_Meta_Grind_NormalizePattern_getPatternArgKinds(x_56, x_57, x_51, x_52, x_53, x_54, x_55); +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; lean_object* x_66; uint8_t x_67; +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_ref(x_49); +lean_inc_ref(x_47); +x_61 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate___redArg(x_56, x_47, x_49, x_60); +lean_dec_ref(x_56); +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); +x_64 = lean_box(x_44); +x_65 = lean_box(x_1); +lean_inc(x_59); +lean_inc_ref(x_2); +lean_inc(x_57); +x_66 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___lam__0___boxed), 16, 6); +lean_closure_set(x_66, 0, x_57); +lean_closure_set(x_66, 1, x_2); +lean_closure_set(x_66, 2, x_59); +lean_closure_set(x_66, 3, x_64); +lean_closure_set(x_66, 4, x_46); +lean_closure_set(x_66, 5, x_65); +x_67 = lean_unbox(x_62); +lean_dec(x_62); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +lean_dec_ref(x_66); +x_68 = lean_box(0); +x_69 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___lam__0(x_57, x_2, x_59, x_44, x_46, x_1, x_68, x_47, x_48, x_49, x_50, x_51, x_52, x_53, x_54, x_63); +return x_69; +} +else +{ +lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_dec(x_57); -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; +x_70 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_46, x_53, x_63); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_unbox(x_71); +lean_dec(x_71); +if (x_72 == 0) +{ +lean_object* x_73; +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec_ref(x_70); +x_12 = x_66; +x_13 = x_59; +x_14 = x_47; +x_15 = x_48; +x_16 = x_49; +x_17 = x_50; +x_18 = x_51; +x_19 = x_52; +x_20 = x_53; +x_21 = x_54; +x_22 = x_73; +goto block_41; +} +else +{ +uint8_t x_74; +x_74 = !lean_is_exclusive(x_70); +if (x_74 == 0) +{ +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_75 = lean_ctor_get(x_70, 1); +x_76 = lean_ctor_get(x_70, 0); +lean_dec(x_76); +x_77 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__3; +lean_inc_ref(x_2); +x_78 = l_Lean_MessageData_ofExpr(x_2); +lean_ctor_set_tag(x_70, 7); +lean_ctor_set(x_70, 1, x_78); +lean_ctor_set(x_70, 0, x_77); +x_79 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_46, x_70, x_51, x_52, x_53, x_54, x_75); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +lean_dec_ref(x_79); +x_12 = x_66; +x_13 = x_59; +x_14 = x_47; +x_15 = x_48; +x_16 = x_49; +x_17 = x_50; +x_18 = x_51; +x_19 = x_52; +x_20 = x_53; +x_21 = x_54; +x_22 = x_80; +goto block_41; +} +else +{ +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_81 = lean_ctor_get(x_70, 1); +lean_inc(x_81); +lean_dec(x_70); +x_82 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__3; +lean_inc_ref(x_2); +x_83 = l_Lean_MessageData_ofExpr(x_2); +x_84 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +x_85 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_46, x_84, x_51, x_52, x_53, x_54, x_81); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec_ref(x_85); +x_12 = x_66; +x_13 = x_59; +x_14 = x_47; +x_15 = x_48; +x_16 = x_49; +x_17 = x_50; +x_18 = x_51; +x_19 = x_52; +x_20 = x_53; +x_21 = x_54; +x_22 = x_86; +goto block_41; +} +} +} +} +else +{ +uint8_t x_87; +lean_dec(x_57); +lean_dec_ref(x_56); +lean_dec(x_54); +lean_dec_ref(x_53); +lean_dec(x_52); +lean_dec_ref(x_51); +lean_dec(x_50); +lean_dec_ref(x_49); +lean_dec(x_48); +lean_dec_ref(x_47); +lean_dec_ref(x_2); +x_87 = !lean_is_exclusive(x_58); +if (x_87 == 0) +{ +return x_58; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_58, 0); +x_89 = lean_ctor_get(x_58, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_58); +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; } } } } case 7: { -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_119; uint8_t x_128; -x_107 = lean_ctor_get(x_41, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_108 = x_41; +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_121; uint8_t x_130; +x_109 = lean_ctor_get(x_42, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_110 = x_42; } else { - lean_dec_ref(x_41); - x_108 = lean_box(0); + lean_dec_ref(x_42); + x_110 = lean_box(0); } -x_109 = lean_ctor_get(x_1, 1); -lean_inc_ref(x_109); -x_110 = lean_ctor_get(x_1, 2); -lean_inc_ref(x_110); -x_128 = l_Lean_Expr_isArrow(x_1); -lean_dec_ref(x_1); -if (x_128 == 0) -{ -x_111 = x_128; -x_112 = x_107; -goto block_118; -} -else -{ -lean_object* x_129; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc_ref(x_109); -x_129 = l_Lean_Meta_isProp(x_109, x_6, x_7, x_8, x_9, x_107); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; uint8_t x_131; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_unbox(x_130); -lean_dec(x_130); -if (x_131 == 0) -{ -x_119 = x_129; -goto block_127; -} -else -{ -lean_object* x_132; lean_object* x_133; -x_132 = lean_ctor_get(x_129, 1); -lean_inc(x_132); -lean_dec_ref(x_129); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc_ref(x_110); -x_133 = l_Lean_Meta_isProp(x_110, x_6, x_7, x_8, x_9, x_132); -x_119 = x_133; -goto block_127; -} -} -else -{ -x_119 = x_129; -goto block_127; -} -} -block_118: -{ -if (x_111 == 0) -{ -lean_object* x_113; lean_object* x_114; -lean_dec_ref(x_110); -lean_dec_ref(x_109); -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_3); +x_111 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_111); +x_112 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_112); +x_130 = l_Lean_Expr_isArrow(x_2); lean_dec_ref(x_2); -x_113 = lean_box(0); -if (lean_is_scalar(x_108)) { - x_114 = lean_alloc_ctor(0, 2, 0); -} else { - x_114 = x_108; -} -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -return x_114; +if (x_130 == 0) +{ +x_113 = x_130; +x_114 = x_109; +goto block_120; } else { -lean_object* x_115; -lean_dec(x_108); -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_3); -lean_inc_ref(x_2); -x_115 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_109, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_112); -if (lean_obj_tag(x_115) == 0) +lean_object* x_131; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_111); +x_131 = l_Lean_Meta_isProp(x_111, x_7, x_8, x_9, x_10, x_109); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_116; -x_116 = lean_ctor_get(x_115, 1); -lean_inc(x_116); -lean_dec_ref(x_115); -x_1 = x_110; -x_10 = x_116; +lean_object* x_132; uint8_t x_133; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_unbox(x_132); +lean_dec(x_132); +if (x_133 == 0) +{ +x_121 = x_131; +goto block_129; +} +else +{ +lean_object* x_134; lean_object* x_135; +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_dec_ref(x_131); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_112); +x_135 = l_Lean_Meta_isProp(x_112, x_7, x_8, x_9, x_10, x_134); +x_121 = x_135; +goto block_129; +} +} +else +{ +x_121 = x_131; +goto block_129; +} +} +block_120: +{ +if (x_113 == 0) +{ +lean_object* x_115; lean_object* x_116; +lean_dec_ref(x_112); +lean_dec_ref(x_111); +lean_dec(x_10); +lean_dec_ref(x_9); +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); +x_115 = lean_box(0); +if (lean_is_scalar(x_110)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_110; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +return x_116; +} +else +{ +lean_object* x_117; +lean_dec(x_110); +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_4); +lean_inc_ref(x_3); +x_117 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_1, x_111, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_114); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec_ref(x_117); +x_2 = x_112; +x_11 = x_118; goto _start; } else { -lean_dec_ref(x_110); -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_3); -lean_dec_ref(x_2); -return x_115; +lean_dec_ref(x_112); +lean_dec(x_10); +lean_dec_ref(x_9); +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); +return x_117; } } } -block_127: +block_129: { -if (lean_obj_tag(x_119) == 0) +if (lean_obj_tag(x_121) == 0) { -lean_object* x_120; lean_object* x_121; uint8_t x_122; -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); -x_122 = lean_unbox(x_120); -lean_dec(x_120); -x_111 = x_122; -x_112 = x_121; -goto block_118; +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec_ref(x_121); +x_124 = lean_unbox(x_122); +lean_dec(x_122); +x_113 = x_124; +x_114 = x_123; +goto block_120; } else { -uint8_t x_123; -lean_dec_ref(x_110); -lean_dec_ref(x_109); -lean_dec(x_108); -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_3); -lean_dec_ref(x_2); -x_123 = !lean_is_exclusive(x_119); -if (x_123 == 0) +uint8_t x_125; +lean_dec_ref(x_112); +lean_dec_ref(x_111); +lean_dec(x_110); +lean_dec(x_10); +lean_dec_ref(x_9); +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); +x_125 = !lean_is_exclusive(x_121); +if (x_125 == 0) { -return x_119; +return x_121; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_119, 0); -x_125 = lean_ctor_get(x_119, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_119); -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; +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_121, 0); +x_127 = lean_ctor_get(x_121, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_121); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; } } } } default: { -uint8_t x_134; -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_3); +uint8_t x_136; +lean_dec(x_10); +lean_dec_ref(x_9); +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); -lean_dec_ref(x_1); -x_134 = !lean_is_exclusive(x_41); -if (x_134 == 0) +x_136 = !lean_is_exclusive(x_42); +if (x_136 == 0) { -lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_41, 0); -lean_dec(x_135); -x_136 = lean_box(0); -lean_ctor_set(x_41, 0, x_136); -return x_41; -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_41, 1); -lean_inc(x_137); -lean_dec(x_41); +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_42, 0); +lean_dec(x_137); x_138 = lean_box(0); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_137); -return x_139; +lean_ctor_set(x_42, 0, x_138); +return x_42; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_42, 1); +lean_inc(x_139); +lean_dec(x_42); +x_140 = lean_box(0); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_139); +return x_141; } } } } else { -uint8_t x_140; -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_3); +uint8_t x_142; +lean_dec(x_10); +lean_dec_ref(x_9); +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); -lean_dec_ref(x_1); -x_140 = !lean_is_exclusive(x_41); -if (x_140 == 0) +x_142 = !lean_is_exclusive(x_42); +if (x_142 == 0) { -lean_object* x_141; lean_object* x_142; -x_141 = lean_ctor_get(x_41, 0); -lean_dec(x_141); -x_142 = lean_box(0); -lean_ctor_set(x_41, 0, x_142); -return x_41; +lean_object* x_143; lean_object* x_144; +x_143 = lean_ctor_get(x_42, 0); +lean_dec(x_143); +x_144 = lean_box(0); +lean_ctor_set(x_42, 0, x_144); +return x_42; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_41, 1); -lean_inc(x_143); -lean_dec(x_41); -x_144 = lean_box(0); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_143); -return x_145; +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_42, 1); +lean_inc(x_145); +lean_dec(x_42); +x_146 = lean_box(0); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_145); +return x_147; } } -block_40: -{ -lean_object* x_22; -lean_inc(x_20); -lean_inc_ref(x_19); -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_22 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -if (lean_obj_tag(x_22) == 0) +block_41: { lean_object* x_23; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); +lean_inc(x_21); +lean_inc_ref(x_20); +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_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_normalizePattern_x3f(x_2, x_13, x_1, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); if (lean_obj_tag(x_23) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_22, 1); +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec_ref(x_22); -x_25 = lean_box(0); -x_26 = lean_apply_10(x_11, x_25, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_24); -return x_26; +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec_ref(x_23); +x_26 = lean_box(0); +x_27 = lean_apply_10(x_12, x_26, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_25); +return x_27; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec_ref(x_11); -x_27 = lean_ctor_get(x_22, 1); -lean_inc(x_27); -lean_dec_ref(x_22); -x_28 = lean_ctor_get(x_23, 0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec_ref(x_12); +x_28 = lean_ctor_get(x_23, 1); lean_inc(x_28); lean_dec_ref(x_23); -x_29 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern(x_28, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); -lean_dec(x_16); -lean_dec_ref(x_15); -lean_dec(x_14); -if (lean_obj_tag(x_29) == 0) +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +lean_dec_ref(x_24); +x_30 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern(x_29, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_28); +lean_dec(x_17); +lean_dec_ref(x_16); +lean_dec(x_15); +if (lean_obj_tag(x_30) == 0) { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_29, 0); -lean_dec(x_31); -x_32 = lean_box(0); -lean_ctor_set(x_29, 0, x_32); -return x_29; +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +x_33 = lean_box(0); +lean_ctor_set(x_30, 0, x_33); +return x_30; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_29, 1); -lean_inc(x_33); -lean_dec(x_29); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +lean_dec(x_30); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; } } else { -return x_29; +return x_30; } } } else { -uint8_t x_36; -lean_dec(x_20); -lean_dec_ref(x_19); -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_11); -x_36 = !lean_is_exclusive(x_22); -if (x_36 == 0) +uint8_t x_37; +lean_dec(x_21); +lean_dec_ref(x_20); +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_12); +x_37 = !lean_is_exclusive(x_23); +if (x_37 == 0) { -return x_22; +return x_23; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_22, 0); -x_38 = lean_ctor_get(x_22, 1); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_23, 0); +x_39 = lean_ctor_get(x_23, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_22); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; +lean_dec(x_23); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_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, 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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_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, 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: { -uint8_t x_16; size_t x_17; size_t x_18; lean_object* x_19; -x_16 = lean_unbox(x_1); -x_17 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_18 = lean_unbox_usize(x_5); +uint8_t x_17; uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; +x_17 = lean_unbox(x_1); +x_18 = lean_unbox(x_3); +x_19 = lean_unbox_usize(x_5); lean_dec(x_5); -x_19 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0_spec__0(x_16, x_2, x_3, x_17, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec_ref(x_3); -return x_19; +x_20 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0_spec__0(x_17, x_2, x_18, x_4, x_19, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec_ref(x_4); +return x_21; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_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, 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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_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, 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: { -uint8_t x_16; size_t x_17; size_t x_18; lean_object* x_19; -x_16 = lean_unbox(x_1); -x_17 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_18 = lean_unbox_usize(x_5); +uint8_t x_17; uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; +x_17 = lean_unbox(x_1); +x_18 = lean_unbox(x_3); +x_19 = lean_unbox_usize(x_5); lean_dec(x_5); -x_19 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___redArg(x_16, x_2, x_3, x_17, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec_ref(x_3); -return x_19; +x_20 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0___redArg(x_17, x_2, x_18, x_4, x_19, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec_ref(x_4); +return x_21; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -45416,32 +45414,61 @@ 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]; _start: { -uint8_t x_22; size_t x_23; size_t x_24; lean_object* x_25; -x_22 = lean_unbox(x_1); -x_23 = lean_unbox_usize(x_10); -lean_dec(x_10); -x_24 = lean_unbox_usize(x_11); +uint8_t x_23; uint8_t x_24; size_t x_25; size_t x_26; lean_object* x_27; +x_23 = lean_unbox(x_1); +x_24 = lean_unbox(x_3); +x_25 = lean_unbox_usize(x_11); lean_dec(x_11); -x_25 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23, x_24, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_26 = lean_unbox_usize(x_12); +lean_dec(x_12); +x_27 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go_spec__0(x_23, x_2, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25, x_26, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); +lean_dec_ref(x_10); lean_dec_ref(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_6); lean_dec_ref(x_5); lean_dec_ref(x_4); -lean_dec_ref(x_3); -return x_25; +return x_27; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_object* x_15) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___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_object* x_15, lean_object* x_16) { _start: { -uint8_t x_16; lean_object* x_17; -x_16 = lean_unbox(x_4); -x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__0(x_1, x_2, x_3, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_17; +uint8_t x_17; uint8_t x_18; lean_object* x_19; +x_17 = lean_unbox(x_4); +x_18 = lean_unbox(x_6); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___lam__0(x_1, x_2, x_3, x_17, x_5, x_18, x_7, x_8, 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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go___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_1); +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_12, x_2, x_3, 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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(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, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_2, x_1, 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_2); +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; } } LEAN_EXPORT lean_object* l_Lean_Option_register___at___Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem_2192377466____hygCtx___hyg_4__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -45696,55 +45723,54 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(lean_object* x_1, lean_object* x_2, uint8_t 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, lean_object* x_15, lean_object* x_16) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, size_t x_6, size_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_object* x_16, lean_object* x_17) { _start: { -lean_object* x_17; lean_object* x_18; uint8_t x_55; -x_55 = lean_usize_dec_lt(x_6, x_5); -if (x_55 == 0) +lean_object* x_18; lean_object* x_19; uint8_t x_56; +x_56 = lean_usize_dec_lt(x_7, x_6); +if (x_56 == 0) { -lean_object* x_56; -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_9); -lean_dec_ref(x_8); +lean_object* x_57; +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); lean_dec_ref(x_1); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_7); -lean_ctor_set(x_56, 1, x_16); -return x_56; +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_8); +lean_ctor_set(x_57, 1, x_17); +return x_57; } else { -lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec_ref(x_7); -x_57 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_58 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_57, x_14, x_16); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_dec_ref(x_8); +x_58 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_59 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_58, x_15, x_17); +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 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; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_94; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -x_62 = lean_array_uget(x_4, x_6); -x_94 = lean_unbox(x_60); -lean_dec(x_60); -if (x_94 == 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; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_95; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); +x_63 = lean_array_uget(x_5, x_7); +x_95 = lean_unbox(x_61); +lean_dec(x_61); +if (x_95 == 0) { -lean_free_object(x_58); -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_9); -lean_inc_ref(x_8); -x_63 = x_8; +lean_free_object(x_59); +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); x_64 = x_9; x_65 = x_10; x_66 = x_11; @@ -45752,253 +45778,221 @@ x_67 = x_12; x_68 = x_13; x_69 = x_14; x_70 = x_15; -x_71 = x_61; -goto block_93; +x_71 = x_16; +x_72 = x_62; +goto block_94; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; -lean_inc_ref(x_62); -x_96 = l_Lean_MessageData_ofExpr(x_62); -lean_ctor_set_tag(x_58, 7); -lean_ctor_set(x_58, 1, x_96); -lean_ctor_set(x_58, 0, x_95); -x_97 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_57, x_58, x_12, x_13, x_14, x_15, x_61); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec_ref(x_97); -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_9); -lean_inc_ref(x_8); -x_63 = x_8; -x_64 = x_9; -x_65 = x_10; -x_66 = x_11; -x_67 = x_12; -x_68 = x_13; -x_69 = x_14; -x_70 = x_15; -x_71 = x_98; -goto block_93; -} -block_93: -{ -lean_object* x_72; -lean_inc(x_70); -lean_inc_ref(x_69); -lean_inc(x_68); -lean_inc_ref(x_67); -x_72 = l_Lean_Meta_Grind_preprocessPattern(x_62, x_55, x_67, x_68, x_69, x_70, x_71); -if (lean_obj_tag(x_72) == 0) -{ -if (x_3 == 0) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -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); -lean_inc(x_64); -x_75 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_73, x_63, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_74); -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_17 = x_64; -x_18 = x_76; -goto block_54; -} -else -{ -uint8_t x_77; -lean_dec(x_64); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -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; -} -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_72, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_72, 1); -lean_inc(x_82); -lean_dec_ref(x_72); -lean_inc(x_64); -x_83 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_81, x_63, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_82); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec_ref(x_83); -x_17 = x_64; -x_18 = x_84; -goto block_54; -} -else -{ -uint8_t x_85; -lean_dec(x_64); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_85 = !lean_is_exclusive(x_83); -if (x_85 == 0) -{ -return x_83; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_83, 0); -x_87 = lean_ctor_get(x_83, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_83); -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_70); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec_ref(x_67); -lean_dec(x_66); -lean_dec_ref(x_65); -lean_dec(x_64); -lean_dec_ref(x_63); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_89 = !lean_is_exclusive(x_72); -if (x_89 == 0) -{ -return x_72; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_72, 0); -x_91 = lean_ctor_get(x_72, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_72); -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 -{ -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; uint8_t x_133; -x_99 = lean_ctor_get(x_58, 0); -x_100 = lean_ctor_get(x_58, 1); -lean_inc(x_100); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_96 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; +lean_inc_ref(x_63); +x_97 = l_Lean_MessageData_ofExpr(x_63); +lean_ctor_set_tag(x_59, 7); +lean_ctor_set(x_59, 1, x_97); +lean_ctor_set(x_59, 0, x_96); +x_98 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_58, x_59, x_13, x_14, x_15, x_16, x_62); +x_99 = lean_ctor_get(x_98, 1); lean_inc(x_99); -lean_dec(x_58); -x_101 = lean_array_uget(x_4, x_6); -x_133 = lean_unbox(x_99); -lean_dec(x_99); -if (x_133 == 0) +lean_dec_ref(x_98); +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); +x_64 = x_9; +x_65 = x_10; +x_66 = x_11; +x_67 = x_12; +x_68 = x_13; +x_69 = x_14; +x_70 = x_15; +x_71 = x_16; +x_72 = x_99; +goto block_94; +} +block_94: { -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_9); -lean_inc_ref(x_8); -x_102 = x_8; -x_103 = x_9; -x_104 = x_10; -x_105 = x_11; -x_106 = x_12; -x_107 = x_13; -x_108 = x_14; -x_109 = x_15; -x_110 = x_100; -goto block_132; +lean_object* x_73; +lean_inc(x_71); +lean_inc_ref(x_70); +lean_inc(x_69); +lean_inc_ref(x_68); +x_73 = l_Lean_Meta_Grind_preprocessPattern(x_63, x_56, x_68, x_69, x_70, x_71, x_72); +if (lean_obj_tag(x_73) == 0) +{ +if (x_4 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec_ref(x_73); +lean_inc(x_65); +x_76 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_74, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_71, x_75); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec_ref(x_76); +x_18 = x_65; +x_19 = x_77; +goto block_55; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_134 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; -lean_inc_ref(x_101); -x_135 = l_Lean_MessageData_ofExpr(x_101); -x_136 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -x_137 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_57, x_136, x_12, x_13, x_14, x_15, x_100); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec_ref(x_137); -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_9); -lean_inc_ref(x_8); -x_102 = x_8; +uint8_t x_78; +lean_dec(x_65); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_78 = !lean_is_exclusive(x_76); +if (x_78 == 0) +{ +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_76, 0); +x_80 = lean_ctor_get(x_76, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_76); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_73, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_73, 1); +lean_inc(x_83); +lean_dec_ref(x_73); +lean_inc(x_65); +x_84 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_82, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_71, x_83); +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec_ref(x_84); +x_18 = x_65; +x_19 = x_85; +goto block_55; +} +else +{ +uint8_t x_86; +lean_dec(x_65); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_86 = !lean_is_exclusive(x_84); +if (x_86 == 0) +{ +return x_84; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_84, 0); +x_88 = lean_ctor_get(x_84, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_84); +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; +} +} +} +} +else +{ +uint8_t x_90; +lean_dec(x_71); +lean_dec_ref(x_70); +lean_dec(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_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_90 = !lean_is_exclusive(x_73); +if (x_90 == 0) +{ +return x_73; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_73, 0); +x_92 = lean_ctor_get(x_73, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_73); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +} +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; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_134; +x_100 = lean_ctor_get(x_59, 0); +x_101 = lean_ctor_get(x_59, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_59); +x_102 = lean_array_uget(x_5, x_7); +x_134 = lean_unbox(x_100); +lean_dec(x_100); +if (x_134 == 0) +{ +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); x_103 = x_9; x_104 = x_10; x_105 = x_11; @@ -46006,921 +46000,954 @@ x_106 = x_12; x_107 = x_13; x_108 = x_14; x_109 = x_15; -x_110 = x_138; -goto block_132; +x_110 = x_16; +x_111 = x_101; +goto block_133; } -block_132: +else { -lean_object* x_111; -lean_inc(x_109); -lean_inc_ref(x_108); -lean_inc(x_107); -lean_inc_ref(x_106); -x_111 = l_Lean_Meta_Grind_preprocessPattern(x_101, x_55, x_106, x_107, x_108, x_109, x_110); -if (lean_obj_tag(x_111) == 0) +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_135 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; +lean_inc_ref(x_102); +x_136 = l_Lean_MessageData_ofExpr(x_102); +x_137 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_58, x_137, x_13, x_14, x_15, x_16, x_101); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec_ref(x_138); +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); +x_103 = x_9; +x_104 = x_10; +x_105 = x_11; +x_106 = x_12; +x_107 = x_13; +x_108 = x_14; +x_109 = x_15; +x_110 = x_16; +x_111 = x_139; +goto block_133; +} +block_133: { -if (x_3 == 0) +lean_object* x_112; +lean_inc(x_110); +lean_inc_ref(x_109); +lean_inc(x_108); +lean_inc_ref(x_107); +x_112 = l_Lean_Meta_Grind_preprocessPattern(x_102, x_56, x_107, x_108, x_109, x_110, x_111); +if (lean_obj_tag(x_112) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); +if (x_4 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -lean_dec_ref(x_111); -lean_inc(x_103); -x_114 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_112, x_102, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_113); -if (lean_obj_tag(x_114) == 0) +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec_ref(x_112); +lean_inc(x_104); +x_115 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_113, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_110, x_114); +if (lean_obj_tag(x_115) == 0) { -lean_object* x_115; -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -lean_dec_ref(x_114); -x_17 = x_103; -x_18 = x_115; -goto block_54; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_103); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_116 = lean_ctor_get(x_114, 0); +lean_object* x_116; +x_116 = lean_ctor_get(x_115, 1); lean_inc(x_116); -x_117 = lean_ctor_get(x_114, 1); +lean_dec_ref(x_115); +x_18 = x_104; +x_19 = x_116; +goto block_55; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_104); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_117 = lean_ctor_get(x_115, 0); lean_inc(x_117); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_118 = x_114; +x_118 = lean_ctor_get(x_115, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_119 = x_115; } else { - lean_dec_ref(x_114); - x_118 = lean_box(0); + lean_dec_ref(x_115); + x_119 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_120 = x_119; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; } } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_111, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_111, 1); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_112, 0); lean_inc(x_121); -lean_dec_ref(x_111); -lean_inc(x_103); -x_122 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_120, x_102, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_121); -if (lean_obj_tag(x_122) == 0) +x_122 = lean_ctor_get(x_112, 1); +lean_inc(x_122); +lean_dec_ref(x_112); +lean_inc(x_104); +x_123 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_121, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_110, x_122); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_123; -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -lean_dec_ref(x_122); -x_17 = x_103; -x_18 = x_123; -goto block_54; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_103); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_124 = lean_ctor_get(x_122, 0); +lean_object* x_124; +x_124 = lean_ctor_get(x_123, 1); lean_inc(x_124); -x_125 = lean_ctor_get(x_122, 1); +lean_dec_ref(x_123); +x_18 = x_104; +x_19 = x_124; +goto block_55; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_104); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_125 = lean_ctor_get(x_123, 0); lean_inc(x_125); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_126 = x_122; +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_127 = x_123; } else { - lean_dec_ref(x_122); - x_126 = lean_box(0); + lean_dec_ref(x_123); + x_127 = lean_box(0); } -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(1, 2, 0); } else { - x_127 = x_126; + x_128 = x_127; } -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_125); -return x_127; +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +return x_128; } } } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_109); -lean_dec_ref(x_108); -lean_dec(x_107); -lean_dec_ref(x_106); -lean_dec(x_105); -lean_dec_ref(x_104); -lean_dec(x_103); -lean_dec_ref(x_102); -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_9); -lean_dec_ref(x_8); +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_110); +lean_dec_ref(x_109); +lean_dec(x_108); +lean_dec_ref(x_107); +lean_dec(x_106); +lean_dec_ref(x_105); +lean_dec(x_104); +lean_dec_ref(x_103); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); lean_dec_ref(x_1); -x_128 = lean_ctor_get(x_111, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_111, 1); +x_129 = lean_ctor_get(x_112, 0); lean_inc(x_129); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_130 = x_111; +x_130 = lean_ctor_get(x_112, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_131 = x_112; } else { - lean_dec_ref(x_111); - x_130 = lean_box(0); + lean_dec_ref(x_112); + x_131 = lean_box(0); } -if (lean_is_scalar(x_130)) { - x_131 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); } else { - x_131 = x_130; + x_132 = x_131; } -lean_ctor_set(x_131, 0, x_128); -lean_ctor_set(x_131, 1, x_129); -return x_131; +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; } } } } -block_54: +block_55: { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_st_ref_get(x_17, x_18); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_20, sizeof(void*)*1); -lean_dec(x_20); -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_st_ref_get(x_18, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*1); +lean_dec(x_21); +if (x_22 == 0) { -lean_object* x_22; size_t x_23; size_t x_24; -lean_dec(x_17); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec_ref(x_19); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); +lean_object* x_23; size_t x_24; size_t x_25; +lean_dec(x_18); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec_ref(x_20); +x_24 = 1; +x_25 = lean_usize_add(x_7, x_24); lean_inc_ref(x_1); { -size_t _tmp_5 = x_24; -lean_object* _tmp_6 = x_1; -lean_object* _tmp_15 = x_22; -x_6 = _tmp_5; +size_t _tmp_6 = x_25; +lean_object* _tmp_7 = x_1; +lean_object* _tmp_16 = x_23; x_7 = _tmp_6; -x_16 = _tmp_15; +x_8 = _tmp_7; +x_17 = _tmp_16; } goto _start; } else { -uint8_t x_26; -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_9); -lean_dec_ref(x_8); +uint8_t x_27; +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); lean_dec_ref(x_1); -x_26 = !lean_is_exclusive(x_19); -if (x_26 == 0) +x_27 = !lean_is_exclusive(x_20); +if (x_27 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_19, 1); -x_28 = lean_ctor_get(x_19, 0); -lean_dec(x_28); -x_29 = lean_st_ref_get(x_17, x_27); -lean_dec(x_17); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_28 = lean_ctor_get(x_20, 1); +x_29 = lean_ctor_get(x_20, 0); +lean_dec(x_29); +x_30 = lean_st_ref_get(x_18, x_28); +lean_dec(x_18); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 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_29, 0); -x_32 = lean_ctor_get(x_31, 0); -lean_inc_ref(x_32); -lean_dec(x_31); -x_33 = lean_array_to_list(x_32); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_33); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_32, 0); +lean_inc_ref(x_33); +lean_dec(x_32); +x_34 = lean_array_to_list(x_33); x_35 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_19, 1, x_2); -lean_ctor_set(x_19, 0, x_35); -lean_ctor_set(x_29, 0, x_19); -return x_29; +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_20, 1, x_2); +lean_ctor_set(x_20, 0, x_36); +lean_ctor_set(x_30, 0, x_20); +return x_30; } else { -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_36 = lean_ctor_get(x_29, 0); -x_37 = lean_ctor_get(x_29, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_37 = lean_ctor_get(x_30, 0); +x_38 = lean_ctor_get(x_30, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_29); -x_38 = lean_ctor_get(x_36, 0); -lean_inc_ref(x_38); -lean_dec(x_36); -x_39 = lean_array_to_list(x_38); -x_40 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_39); +lean_dec(x_30); +x_39 = lean_ctor_get(x_37, 0); +lean_inc_ref(x_39); +lean_dec(x_37); +x_40 = lean_array_to_list(x_39); x_41 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_19, 1, x_2); -lean_ctor_set(x_19, 0, x_41); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_19); -lean_ctor_set(x_42, 1, x_37); -return x_42; +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_20, 1, x_2); +lean_ctor_set(x_20, 0, x_42); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_20); +lean_ctor_set(x_43, 1, x_38); +return x_43; } } else { -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; -x_43 = lean_ctor_get(x_19, 1); -lean_inc(x_43); -lean_dec(x_19); -x_44 = lean_st_ref_get(x_17, x_43); -lean_dec(x_17); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_44)) { - lean_ctor_release(x_44, 0); - lean_ctor_release(x_44, 1); - x_47 = x_44; -} else { - lean_dec_ref(x_44); - x_47 = lean_box(0); -} -x_48 = lean_ctor_get(x_45, 0); -lean_inc_ref(x_48); -lean_dec(x_45); -x_49 = lean_array_to_list(x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_2); -if (lean_is_scalar(x_47)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_47; -} -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_46); -return x_53; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(lean_object* x_1, lean_object* x_2, uint8_t 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, lean_object* x_15, lean_object* x_16) { -_start: -{ -lean_object* x_17; lean_object* x_18; uint8_t x_55; -x_55 = lean_usize_dec_lt(x_6, x_5); -if (x_55 == 0) -{ -lean_object* x_56; -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_7); -lean_ctor_set(x_56, 1, x_16); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec_ref(x_7); -x_57 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; -x_58 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_57, x_14, x_16); -x_59 = !lean_is_exclusive(x_58); -if (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; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_94; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -x_62 = lean_array_uget(x_4, x_6); -x_94 = lean_unbox(x_60); -lean_dec(x_60); -if (x_94 == 0) -{ -lean_free_object(x_58); -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_9); -lean_inc_ref(x_8); -x_63 = x_8; -x_64 = x_9; -x_65 = x_10; -x_66 = x_11; -x_67 = x_12; -x_68 = x_13; -x_69 = x_14; -x_70 = x_15; -x_71 = x_61; -goto block_93; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; -lean_inc_ref(x_62); -x_96 = l_Lean_MessageData_ofExpr(x_62); -lean_ctor_set_tag(x_58, 7); -lean_ctor_set(x_58, 1, x_96); -lean_ctor_set(x_58, 0, x_95); -x_97 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_57, x_58, x_12, x_13, x_14, x_15, x_61); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec_ref(x_97); -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_9); -lean_inc_ref(x_8); -x_63 = x_8; -x_64 = x_9; -x_65 = x_10; -x_66 = x_11; -x_67 = x_12; -x_68 = x_13; -x_69 = x_14; -x_70 = x_15; -x_71 = x_98; -goto block_93; -} -block_93: -{ -lean_object* x_72; -lean_inc(x_70); -lean_inc_ref(x_69); -lean_inc(x_68); -lean_inc_ref(x_67); -x_72 = l_Lean_Meta_Grind_preprocessPattern(x_62, x_55, x_67, x_68, x_69, x_70, x_71); -if (lean_obj_tag(x_72) == 0) -{ -if (x_3 == 0) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -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); -lean_inc(x_64); -x_75 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_73, x_63, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_74); -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_17 = x_64; -x_18 = x_76; -goto block_54; -} -else -{ -uint8_t x_77; -lean_dec(x_64); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -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; -} -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_72, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_72, 1); -lean_inc(x_82); -lean_dec_ref(x_72); -lean_inc(x_64); -x_83 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_81, x_63, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_82); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec_ref(x_83); -x_17 = x_64; -x_18 = x_84; -goto block_54; -} -else -{ -uint8_t x_85; -lean_dec(x_64); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_85 = !lean_is_exclusive(x_83); -if (x_85 == 0) -{ -return x_83; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_83, 0); -x_87 = lean_ctor_get(x_83, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_83); -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_70); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec_ref(x_67); -lean_dec(x_66); -lean_dec_ref(x_65); -lean_dec(x_64); -lean_dec_ref(x_63); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_89 = !lean_is_exclusive(x_72); -if (x_89 == 0) -{ -return x_72; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_72, 0); -x_91 = lean_ctor_get(x_72, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_72); -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 -{ -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; uint8_t x_133; -x_99 = lean_ctor_get(x_58, 0); -x_100 = lean_ctor_get(x_58, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_58); -x_101 = lean_array_uget(x_4, x_6); -x_133 = lean_unbox(x_99); -lean_dec(x_99); -if (x_133 == 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_9); -lean_inc_ref(x_8); -x_102 = x_8; -x_103 = x_9; -x_104 = x_10; -x_105 = x_11; -x_106 = x_12; -x_107 = x_13; -x_108 = x_14; -x_109 = x_15; -x_110 = x_100; -goto block_132; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_134 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; -lean_inc_ref(x_101); -x_135 = l_Lean_MessageData_ofExpr(x_101); -x_136 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -x_137 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_57, x_136, x_12, x_13, x_14, x_15, x_100); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec_ref(x_137); -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_9); -lean_inc_ref(x_8); -x_102 = x_8; -x_103 = x_9; -x_104 = x_10; -x_105 = x_11; -x_106 = x_12; -x_107 = x_13; -x_108 = x_14; -x_109 = x_15; -x_110 = x_138; -goto block_132; -} -block_132: -{ -lean_object* x_111; -lean_inc(x_109); -lean_inc_ref(x_108); -lean_inc(x_107); -lean_inc_ref(x_106); -x_111 = l_Lean_Meta_Grind_preprocessPattern(x_101, x_55, x_106, x_107, x_108, x_109, x_110); -if (lean_obj_tag(x_111) == 0) -{ -if (x_3 == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec_ref(x_111); -lean_inc(x_103); -x_114 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(x_112, x_102, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_113); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -lean_dec_ref(x_114); -x_17 = x_103; -x_18 = x_115; -goto block_54; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_103); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_116 = lean_ctor_get(x_114, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_114, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_118 = x_114; -} else { - lean_dec_ref(x_114); - x_118 = lean_box(0); -} -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); -} else { - x_119 = x_118; -} -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; -} -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_111, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_111, 1); -lean_inc(x_121); -lean_dec_ref(x_111); -lean_inc(x_103); -x_122 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_120, x_102, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_121); -if (lean_obj_tag(x_122) == 0) -{ -lean_object* x_123; -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -lean_dec_ref(x_122); -x_17 = x_103; -x_18 = x_123; -goto block_54; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_103); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_124 = lean_ctor_get(x_122, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_122, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_126 = x_122; -} else { - lean_dec_ref(x_122); - x_126 = lean_box(0); -} -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(1, 2, 0); -} else { - x_127 = x_126; -} -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_125); -return x_127; -} -} -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_109); -lean_dec_ref(x_108); -lean_dec(x_107); -lean_dec_ref(x_106); -lean_dec(x_105); -lean_dec_ref(x_104); -lean_dec(x_103); -lean_dec_ref(x_102); -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_128 = lean_ctor_get(x_111, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_111, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_130 = x_111; -} else { - lean_dec_ref(x_111); - x_130 = lean_box(0); -} -if (lean_is_scalar(x_130)) { - x_131 = lean_alloc_ctor(1, 2, 0); -} else { - x_131 = x_130; -} -lean_ctor_set(x_131, 0, x_128); -lean_ctor_set(x_131, 1, x_129); -return x_131; -} -} -} -} -block_54: -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_st_ref_get(x_17, x_18); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_20, sizeof(void*)*1); +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; +x_44 = lean_ctor_get(x_20, 1); +lean_inc(x_44); lean_dec(x_20); -if (x_21 == 0) -{ -lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; -lean_dec(x_17); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec_ref(x_19); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); -lean_inc_ref(x_1); -x_25 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_24, x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_22); -return x_25; -} -else -{ -uint8_t x_26; -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_9); -lean_dec_ref(x_8); -lean_dec_ref(x_1); -x_26 = !lean_is_exclusive(x_19); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_19, 1); -x_28 = lean_ctor_get(x_19, 0); -lean_dec(x_28); -x_29 = lean_st_ref_get(x_17, x_27); -lean_dec(x_17); -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; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_ctor_get(x_31, 0); -lean_inc_ref(x_32); -lean_dec(x_31); -x_33 = lean_array_to_list(x_32); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_19, 1, x_2); -lean_ctor_set(x_19, 0, x_35); -lean_ctor_set(x_29, 0, x_19); -return x_29; -} -else -{ -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_36 = lean_ctor_get(x_29, 0); -x_37 = lean_ctor_get(x_29, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_29); -x_38 = lean_ctor_get(x_36, 0); -lean_inc_ref(x_38); -lean_dec(x_36); -x_39 = lean_array_to_list(x_38); -x_40 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_19, 1, x_2); -lean_ctor_set(x_19, 0, x_41); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_19); -lean_ctor_set(x_42, 1, x_37); -return x_42; -} -} -else -{ -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; -x_43 = lean_ctor_get(x_19, 1); -lean_inc(x_43); -lean_dec(x_19); -x_44 = lean_st_ref_get(x_17, x_43); -lean_dec(x_17); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); +x_45 = lean_st_ref_get(x_18, x_44); +lean_dec(x_18); +x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -if (lean_is_exclusive(x_44)) { - lean_ctor_release(x_44, 0); - lean_ctor_release(x_44, 1); - x_47 = x_44; +x_47 = lean_ctor_get(x_45, 1); +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; } else { - lean_dec_ref(x_44); - x_47 = lean_box(0); + lean_dec_ref(x_45); + x_48 = lean_box(0); } -x_48 = lean_ctor_get(x_45, 0); -lean_inc_ref(x_48); -lean_dec(x_45); -x_49 = lean_array_to_list(x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_49); +x_49 = lean_ctor_get(x_46, 0); +lean_inc_ref(x_49); +lean_dec(x_46); +x_50 = lean_array_to_list(x_49); x_51 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_51, 0, x_50); -x_52 = lean_alloc_ctor(0, 2, 0); +x_52 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_2); -if (lean_is_scalar(x_47)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_47; -} +x_53 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_46); -return x_53; +lean_ctor_set(x_53, 1, x_2); +if (lean_is_scalar(x_48)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_48; +} +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_47); +return x_54; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_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, size_t x_11, size_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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, size_t x_6, size_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_object* x_16, lean_object* x_17) { _start: { -lean_object* x_23; -x_23 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_1, x_2, x_3, 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); -return x_23; +lean_object* x_18; lean_object* x_19; uint8_t x_56; +x_56 = lean_usize_dec_lt(x_7, x_6); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_8); +lean_ctor_set(x_57, 1, x_17); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_dec_ref(x_8); +x_58 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__5; +x_59 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_58, x_15, x_17); +x_60 = !lean_is_exclusive(x_59); +if (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; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_95; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); +x_63 = lean_array_uget(x_5, x_7); +x_95 = lean_unbox(x_61); +lean_dec(x_61); +if (x_95 == 0) +{ +lean_free_object(x_59); +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); +x_64 = x_9; +x_65 = x_10; +x_66 = x_11; +x_67 = x_12; +x_68 = x_13; +x_69 = x_14; +x_70 = x_15; +x_71 = x_16; +x_72 = x_62; +goto block_94; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_96 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; +lean_inc_ref(x_63); +x_97 = l_Lean_MessageData_ofExpr(x_63); +lean_ctor_set_tag(x_59, 7); +lean_ctor_set(x_59, 1, x_97); +lean_ctor_set(x_59, 0, x_96); +x_98 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_58, x_59, x_13, x_14, x_15, x_16, x_62); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec_ref(x_98); +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); +x_64 = x_9; +x_65 = x_10; +x_66 = x_11; +x_67 = x_12; +x_68 = x_13; +x_69 = x_14; +x_70 = x_15; +x_71 = x_16; +x_72 = x_99; +goto block_94; +} +block_94: +{ +lean_object* x_73; +lean_inc(x_71); +lean_inc_ref(x_70); +lean_inc(x_69); +lean_inc_ref(x_68); +x_73 = l_Lean_Meta_Grind_preprocessPattern(x_63, x_56, x_68, x_69, x_70, x_71, x_72); +if (lean_obj_tag(x_73) == 0) +{ +if (x_4 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec_ref(x_73); +lean_inc(x_65); +x_76 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_74, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_71, x_75); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec_ref(x_76); +x_18 = x_65; +x_19 = x_77; +goto block_55; +} +else +{ +uint8_t x_78; +lean_dec(x_65); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_78 = !lean_is_exclusive(x_76); +if (x_78 == 0) +{ +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_76, 0); +x_80 = lean_ctor_get(x_76, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_76); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_73, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_73, 1); +lean_inc(x_83); +lean_dec_ref(x_73); +lean_inc(x_65); +x_84 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_82, x_64, x_65, x_66, x_67, x_68, x_69, x_70, x_71, x_83); +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec_ref(x_84); +x_18 = x_65; +x_19 = x_85; +goto block_55; +} +else +{ +uint8_t x_86; +lean_dec(x_65); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_86 = !lean_is_exclusive(x_84); +if (x_86 == 0) +{ +return x_84; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_84, 0); +x_88 = lean_ctor_get(x_84, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_84); +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; +} +} +} +} +else +{ +uint8_t x_90; +lean_dec(x_71); +lean_dec_ref(x_70); +lean_dec(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_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_90 = !lean_is_exclusive(x_73); +if (x_90 == 0) +{ +return x_73; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_73, 0); +x_92 = lean_ctor_get(x_73, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_73); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +} +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; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_134; +x_100 = lean_ctor_get(x_59, 0); +x_101 = lean_ctor_get(x_59, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_59); +x_102 = lean_array_uget(x_5, x_7); +x_134 = lean_unbox(x_100); +lean_dec(x_100); +if (x_134 == 0) +{ +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); +x_103 = x_9; +x_104 = x_10; +x_105 = x_11; +x_106 = x_12; +x_107 = x_13; +x_108 = x_14; +x_109 = x_15; +x_110 = x_16; +x_111 = x_101; +goto block_133; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_135 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___closed__1; +lean_inc_ref(x_102); +x_136 = l_Lean_MessageData_ofExpr(x_102); +x_137 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_58, x_137, x_13, x_14, x_15, x_16, x_101); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec_ref(x_138); +lean_inc(x_16); +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(x_10); +lean_inc_ref(x_9); +x_103 = x_9; +x_104 = x_10; +x_105 = x_11; +x_106 = x_12; +x_107 = x_13; +x_108 = x_14; +x_109 = x_15; +x_110 = x_16; +x_111 = x_139; +goto block_133; +} +block_133: +{ +lean_object* x_112; +lean_inc(x_110); +lean_inc_ref(x_109); +lean_inc(x_108); +lean_inc_ref(x_107); +x_112 = l_Lean_Meta_Grind_preprocessPattern(x_102, x_56, x_107, x_108, x_109, x_110, x_111); +if (lean_obj_tag(x_112) == 0) +{ +if (x_4 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec_ref(x_112); +lean_inc(x_104); +x_115 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_go(x_3, x_113, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_110, x_114); +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_116; +x_116 = lean_ctor_get(x_115, 1); +lean_inc(x_116); +lean_dec_ref(x_115); +x_18 = x_104; +x_19 = x_116; +goto block_55; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_104); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_117 = lean_ctor_get(x_115, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_115, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_119 = x_115; +} else { + lean_dec_ref(x_115); + x_119 = lean_box(0); +} +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); +} else { + x_120 = x_119; +} +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; +} +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_112, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_112, 1); +lean_inc(x_122); +lean_dec_ref(x_112); +lean_inc(x_104); +x_123 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect(x_121, x_103, x_104, x_105, x_106, x_107, x_108, x_109, x_110, x_122); +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_124; +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec_ref(x_123); +x_18 = x_104; +x_19 = x_124; +goto block_55; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_104); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_125 = lean_ctor_get(x_123, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_127 = x_123; +} else { + lean_dec_ref(x_123); + x_127 = lean_box(0); +} +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_127; +} +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +return x_128; +} +} +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_110); +lean_dec_ref(x_109); +lean_dec(x_108); +lean_dec_ref(x_107); +lean_dec(x_106); +lean_dec_ref(x_105); +lean_dec(x_104); +lean_dec_ref(x_103); +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_129 = lean_ctor_get(x_112, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_112, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_131 = x_112; +} else { + lean_dec_ref(x_112); + 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; +} +} +} +} +block_55: +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_st_ref_get(x_18, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*1); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; +lean_dec(x_18); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec_ref(x_20); +x_24 = 1; +x_25 = lean_usize_add(x_7, x_24); +lean_inc_ref(x_1); +x_26 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_25, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_23); +return x_26; +} +else +{ +uint8_t x_27; +lean_dec(x_16); +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(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_1); +x_27 = !lean_is_exclusive(x_20); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_28 = lean_ctor_get(x_20, 1); +x_29 = lean_ctor_get(x_20, 0); +lean_dec(x_29); +x_30 = lean_st_ref_get(x_18, x_28); +lean_dec(x_18); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_32, 0); +lean_inc_ref(x_33); +lean_dec(x_32); +x_34 = lean_array_to_list(x_33); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_20, 1, x_2); +lean_ctor_set(x_20, 0, x_36); +lean_ctor_set(x_30, 0, x_20); +return x_30; +} +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; +x_37 = lean_ctor_get(x_30, 0); +x_38 = lean_ctor_get(x_30, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_30); +x_39 = lean_ctor_get(x_37, 0); +lean_inc_ref(x_39); +lean_dec(x_37); +x_40 = lean_array_to_list(x_39); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_20, 1, x_2); +lean_ctor_set(x_20, 0, x_42); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_20); +lean_ctor_set(x_43, 1, x_38); +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; lean_object* x_54; +x_44 = lean_ctor_get(x_20, 1); +lean_inc(x_44); +lean_dec(x_20); +x_45 = lean_st_ref_get(x_18, x_44); +lean_dec(x_18); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +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; +} else { + lean_dec_ref(x_45); + x_48 = lean_box(0); +} +x_49 = lean_ctor_get(x_46, 0); +lean_inc_ref(x_49); +lean_dec(x_46); +x_50 = lean_array_to_list(x_49); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_50); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_2); +if (lean_is_scalar(x_48)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_48; +} +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_47); +return x_54; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0(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, 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_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___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_1, x_2, x_3, x_4, 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); +return x_24; } } LEAN_EXPORT uint8_t l_List_beq___at___Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2_spec__2(lean_object* x_1, lean_object* x_2) { @@ -47055,654 +47082,654 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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) { _start: { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = l_Lean_Meta_Grind_NormalizePattern_main___closed__3; -x_13 = lean_st_mk_ref(x_12, x_11); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = l_Lean_Meta_Grind_NormalizePattern_main___closed__3; +x_14 = lean_st_mk_ref(x_13, x_12); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__0; -x_18 = lean_st_mk_ref(x_17, x_16); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +x_18 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__0; +x_19 = lean_st_mk_ref(x_18, x_17); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_71; lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -lean_ctor_set(x_18, 1, x_2); -lean_ctor_set(x_18, 0, x_1); -lean_ctor_set(x_13, 1, x_4); -lean_ctor_set(x_13, 0, x_3); -x_71 = lean_box(0); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_72; lean_object* x_73; lean_object* x_74; size_t x_75; size_t x_76; lean_object* x_77; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_ctor_set(x_19, 1, x_2); +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_14, 1, x_4); +lean_ctor_set(x_14, 0, x_3); x_72 = lean_box(0); -x_73 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__1; -x_74 = lean_array_size(x_5); -x_75 = 0; -lean_inc(x_15); -lean_inc(x_20); -x_76 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_73, x_72, x_6, x_5, x_74, x_75, x_73, x_18, x_20, x_13, x_15, x_7, x_8, x_9, x_10, x_21); -if (lean_obj_tag(x_76) == 0) +x_73 = lean_box(0); +x_74 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__1; +x_75 = lean_array_size(x_5); +x_76 = 0; +lean_inc(x_16); +lean_inc(x_21); +x_77 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_74, x_73, x_6, x_7, x_5, x_75, x_76, x_74, x_19, x_21, x_14, x_16, x_8, x_9, x_10, x_11, x_22); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); +lean_object* x_78; lean_object* x_79; x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); -lean_dec(x_77); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; -x_79 = lean_ctor_get(x_76, 1); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec_ref(x_76); -x_22 = x_71; -x_23 = x_79; -goto block_70; -} -else +lean_dec(x_78); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_76, 1); +lean_object* x_80; +x_80 = lean_ctor_get(x_77, 1); lean_inc(x_80); -lean_dec_ref(x_76); -x_81 = lean_ctor_get(x_78, 0); +lean_dec_ref(x_77); +x_23 = x_72; +x_24 = x_80; +goto block_71; +} +else +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_77, 1); lean_inc(x_81); -lean_dec_ref(x_78); -x_22 = x_81; -x_23 = x_80; -goto block_70; +lean_dec_ref(x_77); +x_82 = lean_ctor_get(x_79, 0); +lean_inc(x_82); +lean_dec_ref(x_79); +x_23 = x_82; +x_24 = x_81; +goto block_71; } } else { -uint8_t x_82; -lean_dec(x_20); -lean_dec(x_15); -x_82 = !lean_is_exclusive(x_76); -if (x_82 == 0) +uint8_t x_83; +lean_dec(x_21); +lean_dec(x_16); +x_83 = !lean_is_exclusive(x_77); +if (x_83 == 0) { -return x_76; +return x_77; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_76, 0); -x_84 = lean_ctor_get(x_76, 1); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_77, 0); +x_85 = lean_ctor_get(x_77, 1); +lean_inc(x_85); lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_76); -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; +lean_dec(x_77); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; } } -block_70: +block_71: { -lean_object* x_24; uint8_t x_25; -x_24 = lean_st_ref_get(x_20, x_23); -lean_dec(x_20); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +lean_object* x_25; uint8_t x_26; +x_25 = lean_st_ref_get(x_21, x_24); +lean_dec(x_21); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 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); -x_28 = lean_st_ref_get(x_15, x_26); -lean_dec(x_15); -if (lean_obj_tag(x_22) == 0) -{ -uint8_t x_29; -lean_free_object(x_24); -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_28, 0, x_31); -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_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 1); +x_28 = lean_ctor_get(x_25, 0); lean_dec(x_28); -x_33 = lean_box(0); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} +x_29 = lean_st_ref_get(x_16, x_27); +lean_dec(x_16); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_30; +lean_free_object(x_25); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +x_32 = lean_box(0); +lean_ctor_set(x_29, 0, x_32); +return x_29; } else { -uint8_t x_35; -x_35 = !lean_is_exclusive(x_28); -if (x_35 == 0) +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +else { uint8_t x_36; -x_36 = !lean_is_exclusive(x_22); +x_36 = !lean_is_exclusive(x_29); if (x_36 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_28, 0); -x_38 = lean_ctor_get(x_22, 0); -x_39 = lean_ctor_get(x_37, 0); -lean_inc_ref(x_39); -lean_dec(x_37); -x_40 = lean_array_to_list(x_39); -lean_ctor_set(x_24, 1, x_40); -lean_ctor_set(x_24, 0, x_38); -lean_ctor_set(x_22, 0, x_24); -lean_ctor_set(x_28, 0, x_22); -return x_28; +uint8_t x_37; +x_37 = !lean_is_exclusive(x_23); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_29, 0); +x_39 = lean_ctor_get(x_23, 0); +x_40 = lean_ctor_get(x_38, 0); +lean_inc_ref(x_40); +lean_dec(x_38); +x_41 = lean_array_to_list(x_40); +lean_ctor_set(x_25, 1, x_41); +lean_ctor_set(x_25, 0, x_39); +lean_ctor_set(x_23, 0, x_25); +lean_ctor_set(x_29, 0, x_23); +return x_29; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_41 = lean_ctor_get(x_28, 0); -x_42 = lean_ctor_get(x_22, 0); -lean_inc(x_42); -lean_dec(x_22); -x_43 = lean_ctor_get(x_41, 0); -lean_inc_ref(x_43); -lean_dec(x_41); -x_44 = lean_array_to_list(x_43); -lean_ctor_set(x_24, 1, x_44); -lean_ctor_set(x_24, 0, x_42); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_24); -lean_ctor_set(x_28, 0, x_45); -return x_28; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_23, 0); +lean_inc(x_43); +lean_dec(x_23); +x_44 = lean_ctor_get(x_42, 0); +lean_inc_ref(x_44); +lean_dec(x_42); +x_45 = lean_array_to_list(x_44); +lean_ctor_set(x_25, 1, x_45); +lean_ctor_set(x_25, 0, x_43); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_25); +lean_ctor_set(x_29, 0, x_46); +return x_29; } } 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; -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_dec(x_28); -x_48 = lean_ctor_get(x_22, 0); +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; +x_47 = lean_ctor_get(x_29, 0); +x_48 = lean_ctor_get(x_29, 1); lean_inc(x_48); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_49 = x_22; +lean_inc(x_47); +lean_dec(x_29); +x_49 = lean_ctor_get(x_23, 0); +lean_inc(x_49); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + x_50 = x_23; } else { - lean_dec_ref(x_22); - x_49 = lean_box(0); + lean_dec_ref(x_23); + x_50 = lean_box(0); } -x_50 = lean_ctor_get(x_46, 0); -lean_inc_ref(x_50); -lean_dec(x_46); -x_51 = lean_array_to_list(x_50); -lean_ctor_set(x_24, 1, x_51); -lean_ctor_set(x_24, 0, x_48); -if (lean_is_scalar(x_49)) { - x_52 = lean_alloc_ctor(1, 1, 0); +x_51 = lean_ctor_get(x_47, 0); +lean_inc_ref(x_51); +lean_dec(x_47); +x_52 = lean_array_to_list(x_51); +lean_ctor_set(x_25, 1, x_52); +lean_ctor_set(x_25, 0, x_49); +if (lean_is_scalar(x_50)) { + x_53 = lean_alloc_ctor(1, 1, 0); } else { - x_52 = x_49; + x_53 = x_50; } -lean_ctor_set(x_52, 0, x_24); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_47); -return x_53; +lean_ctor_set(x_53, 0, x_25); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_48); +return x_54; } } } else { -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_24, 1); -lean_inc(x_54); -lean_dec(x_24); -x_55 = lean_st_ref_get(x_15, x_54); -lean_dec(x_15); -if (lean_obj_tag(x_22) == 0) +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_25, 1); +lean_inc(x_55); +lean_dec(x_25); +x_56 = lean_st_ref_get(x_16, x_55); +lean_dec(x_16); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_57 = x_55; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +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; } else { - lean_dec_ref(x_55); - x_57 = lean_box(0); + lean_dec_ref(x_56); + x_58 = lean_box(0); } -x_58 = lean_box(0); -if (lean_is_scalar(x_57)) { - x_59 = lean_alloc_ctor(0, 2, 0); +x_59 = lean_box(0); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 2, 0); } else { - x_59 = x_57; + x_60 = x_58; } -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_56); -return x_59; +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_57); +return x_60; } 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; -x_60 = lean_ctor_get(x_55, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_55, 1); +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; +x_61 = lean_ctor_get(x_56, 0); lean_inc(x_61); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_62 = x_55; +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; } else { - lean_dec_ref(x_55); - x_62 = lean_box(0); + lean_dec_ref(x_56); + x_63 = lean_box(0); } -x_63 = lean_ctor_get(x_22, 0); -lean_inc(x_63); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_64 = x_22; +x_64 = lean_ctor_get(x_23, 0); +lean_inc(x_64); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + x_65 = x_23; } else { - lean_dec_ref(x_22); - x_64 = lean_box(0); + lean_dec_ref(x_23); + x_65 = lean_box(0); } -x_65 = lean_ctor_get(x_60, 0); -lean_inc_ref(x_65); -lean_dec(x_60); -x_66 = lean_array_to_list(x_65); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_63); -lean_ctor_set(x_67, 1, x_66); -if (lean_is_scalar(x_64)) { - x_68 = lean_alloc_ctor(1, 1, 0); +x_66 = lean_ctor_get(x_61, 0); +lean_inc_ref(x_66); +lean_dec(x_61); +x_67 = lean_array_to_list(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_64); +lean_ctor_set(x_68, 1, x_67); +if (lean_is_scalar(x_65)) { + x_69 = lean_alloc_ctor(1, 1, 0); } else { - x_68 = x_64; -} -lean_ctor_set(x_68, 0, x_67); -if (lean_is_scalar(x_62)) { - x_69 = lean_alloc_ctor(0, 2, 0); -} else { - x_69 = x_62; + x_69 = x_65; } lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_61); -return x_69; +if (lean_is_scalar(x_63)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_63; +} +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_62); +return x_70; } } } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; size_t x_113; size_t x_114; lean_object* x_115; -x_86 = lean_ctor_get(x_18, 0); -x_87 = lean_ctor_get(x_18, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; size_t x_114; size_t x_115; lean_object* x_116; +x_87 = lean_ctor_get(x_19, 0); +x_88 = lean_ctor_get(x_19, 1); +lean_inc(x_88); lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_18); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_1); -lean_ctor_set(x_109, 1, x_2); -lean_ctor_set(x_13, 1, x_4); -lean_ctor_set(x_13, 0, x_3); -x_110 = lean_box(0); +lean_dec(x_19); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_1); +lean_ctor_set(x_110, 1, x_2); +lean_ctor_set(x_14, 1, x_4); +lean_ctor_set(x_14, 0, x_3); x_111 = lean_box(0); -x_112 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__1; -x_113 = lean_array_size(x_5); -x_114 = 0; -lean_inc(x_15); -lean_inc(x_86); -x_115 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_112, x_111, x_6, x_5, x_113, x_114, x_112, x_109, x_86, x_13, x_15, x_7, x_8, x_9, x_10, x_87); -if (lean_obj_tag(x_115) == 0) +x_112 = lean_box(0); +x_113 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__1; +x_114 = lean_array_size(x_5); +x_115 = 0; +lean_inc(x_16); +lean_inc(x_87); +x_116 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_113, x_112, x_6, x_7, x_5, x_114, x_115, x_113, x_110, x_87, x_14, x_16, x_8, x_9, x_10, x_11, x_88); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_116; lean_object* x_117; -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); +lean_object* x_117; lean_object* x_118; x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); -lean_dec(x_116); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; -x_118 = lean_ctor_get(x_115, 1); +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -lean_dec_ref(x_115); -x_88 = x_110; -x_89 = x_118; -goto block_108; -} -else +lean_dec(x_117); +if (lean_obj_tag(x_118) == 0) { -lean_object* x_119; lean_object* x_120; -x_119 = lean_ctor_get(x_115, 1); +lean_object* x_119; +x_119 = lean_ctor_get(x_116, 1); lean_inc(x_119); -lean_dec_ref(x_115); -x_120 = lean_ctor_get(x_117, 0); +lean_dec_ref(x_116); +x_89 = x_111; +x_90 = x_119; +goto block_109; +} +else +{ +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_116, 1); lean_inc(x_120); -lean_dec_ref(x_117); -x_88 = x_120; -x_89 = x_119; -goto block_108; -} -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_86); -lean_dec(x_15); -x_121 = lean_ctor_get(x_115, 0); +lean_dec_ref(x_116); +x_121 = lean_ctor_get(x_118, 0); lean_inc(x_121); -x_122 = lean_ctor_get(x_115, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_123 = x_115; -} else { - lean_dec_ref(x_115); - x_123 = lean_box(0); +lean_dec_ref(x_118); +x_89 = x_121; +x_90 = x_120; +goto block_109; } -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; -} -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; -} -block_108: -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_st_ref_get(x_86, x_89); -lean_dec(x_86); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_92 = x_90; -} else { - lean_dec_ref(x_90); - x_92 = lean_box(0); -} -x_93 = lean_st_ref_get(x_15, x_91); -lean_dec(x_15); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_92); -x_94 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_95 = x_93; -} else { - lean_dec_ref(x_93); - x_95 = lean_box(0); -} -x_96 = lean_box(0); -if (lean_is_scalar(x_95)) { - x_97 = lean_alloc_ctor(0, 2, 0); -} else { - x_97 = x_95; -} -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_94); -return x_97; } 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; -x_98 = lean_ctor_get(x_93, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_93, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_87); +lean_dec(x_16); +x_122 = lean_ctor_get(x_116, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_116, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_124 = x_116; +} else { + lean_dec_ref(x_116); + x_124 = lean_box(0); +} +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); +} else { + x_125 = x_124; +} +lean_ctor_set(x_125, 0, x_122); +lean_ctor_set(x_125, 1, x_123); +return x_125; +} +block_109: +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_st_ref_get(x_87, x_90); +lean_dec(x_87); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; +} else { + lean_dec_ref(x_91); + x_93 = lean_box(0); +} +x_94 = lean_st_ref_get(x_16, x_92); +lean_dec(x_16); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_93); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +x_97 = lean_box(0); +if (lean_is_scalar(x_96)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_96; +} +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_95); +return x_98; +} +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; +x_99 = lean_ctor_get(x_94, 0); lean_inc(x_99); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_100 = x_93; +x_100 = lean_ctor_get(x_94, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_101 = x_94; } else { - lean_dec_ref(x_93); - x_100 = lean_box(0); + lean_dec_ref(x_94); + x_101 = lean_box(0); } -x_101 = lean_ctor_get(x_88, 0); -lean_inc(x_101); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - x_102 = x_88; +x_102 = lean_ctor_get(x_89, 0); +lean_inc(x_102); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + x_103 = x_89; } else { - lean_dec_ref(x_88); - x_102 = lean_box(0); + lean_dec_ref(x_89); + x_103 = lean_box(0); } -x_103 = lean_ctor_get(x_98, 0); -lean_inc_ref(x_103); -lean_dec(x_98); -x_104 = lean_array_to_list(x_103); -if (lean_is_scalar(x_92)) { - x_105 = lean_alloc_ctor(0, 2, 0); +x_104 = lean_ctor_get(x_99, 0); +lean_inc_ref(x_104); +lean_dec(x_99); +x_105 = lean_array_to_list(x_104); +if (lean_is_scalar(x_93)) { + x_106 = lean_alloc_ctor(0, 2, 0); } else { - x_105 = x_92; + x_106 = x_93; } -lean_ctor_set(x_105, 0, x_101); -lean_ctor_set(x_105, 1, x_104); -if (lean_is_scalar(x_102)) { - x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_102); +lean_ctor_set(x_106, 1, x_105); +if (lean_is_scalar(x_103)) { + x_107 = lean_alloc_ctor(1, 1, 0); } else { - x_106 = x_102; -} -lean_ctor_set(x_106, 0, x_105); -if (lean_is_scalar(x_100)) { - x_107 = lean_alloc_ctor(0, 2, 0); -} else { - x_107 = x_100; + x_107 = x_103; } lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_99); -return x_107; +if (lean_is_scalar(x_101)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_101; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_100); +return x_108; } } } } else { -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_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; size_t x_158; size_t x_159; lean_object* x_160; -x_125 = lean_ctor_get(x_13, 0); -x_126 = lean_ctor_get(x_13, 1); +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_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; size_t x_159; size_t x_160; lean_object* x_161; +x_126 = lean_ctor_get(x_14, 0); +x_127 = lean_ctor_get(x_14, 1); +lean_inc(x_127); lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_13); -x_127 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__0; -x_128 = lean_st_mk_ref(x_127, x_126); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); +lean_dec(x_14); +x_128 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__0; +x_129 = lean_st_mk_ref(x_128, x_127); +x_130 = lean_ctor_get(x_129, 0); lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_132 = x_129; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_129); + x_132 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_153 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_132)) { + x_154 = lean_alloc_ctor(0, 2, 0); } else { - x_153 = x_131; + x_154 = x_132; } -lean_ctor_set(x_153, 0, x_1); -lean_ctor_set(x_153, 1, x_2); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_3); -lean_ctor_set(x_154, 1, x_4); -x_155 = lean_box(0); +lean_ctor_set(x_154, 0, x_1); +lean_ctor_set(x_154, 1, x_2); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_3); +lean_ctor_set(x_155, 1, x_4); x_156 = lean_box(0); -x_157 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__1; -x_158 = lean_array_size(x_5); -x_159 = 0; -lean_inc(x_125); -lean_inc(x_129); -x_160 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_157, x_156, x_6, x_5, x_158, x_159, x_157, x_153, x_129, x_154, x_125, x_7, x_8, x_9, x_10, x_130); -if (lean_obj_tag(x_160) == 0) +x_157 = lean_box(0); +x_158 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0___closed__1; +x_159 = lean_array_size(x_5); +x_160 = 0; +lean_inc(x_126); +lean_inc(x_130); +x_161 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_158, x_157, x_6, x_7, x_5, x_159, x_160, x_158, x_154, x_130, x_155, x_126, x_8, x_9, x_10, x_11, x_131); +if (lean_obj_tag(x_161) == 0) { -lean_object* x_161; lean_object* x_162; -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); +lean_object* x_162; lean_object* x_163; x_162 = lean_ctor_get(x_161, 0); lean_inc(x_162); -lean_dec(x_161); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; -x_163 = lean_ctor_get(x_160, 1); +x_163 = lean_ctor_get(x_162, 0); lean_inc(x_163); -lean_dec_ref(x_160); -x_132 = x_155; -x_133 = x_163; -goto block_152; -} -else +lean_dec(x_162); +if (lean_obj_tag(x_163) == 0) { -lean_object* x_164; lean_object* x_165; -x_164 = lean_ctor_get(x_160, 1); +lean_object* x_164; +x_164 = lean_ctor_get(x_161, 1); lean_inc(x_164); -lean_dec_ref(x_160); -x_165 = lean_ctor_get(x_162, 0); +lean_dec_ref(x_161); +x_133 = x_156; +x_134 = x_164; +goto block_153; +} +else +{ +lean_object* x_165; lean_object* x_166; +x_165 = lean_ctor_get(x_161, 1); lean_inc(x_165); -lean_dec_ref(x_162); -x_132 = x_165; -x_133 = x_164; -goto block_152; -} -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -lean_dec(x_129); -lean_dec(x_125); -x_166 = lean_ctor_get(x_160, 0); +lean_dec_ref(x_161); +x_166 = lean_ctor_get(x_163, 0); lean_inc(x_166); -x_167 = lean_ctor_get(x_160, 1); -lean_inc(x_167); -if (lean_is_exclusive(x_160)) { - lean_ctor_release(x_160, 0); - lean_ctor_release(x_160, 1); - x_168 = x_160; -} else { - lean_dec_ref(x_160); - x_168 = lean_box(0); +lean_dec_ref(x_163); +x_133 = x_166; +x_134 = x_165; +goto block_153; } -if (lean_is_scalar(x_168)) { - x_169 = lean_alloc_ctor(1, 2, 0); -} else { - x_169 = x_168; -} -lean_ctor_set(x_169, 0, x_166); -lean_ctor_set(x_169, 1, x_167); -return x_169; -} -block_152: -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_134 = lean_st_ref_get(x_129, x_133); -lean_dec(x_129); -x_135 = lean_ctor_get(x_134, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_136 = x_134; -} else { - lean_dec_ref(x_134); - x_136 = lean_box(0); -} -x_137 = lean_st_ref_get(x_125, x_135); -lean_dec(x_125); -if (lean_obj_tag(x_132) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -lean_dec(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); -} -x_140 = lean_box(0); -if (lean_is_scalar(x_139)) { - x_141 = lean_alloc_ctor(0, 2, 0); -} else { - x_141 = x_139; -} -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_138); -return x_141; } else { -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; -x_142 = lean_ctor_get(x_137, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_137, 1); +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_130); +lean_dec(x_126); +x_167 = lean_ctor_get(x_161, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_161, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_169 = x_161; +} else { + lean_dec_ref(x_161); + x_169 = lean_box(0); +} +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(1, 2, 0); +} else { + x_170 = x_169; +} +lean_ctor_set(x_170, 0, x_167); +lean_ctor_set(x_170, 1, x_168); +return x_170; +} +block_153: +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_st_ref_get(x_130, x_134); +lean_dec(x_130); +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_137 = x_135; +} else { + lean_dec_ref(x_135); + x_137 = lean_box(0); +} +x_138 = lean_st_ref_get(x_126, x_136); +lean_dec(x_126); +if (lean_obj_tag(x_133) == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_137); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_140 = x_138; +} else { + lean_dec_ref(x_138); + x_140 = lean_box(0); +} +x_141 = lean_box(0); +if (lean_is_scalar(x_140)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_140; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_139); +return x_142; +} +else +{ +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; +x_143 = lean_ctor_get(x_138, 0); lean_inc(x_143); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_144 = x_137; +x_144 = lean_ctor_get(x_138, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_145 = x_138; } else { - lean_dec_ref(x_137); - x_144 = lean_box(0); + lean_dec_ref(x_138); + x_145 = lean_box(0); } -x_145 = lean_ctor_get(x_132, 0); -lean_inc(x_145); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - x_146 = x_132; +x_146 = lean_ctor_get(x_133, 0); +lean_inc(x_146); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + x_147 = x_133; } else { - lean_dec_ref(x_132); - x_146 = lean_box(0); + lean_dec_ref(x_133); + x_147 = lean_box(0); } -x_147 = lean_ctor_get(x_142, 0); -lean_inc_ref(x_147); -lean_dec(x_142); -x_148 = lean_array_to_list(x_147); -if (lean_is_scalar(x_136)) { - x_149 = lean_alloc_ctor(0, 2, 0); +x_148 = lean_ctor_get(x_143, 0); +lean_inc_ref(x_148); +lean_dec(x_143); +x_149 = lean_array_to_list(x_148); +if (lean_is_scalar(x_137)) { + x_150 = lean_alloc_ctor(0, 2, 0); } else { - x_149 = x_136; + x_150 = x_137; } -lean_ctor_set(x_149, 0, x_145); -lean_ctor_set(x_149, 1, x_148); -if (lean_is_scalar(x_146)) { - x_150 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_149); +if (lean_is_scalar(x_147)) { + x_151 = lean_alloc_ctor(1, 1, 0); } else { - x_150 = x_146; -} -lean_ctor_set(x_150, 0, x_149); -if (lean_is_scalar(x_144)) { - x_151 = lean_alloc_ctor(0, 2, 0); -} else { - x_151 = x_144; + x_151 = x_147; } lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_143); -return x_151; +if (lean_is_scalar(x_145)) { + x_152 = lean_alloc_ctor(0, 2, 0); +} else { + x_152 = x_145; +} +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_144); +return x_152; } } } @@ -47790,325 +47817,361 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_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, lean_object* x_10) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; uint8_t x_15; -x_11 = lean_ctor_get(x_8, 2); -x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__0; -x_13 = l_Lean_Option_get___at___Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2_spec__2(x_11, x_12); -x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__1; -x_15 = l_Lean_Option_get___at___Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2_spec__2(x_11, x_14); -if (x_15 == 0) +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get(x_9, 2); +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__0; +x_14 = l_Lean_Option_get___at___Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2_spec__2(x_12, x_13); +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__1; +x_16 = l_Lean_Option_get___at___Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2_spec__2(x_12, x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_13, x_6, x_7, x_8, x_9, x_10); -return x_16; +lean_object* x_17; +x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_6, x_14, x_7, x_8, x_9, x_10, x_11); +return x_17; } else { -lean_object* x_17; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); +lean_object* x_18; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); lean_inc(x_5); lean_inc_ref(x_4); lean_inc_ref(x_2); lean_inc_ref(x_1); -x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_15, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_17) == 0) +x_18 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_6, x_16, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_18) == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -x_21 = 0; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -x_22 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_21, x_6, x_7, x_8, x_9, x_20); -if (lean_obj_tag(x_22) == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +x_22 = 0; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_6, x_22, x_7, x_8, x_9, x_10, x_21); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_30; -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; uint8_t x_31; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - x_25 = x_22; +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_22); - x_25 = lean_box(0); + lean_dec_ref(x_23); + x_26 = lean_box(0); } -x_30 = l_Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2(x_19, x_23); -if (x_30 == 0) +x_31 = l_Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2(x_20, x_24); +if (x_31 == 0) { -if (x_15 == 0) +if (x_16 == 0) { -lean_free_object(x_17); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -x_26 = x_24; -goto block_29; +lean_free_object(x_18); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +x_27 = x_25; +goto block_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_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_31 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__3; -lean_inc(x_19); -x_32 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_19); -x_33 = l_Lean_MessageData_ofList(x_32); -x_34 = l_Lean_indentD(x_33); -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_34); -lean_ctor_set(x_17, 0, x_31); -x_35 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__5; -x_36 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_36, 0, x_17); -lean_ctor_set(x_36, 1, x_35); -lean_inc(x_23); -x_37 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_23); -x_38 = l_Lean_MessageData_ofList(x_37); -x_39 = l_Lean_indentD(x_38); -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_36); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_logWarning___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__4(x_40, x_6, x_7, x_8, x_9, x_24); -lean_dec(x_9); -lean_dec(x_7); -lean_dec_ref(x_6); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec_ref(x_41); -x_26 = x_42; -goto block_29; +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; +x_32 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__3; +lean_inc(x_20); +x_33 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_20); +x_34 = l_Lean_MessageData_ofList(x_33); +x_35 = l_Lean_indentD(x_34); +lean_ctor_set_tag(x_18, 7); +lean_ctor_set(x_18, 1, x_35); +lean_ctor_set(x_18, 0, x_32); +x_36 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__5; +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_18); +lean_ctor_set(x_37, 1, x_36); +lean_inc(x_24); +x_38 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_24); +x_39 = l_Lean_MessageData_ofList(x_38); +x_40 = l_Lean_indentD(x_39); +x_41 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_logWarning___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__4(x_41, x_7, x_8, x_9, x_10, x_25); +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec_ref(x_42); +x_27 = x_43; +goto block_30; } } else { -lean_free_object(x_17); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -x_26 = x_24; -goto block_29; +lean_free_object(x_18); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +x_27 = x_25; +goto block_30; } -block_29: +block_30: { -if (x_13 == 0) -{ -lean_object* x_27; -lean_dec(x_19); -if (lean_is_scalar(x_25)) { - x_27 = lean_alloc_ctor(0, 2, 0); -} else { - x_27 = x_25; -} -lean_ctor_set(x_27, 0, x_23); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -else +if (x_14 == 0) { lean_object* x_28; -lean_dec(x_23); -if (lean_is_scalar(x_25)) { +lean_dec(x_20); +if (lean_is_scalar(x_26)) { x_28 = lean_alloc_ctor(0, 2, 0); } else { - x_28 = x_25; + x_28 = x_26; } -lean_ctor_set(x_28, 0, x_19); -lean_ctor_set(x_28, 1, x_26); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_27); return x_28; } +else +{ +lean_object* x_29; +lean_dec(x_24); +if (lean_is_scalar(x_26)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_26; +} +lean_ctor_set(x_29, 0, x_20); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} } } else { -lean_free_object(x_17); -lean_dec(x_19); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -return x_22; +lean_free_object(x_18); +lean_dec(x_20); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +return x_23; } } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_17, 0); -x_44 = lean_ctor_get(x_17, 1); +lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_18, 0); +x_45 = lean_ctor_get(x_18, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_17); -x_45 = 0; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_45, x_6, x_7, x_8, x_9, x_44); -if (lean_obj_tag(x_46) == 0) +lean_dec(x_18); +x_46 = 0; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_47 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_4, x_5, x_3, x_6, x_46, x_7, x_8, x_9, x_10, x_45); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_54; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_55; +x_48 = lean_ctor_get(x_47, 0); 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; +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_50 = x_47; } else { - lean_dec_ref(x_46); - x_49 = lean_box(0); + lean_dec_ref(x_47); + x_50 = lean_box(0); } -x_54 = l_Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2(x_43, x_47); -if (x_54 == 0) +x_55 = l_Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2(x_44, x_48); +if (x_55 == 0) { -if (x_15 == 0) +if (x_16 == 0) { -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -x_50 = x_48; -goto block_53; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +x_51 = x_49; +goto block_54; } else { -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_55 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__3; -lean_inc(x_43); -x_56 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_43); -x_57 = l_Lean_MessageData_ofList(x_56); -x_58 = l_Lean_indentD(x_57); -x_59 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_59, 0, x_55); -lean_ctor_set(x_59, 1, x_58); -x_60 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__5; -x_61 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -lean_inc(x_47); -x_62 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_47); -x_63 = l_Lean_MessageData_ofList(x_62); -x_64 = l_Lean_indentD(x_63); -x_65 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_65, 0, x_61); -lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_logWarning___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__4(x_65, x_6, x_7, x_8, x_9, x_48); -lean_dec(x_9); -lean_dec(x_7); -lean_dec_ref(x_6); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec_ref(x_66); -x_50 = x_67; -goto block_53; +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; +x_56 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__3; +lean_inc(x_44); +x_57 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_44); +x_58 = l_Lean_MessageData_ofList(x_57); +x_59 = l_Lean_indentD(x_58); +x_60 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_59); +x_61 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__5; +x_62 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +lean_inc(x_48); +x_63 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__1(x_48); +x_64 = l_Lean_MessageData_ofList(x_63); +x_65 = l_Lean_indentD(x_64); +x_66 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_66, 0, x_62); +lean_ctor_set(x_66, 1, x_65); +x_67 = l_Lean_logWarning___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__4(x_66, x_7, x_8, x_9, x_10, x_49); +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec_ref(x_67); +x_51 = x_68; +goto block_54; } } else { -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -x_50 = x_48; -goto block_53; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +x_51 = x_49; +goto block_54; } -block_53: +block_54: { -if (x_13 == 0) -{ -lean_object* x_51; -lean_dec(x_43); -if (lean_is_scalar(x_49)) { - x_51 = lean_alloc_ctor(0, 2, 0); -} else { - x_51 = x_49; -} -lean_ctor_set(x_51, 0, x_47); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -else +if (x_14 == 0) { lean_object* x_52; -lean_dec(x_47); -if (lean_is_scalar(x_49)) { +lean_dec(x_44); +if (lean_is_scalar(x_50)) { x_52 = lean_alloc_ctor(0, 2, 0); } else { - x_52 = x_49; + x_52 = x_50; } -lean_ctor_set(x_52, 0, x_43); -lean_ctor_set(x_52, 1, x_50); +lean_ctor_set(x_52, 0, x_48); +lean_ctor_set(x_52, 1, x_51); return x_52; } -} -} else { -lean_dec(x_43); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -return x_46; +lean_object* x_53; +lean_dec(x_48); +if (lean_is_scalar(x_50)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_50; +} +lean_ctor_set(x_53, 0, x_44); +lean_ctor_set(x_53, 1, x_51); +return x_53; } } } else { -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); +lean_dec(x_44); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +return x_47; +} +} +} +else +{ +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); lean_dec(x_5); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -return x_17; +return x_18; } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_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, 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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0___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: { -uint8_t x_17; size_t x_18; size_t x_19; lean_object* x_20; -x_17 = lean_unbox(x_3); -x_18 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_19 = lean_unbox_usize(x_6); +uint8_t x_18; uint8_t x_19; size_t x_20; size_t x_21; lean_object* x_22; +x_18 = lean_unbox(x_3); +x_19 = lean_unbox(x_4); +x_20 = lean_unbox_usize(x_6); lean_dec(x_6); -x_20 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(x_1, x_2, x_17, x_4, x_18, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec_ref(x_4); -return x_20; +x_21 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_22 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0_spec__0(x_1, x_2, x_18, x_19, x_5, x_20, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec_ref(x_5); +return x_22; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_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, 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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___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]; _start: { -uint8_t x_17; size_t x_18; size_t x_19; lean_object* x_20; -x_17 = lean_unbox(x_3); -x_18 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_19 = lean_unbox_usize(x_6); +uint8_t x_18; uint8_t x_19; size_t x_20; size_t x_21; lean_object* x_22; +x_18 = lean_unbox(x_3); +x_19 = lean_unbox(x_4); +x_20 = lean_unbox_usize(x_6); lean_dec(x_6); -x_20 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_1, x_2, x_17, x_4, x_18, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec_ref(x_4); -return x_20; +x_21 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_22 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg(x_1, x_2, x_18, x_19, x_5, x_20, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec_ref(x_5); +return x_22; } } LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___boxed(lean_object** _args) { @@ -48134,23 +48197,25 @@ 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: { -uint8_t x_23; size_t x_24; size_t x_25; lean_object* x_26; -x_23 = lean_unbox(x_3); -x_24 = lean_unbox_usize(x_11); -lean_dec(x_11); -x_25 = lean_unbox_usize(x_12); +uint8_t x_24; uint8_t x_25; size_t x_26; size_t x_27; lean_object* x_28; +x_24 = lean_unbox(x_3); +x_25 = lean_unbox(x_4); +x_26 = lean_unbox_usize(x_12); lean_dec(x_12); -x_26 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0(x_1, x_2, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24, x_25, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); +x_27 = lean_unbox_usize(x_13); +lean_dec(x_13); +x_28 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0(x_1, x_2, x_24, x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_26, x_27, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +lean_dec_ref(x_11); lean_dec_ref(x_10); lean_dec_ref(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_6); lean_dec_ref(x_5); -lean_dec_ref(x_4); -return x_26; +return x_28; } } LEAN_EXPORT lean_object* l_List_beq___at___Option_instBEq_beq___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2) { @@ -48186,23 +48251,25 @@ lean_dec_ref(x_2); return x_7; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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; uint8_t x_14; lean_object* x_15; +x_13 = lean_unbox(x_6); +x_14 = lean_unbox(x_7); +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_3, x_4, x_5, x_13, x_14, x_8, x_9, x_10, x_11, x_12); +lean_dec_ref(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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_6); -x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___lam__0(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); -lean_dec_ref(x_5); -return x_13; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); lean_dec_ref(x_3); -return x_11; +return x_13; } } LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f_visit_x3f_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { @@ -50848,7 +50915,7 @@ lean_object* x_23; double x_24; uint8_t x_25; lean_object* x_26; lean_object* x_ x_23 = lean_ctor_get(x_16, 0); x_24 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_25 = 0; -x_26 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_26 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_27 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_27, 0, x_1); lean_ctor_set(x_27, 1, x_26); @@ -50902,7 +50969,7 @@ lean_inc(x_39); lean_dec(x_16); x_40 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_41 = 0; -x_42 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_42 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_43 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_43, 0, x_1); lean_ctor_set(x_43, 1, x_42); @@ -50978,7 +51045,7 @@ if (lean_is_exclusive(x_16)) { } x_64 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_65 = 0; -x_66 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_66 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_67 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_67, 0, x_1); lean_ctor_set(x_67, 1, x_66); @@ -51084,7 +51151,7 @@ if (lean_is_exclusive(x_16)) { } x_91 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_92 = 0; -x_93 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_93 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_94 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_94, 0, x_1); lean_ctor_set(x_94, 1, x_93); @@ -51212,7 +51279,7 @@ if (lean_is_exclusive(x_110)) { } x_125 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1___closed__0; x_126 = 0; -x_127 = l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0; +x_127 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12; x_128 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_128, 0, x_1); lean_ctor_set(x_128, 1, x_127); @@ -53687,7 +53754,7 @@ block_103: if (x_75 == 0) { lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_76 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__0___redArg(x_18, x_62, x_72, x_74); +x_76 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__0___redArg(x_18, x_64, x_71, x_63); x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); x_78 = lean_ctor_get(x_77, 0); @@ -53695,24 +53762,24 @@ x_79 = lean_unbox(x_78); if (x_79 == 0) { lean_object* x_80; lean_object* x_81; -lean_dec_ref(x_65); +lean_dec_ref(x_74); x_80 = lean_ctor_get(x_76, 1); lean_inc(x_80); lean_dec_ref(x_76); x_81 = lean_ctor_get(x_77, 1); lean_inc(x_81); lean_dec(x_77); -x_19 = x_64; -x_20 = x_73; +x_19 = x_67; +x_20 = x_70; x_21 = x_81; -x_22 = x_63; -x_23 = x_71; -x_24 = x_70; -x_25 = x_66; -x_26 = x_69; -x_27 = x_67; -x_28 = x_72; -x_29 = x_68; +x_22 = x_72; +x_23 = x_66; +x_24 = x_73; +x_25 = x_69; +x_26 = x_68; +x_27 = x_65; +x_28 = x_71; +x_29 = x_62; x_30 = x_80; goto block_61; } @@ -53730,12 +53797,12 @@ x_84 = lean_ctor_get(x_77, 1); x_85 = lean_ctor_get(x_77, 0); lean_dec(x_85); x_86 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; -x_87 = l_Lean_Exception_toMessageData(x_65); +x_87 = l_Lean_Exception_toMessageData(x_74); x_88 = l_Lean_indentD(x_87); lean_ctor_set_tag(x_77, 7); lean_ctor_set(x_77, 1, x_88); lean_ctor_set(x_77, 0, x_86); -x_89 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__1___redArg(x_18, x_77, x_84, x_69, x_67, x_72, x_68, x_82); +x_89 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__1___redArg(x_18, x_77, x_84, x_68, x_65, x_71, x_62, x_82); x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); x_91 = lean_ctor_get(x_89, 1); @@ -53744,17 +53811,17 @@ lean_dec_ref(x_89); x_92 = lean_ctor_get(x_90, 1); lean_inc(x_92); lean_dec(x_90); -x_19 = x_64; -x_20 = x_73; +x_19 = x_67; +x_20 = x_70; x_21 = x_92; -x_22 = x_63; -x_23 = x_71; -x_24 = x_70; -x_25 = x_66; -x_26 = x_69; -x_27 = x_67; -x_28 = x_72; -x_29 = x_68; +x_22 = x_72; +x_23 = x_66; +x_24 = x_73; +x_25 = x_69; +x_26 = x_68; +x_27 = x_65; +x_28 = x_71; +x_29 = x_62; x_30 = x_91; goto block_61; } @@ -53765,12 +53832,12 @@ x_93 = lean_ctor_get(x_77, 1); lean_inc(x_93); lean_dec(x_77); x_94 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_OldCollector_collect___closed__1; -x_95 = l_Lean_Exception_toMessageData(x_65); +x_95 = l_Lean_Exception_toMessageData(x_74); x_96 = l_Lean_indentD(x_95); x_97 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_97, 0, x_94); lean_ctor_set(x_97, 1, x_96); -x_98 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__1___redArg(x_18, x_97, x_93, x_69, x_67, x_72, x_68, x_82); +x_98 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons_spec__1___redArg(x_18, x_97, x_93, x_68, x_65, x_71, x_62, x_82); x_99 = lean_ctor_get(x_98, 0); lean_inc(x_99); x_100 = lean_ctor_get(x_98, 1); @@ -53779,17 +53846,17 @@ lean_dec_ref(x_98); x_101 = lean_ctor_get(x_99, 1); lean_inc(x_101); lean_dec(x_99); -x_19 = x_64; -x_20 = x_73; +x_19 = x_67; +x_20 = x_70; x_21 = x_101; -x_22 = x_63; -x_23 = x_71; -x_24 = x_70; -x_25 = x_66; -x_26 = x_69; -x_27 = x_67; -x_28 = x_72; -x_29 = x_68; +x_22 = x_72; +x_23 = x_66; +x_24 = x_73; +x_25 = x_69; +x_26 = x_68; +x_27 = x_65; +x_28 = x_71; +x_29 = x_62; x_30 = x_100; goto block_61; } @@ -53798,20 +53865,20 @@ goto block_61; else { lean_object* x_102; -lean_dec(x_73); +lean_dec_ref(x_73); lean_dec_ref(x_72); -lean_dec_ref(x_70); -lean_dec_ref(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_66); +lean_dec_ref(x_71); +lean_dec(x_70); +lean_dec(x_69); +lean_dec_ref(x_68); +lean_dec_ref(x_67); +lean_dec(x_65); lean_dec_ref(x_64); -lean_dec_ref(x_63); -lean_dec_ref(x_62); +lean_dec(x_62); lean_dec_ref(x_1); x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_65); -lean_ctor_set(x_102, 1, x_74); +lean_ctor_set(x_102, 0, x_74); +lean_ctor_set(x_102, 1, x_63); return x_102; } } @@ -53823,37 +53890,37 @@ if (x_117 == 0) { uint8_t x_118; x_118 = l_Lean_Exception_isRuntime(x_115); -x_62 = x_106; -x_63 = x_105; -x_64 = x_104; -x_65 = x_115; -x_66 = x_107; -x_67 = x_109; -x_68 = x_110; -x_69 = x_111; -x_70 = x_112; -x_71 = x_113; -x_72 = x_114; -x_73 = x_108; -x_74 = x_116; +x_62 = x_107; +x_63 = x_116; +x_64 = x_109; +x_65 = x_113; +x_66 = x_114; +x_67 = x_104; +x_68 = x_105; +x_69 = x_106; +x_70 = x_108; +x_71 = x_110; +x_72 = x_112; +x_73 = x_111; +x_74 = x_115; x_75 = x_118; goto block_103; } else { -x_62 = x_106; -x_63 = x_105; -x_64 = x_104; -x_65 = x_115; -x_66 = x_107; -x_67 = x_109; -x_68 = x_110; -x_69 = x_111; -x_70 = x_112; -x_71 = x_113; -x_72 = x_114; -x_73 = x_108; -x_74 = x_116; +x_62 = x_107; +x_63 = x_116; +x_64 = x_109; +x_65 = x_113; +x_66 = x_114; +x_67 = x_104; +x_68 = x_105; +x_69 = x_106; +x_70 = x_108; +x_71 = x_110; +x_72 = x_112; +x_73 = x_111; +x_74 = x_115; x_75 = x_117; goto block_103; } @@ -53863,7 +53930,7 @@ block_152: if (lean_obj_tag(x_131) == 0) { lean_object* x_132; lean_object* x_133; -lean_dec_ref(x_120); +lean_dec_ref(x_124); x_132 = lean_ctor_get(x_131, 0); lean_inc(x_132); x_133 = lean_ctor_get(x_132, 0); @@ -53876,17 +53943,17 @@ lean_dec_ref(x_131); x_135 = lean_ctor_get(x_132, 1); lean_inc(x_135); lean_dec(x_132); -x_19 = x_121; -x_20 = x_124; +x_19 = x_120; +x_20 = x_125; x_21 = x_135; -x_22 = x_122; -x_23 = x_129; -x_24 = x_128; -x_25 = x_123; -x_26 = x_127; -x_27 = x_125; -x_28 = x_130; -x_29 = x_126; +x_22 = x_128; +x_23 = x_130; +x_24 = x_127; +x_25 = x_122; +x_26 = x_121; +x_27 = x_129; +x_28 = x_126; +x_29 = x_123; x_30 = x_134; goto block_61; } @@ -53894,15 +53961,15 @@ else { uint8_t x_136; lean_inc_ref(x_133); -lean_dec_ref(x_130); +lean_dec(x_129); lean_dec_ref(x_128); lean_dec_ref(x_127); -lean_dec(x_126); +lean_dec_ref(x_126); lean_dec(x_125); -lean_dec(x_124); lean_dec(x_123); -lean_dec_ref(x_122); +lean_dec(x_122); lean_dec_ref(x_121); +lean_dec_ref(x_120); lean_dec_ref(x_1); x_136 = !lean_is_exclusive(x_131); if (x_136 == 0) @@ -53979,12 +54046,12 @@ lean_inc(x_150); x_151 = lean_ctor_get(x_131, 1); lean_inc(x_151); lean_dec_ref(x_131); -x_104 = x_121; -x_105 = x_122; -x_106 = x_120; +x_104 = x_120; +x_105 = x_121; +x_106 = x_122; x_107 = x_123; -x_108 = x_124; -x_109 = x_125; +x_108 = x_125; +x_109 = x_124; x_110 = x_126; x_111 = x_127; x_112 = x_128; @@ -54084,17 +54151,17 @@ lean_inc(x_157); lean_inc_ref(x_156); lean_inc_ref(x_154); x_187 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons___lam__0(x_1, x_18, x_173, x_186, x_185, x_154, x_155, x_156, x_157, x_158, x_159, x_160, x_161, x_184); -x_120 = x_153; -x_121 = x_166; -x_122 = x_154; -x_123 = x_157; -x_124 = x_164; -x_125 = x_159; -x_126 = x_161; -x_127 = x_158; -x_128 = x_156; -x_129 = x_155; -x_130 = x_160; +x_120 = x_166; +x_121 = x_158; +x_122 = x_157; +x_123 = x_161; +x_124 = x_153; +x_125 = x_164; +x_126 = x_160; +x_127 = x_156; +x_128 = x_154; +x_129 = x_159; +x_130 = x_155; x_131 = x_187; goto block_152; } @@ -54136,17 +54203,17 @@ lean_inc(x_157); lean_inc_ref(x_156); lean_inc_ref(x_154); x_199 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons___lam__0(x_1, x_18, x_173, x_197, x_198, x_154, x_155, x_156, x_157, x_158, x_159, x_160, x_161, x_196); -x_120 = x_153; -x_121 = x_166; -x_122 = x_154; -x_123 = x_157; -x_124 = x_164; -x_125 = x_159; -x_126 = x_161; -x_127 = x_158; -x_128 = x_156; -x_129 = x_155; -x_130 = x_160; +x_120 = x_166; +x_121 = x_158; +x_122 = x_157; +x_123 = x_161; +x_124 = x_153; +x_125 = x_164; +x_126 = x_160; +x_127 = x_156; +x_128 = x_154; +x_129 = x_159; +x_130 = x_155; x_131 = x_199; goto block_152; } @@ -54181,17 +54248,17 @@ lean_inc(x_157); lean_inc_ref(x_156); lean_inc_ref(x_154); x_209 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectSingletons___lam__0(x_1, x_18, x_173, x_207, x_208, x_154, x_155, x_156, x_157, x_158, x_159, x_160, x_161, x_206); -x_120 = x_153; -x_121 = x_166; -x_122 = x_154; -x_123 = x_157; -x_124 = x_164; -x_125 = x_159; -x_126 = x_161; -x_127 = x_158; -x_128 = x_156; -x_129 = x_155; -x_130 = x_160; +x_120 = x_166; +x_121 = x_158; +x_122 = x_157; +x_123 = x_161; +x_124 = x_153; +x_125 = x_164; +x_126 = x_160; +x_127 = x_156; +x_128 = x_154; +x_129 = x_159; +x_130 = x_155; x_131 = x_209; goto block_152; } @@ -56069,370 +56136,370 @@ x_13 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns(x_1, x_2, x_3, x_ return x_13; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(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, size_t x_9, size_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(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, size_t x_10, size_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) { _start: { -lean_object* x_17; lean_object* x_18; uint8_t x_23; -x_23 = lean_usize_dec_lt(x_10, x_9); -if (x_23 == 0) +lean_object* x_18; lean_object* x_19; uint8_t x_24; +x_24 = lean_usize_dec_lt(x_11, x_10); +if (x_24 == 0) { -lean_object* x_24; -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_6); +lean_object* x_25; +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_16); -return x_24; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_12); +lean_ctor_set(x_25, 1, x_17); +return x_25; } else { -lean_object* x_25; lean_object* x_26; -lean_dec_ref(x_11); -x_25 = lean_array_uget(x_8, x_10); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_25); +lean_object* x_26; lean_object* x_27; +lean_dec_ref(x_12); +x_26 = lean_array_uget(x_9, x_11); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_26); lean_inc_ref(x_4); lean_inc_ref(x_2); lean_inc_ref(x_1); -x_26 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(x_1, x_2, x_3, x_4, x_25, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); +x_27 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(x_1, x_2, x_3, x_4, x_26, x_5, x_13, x_14, x_15, x_16, x_17); if (lean_obj_tag(x_27) == 0) { -if (x_5 == 0) -{ lean_object* x_28; -lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 1); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec_ref(x_26); -lean_inc_ref(x_6); -x_17 = x_6; -x_18 = x_28; -goto block_22; +if (lean_obj_tag(x_28) == 0) +{ +if (x_6 == 0) +{ +lean_object* x_29; +lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec_ref(x_27); +lean_inc_ref(x_7); +x_18 = x_7; +x_19 = x_29; +goto block_23; } else { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec_ref(x_26); -lean_inc(x_15); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc_ref(x_12); +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec_ref(x_27); +lean_inc(x_16); +lean_inc_ref(x_15); +lean_inc(x_14); +lean_inc_ref(x_13); lean_inc_ref(x_4); lean_inc_ref(x_2); lean_inc_ref(x_1); -x_30 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f(x_1, x_2, x_3, x_4, x_25, x_12, x_13, x_14, x_15, x_29); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); +x_31 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectGroundPattern_x3f(x_1, x_2, x_3, x_4, x_26, x_13, x_14, x_15, x_16, x_30); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; -x_32 = lean_ctor_get(x_30, 1); +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -lean_dec_ref(x_30); -lean_inc_ref(x_6); -x_17 = x_6; -x_18 = x_32; -goto block_22; +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec_ref(x_31); +lean_inc_ref(x_7); +x_18 = x_7; +x_19 = x_33; +goto block_23; } else { -uint8_t x_33; -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) -{ uint8_t x_34; -x_34 = !lean_is_exclusive(x_30); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_7); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_34 = !lean_is_exclusive(x_32); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_31, 0); -x_36 = lean_ctor_get(x_30, 0); -lean_dec(x_36); -x_37 = !lean_is_exclusive(x_35); -if (x_37 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_38 = lean_ctor_get(x_35, 0); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_35, 0, x_40); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_31); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_7); -lean_ctor_set(x_30, 0, x_42); -return x_30; +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_32, 0); +x_37 = lean_ctor_get(x_31, 0); +lean_dec(x_37); +x_38 = !lean_is_exclusive(x_36); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_36, 0); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_36, 0, x_41); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_32); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_8); +lean_ctor_set(x_31, 0, x_43); +return x_31; } else { -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_43 = lean_ctor_get(x_35, 0); -x_44 = lean_ctor_get(x_35, 1); +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_44 = lean_ctor_get(x_36, 0); +x_45 = lean_ctor_get(x_36, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_35); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -lean_ctor_set(x_31, 0, x_47); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_31); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_7); -lean_ctor_set(x_30, 0, x_49); -return x_30; +lean_dec(x_36); +x_46 = lean_box(0); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +lean_ctor_set(x_32, 0, x_48); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_32); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_8); +lean_ctor_set(x_31, 0, x_50); +return x_31; } } 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; lean_object* x_59; lean_object* x_60; -x_50 = lean_ctor_get(x_31, 0); -x_51 = lean_ctor_get(x_30, 1); -lean_inc(x_51); -lean_dec(x_30); -x_52 = lean_ctor_get(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; lean_object* x_60; lean_object* x_61; +x_51 = lean_ctor_get(x_32, 0); +x_52 = lean_ctor_get(x_31, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_50, 1); +lean_dec(x_31); +x_53 = lean_ctor_get(x_51, 0); 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; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_55 = x_51; } else { - lean_dec_ref(x_50); - x_54 = lean_box(0); + lean_dec_ref(x_51); + x_55 = lean_box(0); } -x_55 = lean_box(0); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_52); -lean_ctor_set(x_56, 1, x_55); -if (lean_is_scalar(x_54)) { - x_57 = lean_alloc_ctor(0, 2, 0); +x_56 = lean_box(0); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +if (lean_is_scalar(x_55)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_57 = x_54; + x_58 = x_55; } -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_53); -lean_ctor_set(x_31, 0, x_57); -x_58 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_58, 0, x_31); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_7); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_54); +lean_ctor_set(x_32, 0, x_58); +x_59 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_59, 0, x_32); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_51); -return x_60; +lean_ctor_set(x_60, 1, x_8); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_52); +return x_61; } } 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; -x_61 = lean_ctor_get(x_31, 0); -lean_inc(x_61); -lean_dec(x_31); -x_62 = lean_ctor_get(x_30, 1); +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; +x_62 = lean_ctor_get(x_32, 0); lean_inc(x_62); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_63 = x_30; +lean_dec(x_32); +x_63 = lean_ctor_get(x_31, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_64 = x_31; } else { - lean_dec_ref(x_30); - x_63 = lean_box(0); + lean_dec_ref(x_31); + x_64 = lean_box(0); } -x_64 = lean_ctor_get(x_61, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_61, 1); +x_65 = lean_ctor_get(x_62, 0); lean_inc(x_65); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_66 = x_61; +x_66 = lean_ctor_get(x_62, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_67 = x_62; } else { - lean_dec_ref(x_61); - x_66 = lean_box(0); + lean_dec_ref(x_62); + x_67 = lean_box(0); } -x_67 = lean_box(0); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_64); -lean_ctor_set(x_68, 1, x_67); -if (lean_is_scalar(x_66)) { - x_69 = lean_alloc_ctor(0, 2, 0); +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_65); +lean_ctor_set(x_69, 1, x_68); +if (lean_is_scalar(x_67)) { + x_70 = lean_alloc_ctor(0, 2, 0); } else { - x_69 = x_66; + x_70 = x_67; } -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_65); -x_70 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_66); x_71 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_71, 0, x_70); -x_72 = lean_alloc_ctor(0, 2, 0); +x_72 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_7); -if (lean_is_scalar(x_63)) { - x_73 = lean_alloc_ctor(0, 2, 0); -} else { - x_73 = x_63; -} +x_73 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_62); -return x_73; +lean_ctor_set(x_73, 1, x_8); +if (lean_is_scalar(x_64)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_64; +} +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_63); +return x_74; } } } else { -uint8_t x_74; -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_6); +uint8_t x_75; +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_74 = !lean_is_exclusive(x_30); -if (x_74 == 0) +x_75 = !lean_is_exclusive(x_31); +if (x_75 == 0) { -return x_30; +return x_31; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_30, 0); -x_76 = lean_ctor_get(x_30, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_31, 0); +x_77 = lean_ctor_get(x_31, 1); +lean_inc(x_77); lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_30); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_dec(x_31); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } } } } else { -uint8_t x_78; -lean_dec(x_25); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_6); +uint8_t x_79; +lean_dec(x_26); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_78 = !lean_is_exclusive(x_26); -if (x_78 == 0) +x_79 = !lean_is_exclusive(x_27); +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_26, 0); -lean_dec(x_79); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_27); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_7); -lean_ctor_set(x_26, 0, x_81); -return x_26; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_27, 0); +lean_dec(x_80); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_28); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_8); +lean_ctor_set(x_27, 0, x_82); +return x_27; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_82 = lean_ctor_get(x_26, 1); -lean_inc(x_82); -lean_dec(x_26); -x_83 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_83, 0, x_27); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_7); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_83 = lean_ctor_get(x_27, 1); +lean_inc(x_83); +lean_dec(x_27); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_28); x_85 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_82); -return x_85; +lean_ctor_set(x_85, 1, x_8); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_83); +return x_86; } } } else { -uint8_t x_86; -lean_dec(x_25); -lean_dec(x_15); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec_ref(x_6); +uint8_t x_87; +lean_dec(x_26); +lean_dec(x_16); +lean_dec_ref(x_15); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_86 = !lean_is_exclusive(x_26); -if (x_86 == 0) +x_87 = !lean_is_exclusive(x_27); +if (x_87 == 0) { -return x_26; +return x_27; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_26, 0); -x_88 = lean_ctor_get(x_26, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_27, 0); +x_89 = lean_ctor_get(x_27, 1); +lean_inc(x_89); lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_26); -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; +lean_dec(x_27); +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; } } } -block_22: +block_23: { -size_t x_19; size_t x_20; -x_19 = 1; -x_20 = lean_usize_add(x_10, x_19); -x_10 = x_20; -x_11 = x_17; -x_16 = x_18; +size_t x_20; size_t x_21; +x_20 = 1; +x_21 = lean_usize_add(x_11, x_20); +x_11 = x_21; +x_12 = x_18; +x_17 = x_19; goto _start; } } @@ -56449,563 +56516,583 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(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, lean_object* x_11) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_inc_ref(x_2); -x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities(x_2, x_5); -x_12 = lean_box(0); +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectUsedPriorities(x_2, x_6); x_13 = lean_box(0); -x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect___closed__0; -x_15 = lean_array_size(x_11); -x_16 = 0; -x_17 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(x_1, x_4, x_5, x_2, x_3, x_14, x_13, x_11, x_15, x_16, x_14, x_6, x_7, x_8, x_9, x_10); -lean_dec_ref(x_11); -if (lean_obj_tag(x_17) == 0) +x_14 = lean_box(0); +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect___closed__0; +x_16 = lean_array_size(x_12); +x_17 = 0; +x_18 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(x_1, x_5, x_6, x_2, x_4, x_3, x_15, x_14, x_12, x_16, x_17, x_15, x_7, x_8, x_9, x_10, x_11); +lean_dec_ref(x_12); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); +lean_object* x_19; lean_object* x_20; x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_18); -if (lean_obj_tag(x_19) == 0) +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +if (lean_obj_tag(x_20) == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) { -lean_object* x_21; -x_21 = lean_ctor_get(x_17, 0); -lean_dec(x_21); -lean_ctor_set(x_17, 0, x_12); -return x_17; +lean_object* x_22; +x_22 = lean_ctor_get(x_18, 0); +lean_dec(x_22); +lean_ctor_set(x_18, 0, x_13); +return x_18; } else { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_17, 1); -lean_inc(x_22); -lean_dec(x_17); +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_13); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_18); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_18, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_20, 0); +lean_inc(x_27); +lean_dec_ref(x_20); +lean_ctor_set(x_18, 0, x_27); +return x_18; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_dec(x_18); +x_29 = lean_ctor_get(x_20, 0); +lean_inc(x_29); +lean_dec_ref(x_20); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) +{ +return x_18; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_18, 0); +x_33 = lean_ctor_get(x_18, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_18); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0___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: +{ +uint8_t x_18; uint8_t x_19; size_t x_20; size_t x_21; lean_object* x_22; +x_18 = lean_unbox(x_5); +x_19 = lean_unbox(x_6); +x_20 = lean_unbox_usize(x_10); +lean_dec(x_10); +x_21 = lean_unbox_usize(x_11); +lean_dec(x_11); +x_22 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(x_1, x_2, x_3, x_4, x_18, x_19, x_7, x_8, x_9, x_20, x_21, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec_ref(x_9); +lean_dec_ref(x_3); +return x_22; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect___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; uint8_t x_13; lean_object* x_14; +x_12 = lean_unbox(x_3); +x_13 = lean_unbox(x_4); +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(x_1, x_2, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec_ref(x_6); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t 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) { +_start: +{ +lean_object* x_16; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc_ref(x_9); +lean_inc_ref(x_3); +x_16 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(x_3, x_5, x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec_ref(x_9); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 0); +lean_dec(x_19); +x_20 = lean_box(0); +lean_ctor_set(x_16, 0, x_20); +return x_16; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_dec(x_16); +x_22 = lean_box(0); x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_12); -lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); return x_23; } } else { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_17); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_17, 0); -lean_dec(x_25); -x_26 = lean_ctor_get(x_19, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_17, 0); +lean_inc(x_24); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + x_25 = x_17; +} else { + lean_dec_ref(x_17); + x_25 = lean_box(0); +} +x_26 = lean_ctor_get(x_16, 1); lean_inc(x_26); -lean_dec_ref(x_19); -lean_ctor_set(x_17, 0, x_26); -return x_17; +lean_dec_ref(x_16); +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_28 = lean_ctor_get(x_24, 0); +x_29 = lean_ctor_get(x_24, 1); +x_30 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__6; +x_31 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___redArg(x_30, x_13, x_26); +x_32 = !lean_is_exclusive(x_31); +if (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; uint8_t x_51; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); +x_35 = lean_array_get_size(x_9); +lean_dec_ref(x_9); +x_51 = lean_unbox(x_33); +lean_dec(x_33); +if (x_51 == 0) +{ +lean_free_object(x_31); +lean_free_object(x_24); +x_36 = x_11; +x_37 = x_12; +x_38 = x_13; +x_39 = x_14; +x_40 = x_34; +goto block_50; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_17, 1); -lean_inc(x_27); -lean_dec(x_17); -x_28 = lean_ctor_get(x_19, 0); +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_1); +x_52 = l_Lean_Meta_Grind_Origin_pp(x_1); +x_53 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___closed__1; +lean_ctor_set_tag(x_31, 7); +lean_ctor_set(x_31, 1, x_53); +lean_ctor_set(x_31, 0, x_52); +x_54 = lean_box(0); lean_inc(x_28); -lean_dec_ref(x_19); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -return x_29; -} -} -} -else -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_17); -if (x_30 == 0) -{ -return x_17; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_17, 0); -x_32 = lean_ctor_get(x_17, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_17); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -uint8_t x_17; size_t x_18; size_t x_19; lean_object* x_20; -x_17 = lean_unbox(x_5); -x_18 = lean_unbox_usize(x_9); -lean_dec(x_9); -x_19 = lean_unbox_usize(x_10); -lean_dec(x_10); -x_20 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect_spec__0(x_1, x_2, x_3, x_4, x_17, x_6, x_7, x_8, x_18, x_19, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec_ref(x_8); -lean_dec_ref(x_3); -return x_20; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec_ref(x_5); -return x_12; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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) { -_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_ref(x_8); -lean_inc_ref(x_3); -x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_collect(x_3, x_5, x_6, 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; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 0) -{ -uint8_t x_17; -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_8); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_15, 0); -lean_dec(x_18); -x_19 = lean_box(0); -lean_ctor_set(x_15, 0, x_19); -return x_15; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_dec(x_15); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -if (lean_is_exclusive(x_16)) { - lean_ctor_release(x_16, 0); - x_24 = x_16; -} else { - lean_dec_ref(x_16); - x_24 = lean_box(0); -} -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -lean_dec_ref(x_15); -x_26 = !lean_is_exclusive(x_23); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_27 = lean_ctor_get(x_23, 0); -x_28 = lean_ctor_get(x_23, 1); -x_29 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__6; -x_30 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___redArg(x_29, x_12, x_25); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 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; lean_object* x_39; uint8_t x_50; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_30, 1); -x_34 = lean_array_get_size(x_8); -lean_dec_ref(x_8); -x_50 = lean_unbox(x_32); -lean_dec(x_32); -if (x_50 == 0) -{ -lean_free_object(x_30); -lean_free_object(x_23); -x_35 = x_10; -x_36 = x_11; -x_37 = x_12; -x_38 = x_13; -x_39 = x_33; -goto block_49; -} -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_inc_ref(x_1); -x_51 = l_Lean_Meta_Grind_Origin_pp(x_1); -x_52 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___closed__1; -lean_ctor_set_tag(x_30, 7); -lean_ctor_set(x_30, 1, x_52); -lean_ctor_set(x_30, 0, x_51); -x_53 = lean_box(0); -lean_inc(x_27); -x_54 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__0(x_27, x_53); -x_55 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__1(x_54, x_53); -x_56 = l_Lean_MessageData_ofList(x_55); -lean_ctor_set_tag(x_23, 7); -lean_ctor_set(x_23, 1, x_56); -lean_ctor_set(x_23, 0, x_30); -x_57 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_29, x_23, x_10, x_11, x_12, x_13, x_33); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec_ref(x_57); -x_35 = x_10; -x_36 = x_11; -x_37 = x_12; -x_38 = x_13; -x_39 = x_58; -goto block_49; -} -block_49: -{ -lean_object* x_40; uint8_t x_41; -lean_inc(x_27); -lean_inc_ref(x_1); -x_40 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen(x_7, x_1, x_27, x_35, x_36, x_37, x_38, x_39); -lean_dec(x_38); -lean_dec(x_36); -lean_dec_ref(x_35); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -x_43 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_43, 0, x_2); -lean_ctor_set(x_43, 1, x_3); -lean_ctor_set(x_43, 2, x_34); -lean_ctor_set(x_43, 3, x_27); -lean_ctor_set(x_43, 4, x_28); -lean_ctor_set(x_43, 5, x_1); -lean_ctor_set(x_43, 6, x_4); -if (lean_is_scalar(x_24)) { - x_44 = lean_alloc_ctor(1, 1, 0); -} else { - x_44 = x_24; -} -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_40, 0, x_44); -return x_40; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_40, 1); -lean_inc(x_45); -lean_dec(x_40); -x_46 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_46, 0, x_2); -lean_ctor_set(x_46, 1, x_3); -lean_ctor_set(x_46, 2, x_34); -lean_ctor_set(x_46, 3, x_27); -lean_ctor_set(x_46, 4, x_28); -lean_ctor_set(x_46, 5, x_1); -lean_ctor_set(x_46, 6, x_4); -if (lean_is_scalar(x_24)) { - x_47 = lean_alloc_ctor(1, 1, 0); -} else { - x_47 = x_24; -} -lean_ctor_set(x_47, 0, x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -return x_48; -} -} -} -else -{ -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; uint8_t x_74; -x_59 = lean_ctor_get(x_30, 0); -x_60 = lean_ctor_get(x_30, 1); -lean_inc(x_60); +x_55 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__0(x_28, x_54); +x_56 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__1(x_55, x_54); +x_57 = l_Lean_MessageData_ofList(x_56); +lean_ctor_set_tag(x_24, 7); +lean_ctor_set(x_24, 1, x_57); +lean_ctor_set(x_24, 0, x_31); +x_58 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_30, x_24, x_11, x_12, x_13, x_14, x_34); +x_59 = lean_ctor_get(x_58, 1); lean_inc(x_59); -lean_dec(x_30); -x_61 = lean_array_get_size(x_8); -lean_dec_ref(x_8); -x_74 = lean_unbox(x_59); -lean_dec(x_59); -if (x_74 == 0) +lean_dec_ref(x_58); +x_36 = x_11; +x_37 = x_12; +x_38 = x_13; +x_39 = x_14; +x_40 = x_59; +goto block_50; +} +block_50: { -lean_free_object(x_23); -x_62 = x_10; -x_63 = x_11; -x_64 = x_12; -x_65 = x_13; -x_66 = x_60; -goto block_73; +lean_object* x_41; uint8_t x_42; +lean_inc(x_28); +lean_inc_ref(x_1); +x_41 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen(x_7, x_1, x_28, x_36, x_37, x_38, x_39, x_40); +lean_dec(x_39); +lean_dec(x_37); +lean_dec_ref(x_36); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +x_44 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_44, 0, x_2); +lean_ctor_set(x_44, 1, x_3); +lean_ctor_set(x_44, 2, x_35); +lean_ctor_set(x_44, 3, x_28); +lean_ctor_set(x_44, 4, x_29); +lean_ctor_set(x_44, 5, x_1); +lean_ctor_set(x_44, 6, x_4); +if (lean_is_scalar(x_25)) { + x_45 = lean_alloc_ctor(1, 1, 0); +} else { + x_45 = x_25; +} +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_41, 0, x_45); +return x_41; } 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; lean_object* x_83; -lean_inc_ref(x_1); -x_75 = l_Lean_Meta_Grind_Origin_pp(x_1); -x_76 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___closed__1; -x_77 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -x_78 = lean_box(0); -lean_inc(x_27); -x_79 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__0(x_27, x_78); -x_80 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__1(x_79, x_78); -x_81 = l_Lean_MessageData_ofList(x_80); -lean_ctor_set_tag(x_23, 7); -lean_ctor_set(x_23, 1, x_81); -lean_ctor_set(x_23, 0, x_77); -x_82 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_29, x_23, x_10, x_11, x_12, x_13, x_60); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec_ref(x_82); -x_62 = x_10; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_41, 1); +lean_inc(x_46); +lean_dec(x_41); +x_47 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_47, 0, x_2); +lean_ctor_set(x_47, 1, x_3); +lean_ctor_set(x_47, 2, x_35); +lean_ctor_set(x_47, 3, x_28); +lean_ctor_set(x_47, 4, x_29); +lean_ctor_set(x_47, 5, x_1); +lean_ctor_set(x_47, 6, x_4); +if (lean_is_scalar(x_25)) { + x_48 = lean_alloc_ctor(1, 1, 0); +} else { + x_48 = x_25; +} +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +return x_49; +} +} +} +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; uint8_t x_75; +x_60 = lean_ctor_get(x_31, 0); +x_61 = lean_ctor_get(x_31, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_31); +x_62 = lean_array_get_size(x_9); +lean_dec_ref(x_9); +x_75 = lean_unbox(x_60); +lean_dec(x_60); +if (x_75 == 0) +{ +lean_free_object(x_24); x_63 = x_11; x_64 = x_12; x_65 = x_13; -x_66 = x_83; -goto block_73; +x_66 = x_14; +x_67 = x_61; +goto block_74; } -block_73: +else { -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_inc(x_27); +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_inc_ref(x_1); -x_67 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen(x_7, x_1, x_27, x_62, x_63, x_64, x_65, x_66); -lean_dec(x_65); -lean_dec(x_63); -lean_dec_ref(x_62); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_69 = x_67; -} else { - lean_dec_ref(x_67); - x_69 = lean_box(0); +x_76 = l_Lean_Meta_Grind_Origin_pp(x_1); +x_77 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___closed__1; +x_78 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_79 = lean_box(0); +lean_inc(x_28); +x_80 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__0(x_28, x_79); +x_81 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__1(x_80, x_79); +x_82 = l_Lean_MessageData_ofList(x_81); +lean_ctor_set_tag(x_24, 7); +lean_ctor_set(x_24, 1, x_82); +lean_ctor_set(x_24, 0, x_78); +x_83 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_30, x_24, x_11, x_12, x_13, x_14, x_61); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +lean_dec_ref(x_83); +x_63 = x_11; +x_64 = x_12; +x_65 = x_13; +x_66 = x_14; +x_67 = x_84; +goto block_74; } -x_70 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_70, 0, x_2); -lean_ctor_set(x_70, 1, x_3); -lean_ctor_set(x_70, 2, x_61); -lean_ctor_set(x_70, 3, x_27); -lean_ctor_set(x_70, 4, x_28); -lean_ctor_set(x_70, 5, x_1); -lean_ctor_set(x_70, 6, x_4); -if (lean_is_scalar(x_24)) { - x_71 = lean_alloc_ctor(1, 1, 0); +block_74: +{ +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_inc(x_28); +lean_inc_ref(x_1); +x_68 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen(x_7, x_1, x_28, x_63, x_64, x_65, x_66, x_67); +lean_dec(x_66); +lean_dec(x_64); +lean_dec_ref(x_63); +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; } else { - x_71 = x_24; + lean_dec_ref(x_68); + x_70 = lean_box(0); } -lean_ctor_set(x_71, 0, x_70); -if (lean_is_scalar(x_69)) { - x_72 = lean_alloc_ctor(0, 2, 0); +x_71 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_71, 0, x_2); +lean_ctor_set(x_71, 1, x_3); +lean_ctor_set(x_71, 2, x_62); +lean_ctor_set(x_71, 3, x_28); +lean_ctor_set(x_71, 4, x_29); +lean_ctor_set(x_71, 5, x_1); +lean_ctor_set(x_71, 6, x_4); +if (lean_is_scalar(x_25)) { + x_72 = lean_alloc_ctor(1, 1, 0); } else { - x_72 = x_69; + x_72 = x_25; } lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_68); -return x_72; +if (lean_is_scalar(x_70)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_70; +} +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_69); +return x_73; } } } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_104; -x_84 = lean_ctor_get(x_23, 0); -x_85 = lean_ctor_get(x_23, 1); +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; uint8_t x_105; +x_85 = lean_ctor_get(x_24, 0); +x_86 = lean_ctor_get(x_24, 1); +lean_inc(x_86); lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_23); -x_86 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__6; -x_87 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___redArg(x_86, x_12, x_25); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); +lean_dec(x_24); +x_87 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__6; +x_88 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__0___redArg(x_87, x_13, x_26); +x_89 = lean_ctor_get(x_88, 0); 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; +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_91 = x_88; } else { - lean_dec_ref(x_87); - x_90 = lean_box(0); + lean_dec_ref(x_88); + x_91 = lean_box(0); } -x_91 = lean_array_get_size(x_8); -lean_dec_ref(x_8); -x_104 = lean_unbox(x_88); -lean_dec(x_88); -if (x_104 == 0) +x_92 = lean_array_get_size(x_9); +lean_dec_ref(x_9); +x_105 = lean_unbox(x_89); +lean_dec(x_89); +if (x_105 == 0) { -lean_dec(x_90); -x_92 = x_10; +lean_dec(x_91); x_93 = x_11; x_94 = x_12; x_95 = x_13; -x_96 = x_89; -goto block_103; +x_96 = x_14; +x_97 = x_90; +goto block_104; } 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; lean_object* x_112; lean_object* x_113; lean_object* x_114; +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_inc_ref(x_1); -x_105 = l_Lean_Meta_Grind_Origin_pp(x_1); -x_106 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___closed__1; -if (lean_is_scalar(x_90)) { - x_107 = lean_alloc_ctor(7, 2, 0); +x_106 = l_Lean_Meta_Grind_Origin_pp(x_1); +x_107 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen___closed__1; +if (lean_is_scalar(x_91)) { + x_108 = lean_alloc_ctor(7, 2, 0); } else { - x_107 = x_90; - lean_ctor_set_tag(x_107, 7); + x_108 = x_91; + lean_ctor_set_tag(x_108, 7); } -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -x_108 = lean_box(0); -lean_inc(x_84); -x_109 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__0(x_84, x_108); -x_110 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__1(x_109, x_108); -x_111 = l_Lean_MessageData_ofList(x_110); -x_112 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_112, 0, x_107); -lean_ctor_set(x_112, 1, x_111); -x_113 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_86, x_112, x_10, x_11, x_12, x_13, x_89); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec_ref(x_113); -x_92 = x_10; +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +x_109 = lean_box(0); +lean_inc(x_85); +x_110 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__0(x_85, x_109); +x_111 = l_List_mapTR_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__1(x_110, x_109); +x_112 = l_Lean_MessageData_ofList(x_111); +x_113 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_113, 0, x_108); +lean_ctor_set(x_113, 1, x_112); +x_114 = l_Lean_addTrace___at___Lean_Meta_Grind_mkEMatchTheoremCore_spec__1(x_87, x_113, x_11, x_12, x_13, x_14, x_90); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +lean_dec_ref(x_114); x_93 = x_11; x_94 = x_12; x_95 = x_13; -x_96 = x_114; -goto block_103; +x_96 = x_14; +x_97 = x_115; +goto block_104; } -block_103: +block_104: { -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_inc(x_84); +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_inc(x_85); lean_inc_ref(x_1); -x_97 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen(x_7, x_1, x_84, x_92, x_93, x_94, x_95, x_96); -lean_dec(x_95); -lean_dec(x_93); -lean_dec_ref(x_92); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_99 = x_97; +x_98 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen(x_7, x_1, x_85, x_93, x_94, x_95, x_96, x_97); +lean_dec(x_96); +lean_dec(x_94); +lean_dec_ref(x_93); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_100 = x_98; } else { - lean_dec_ref(x_97); - x_99 = lean_box(0); + lean_dec_ref(x_98); + x_100 = lean_box(0); } -x_100 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_100, 0, x_2); -lean_ctor_set(x_100, 1, x_3); -lean_ctor_set(x_100, 2, x_91); -lean_ctor_set(x_100, 3, x_84); -lean_ctor_set(x_100, 4, x_85); -lean_ctor_set(x_100, 5, x_1); -lean_ctor_set(x_100, 6, x_4); -if (lean_is_scalar(x_24)) { - x_101 = lean_alloc_ctor(1, 1, 0); +x_101 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_101, 0, x_2); +lean_ctor_set(x_101, 1, x_3); +lean_ctor_set(x_101, 2, x_92); +lean_ctor_set(x_101, 3, x_85); +lean_ctor_set(x_101, 4, x_86); +lean_ctor_set(x_101, 5, x_1); +lean_ctor_set(x_101, 6, x_4); +if (lean_is_scalar(x_25)) { + x_102 = lean_alloc_ctor(1, 1, 0); } else { - x_101 = x_24; -} -lean_ctor_set(x_101, 0, x_100); -if (lean_is_scalar(x_99)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_99; + x_102 = x_25; } lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_98); -return x_102; +if (lean_is_scalar(x_100)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_100; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_99); +return x_103; } } } } else { -uint8_t x_115; -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_8); +uint8_t x_116; +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec_ref(x_9); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_115 = !lean_is_exclusive(x_15); -if (x_115 == 0) +x_116 = !lean_is_exclusive(x_16); +if (x_116 == 0) { -return x_15; +return x_16; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_15, 0); -x_117 = lean_ctor_get(x_15, 1); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_16, 0); +x_118 = lean_ctor_get(x_16, 1); +lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_15); -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -return x_118; +lean_dec(x_16); +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; } } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___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_15; uint8_t x_16; lean_object* x_17; -x_15 = lean_unbox(x_6); -x_16 = lean_unbox(x_7); -x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_1, x_2, x_3, x_4, x_5, x_15, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec_ref(x_9); -return x_17; +uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; +x_16 = lean_unbox(x_6); +x_17 = lean_unbox(x_7); +x_18 = lean_unbox(x_8); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec_ref(x_10); +return x_19; } } LEAN_EXPORT lean_object* l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_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) { @@ -57075,398 +57162,398 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__2; x_2 = lean_unsigned_to_nat(13u); -x_3 = lean_unsigned_to_nat(1375u); +x_3 = lean_unsigned_to_nat(1389u); x_4 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__5; x_5 = l_Lean_Meta_Grind_isGenPattern_x3f___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t 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) { _start: { -lean_object* x_15; uint8_t x_16; -x_15 = l_Lean_Meta_Context_config(x_10); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = l_Lean_Meta_Context_config(x_11); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -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; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint64_t x_27; uint8_t x_28; -x_17 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); -x_19 = lean_ctor_get(x_10, 2); -lean_inc_ref(x_19); -x_20 = lean_ctor_get(x_10, 3); +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; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint64_t x_28; uint8_t x_29; +x_18 = lean_ctor_get_uint8(x_11, sizeof(void*)*7); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_11, 2); lean_inc_ref(x_20); -x_21 = lean_ctor_get(x_10, 4); -lean_inc(x_21); -x_22 = lean_ctor_get(x_10, 5); +x_21 = lean_ctor_get(x_11, 3); +lean_inc_ref(x_21); +x_22 = lean_ctor_get(x_11, 4); lean_inc(x_22); -x_23 = lean_ctor_get(x_10, 6); +x_23 = lean_ctor_get(x_11, 5); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 1); -x_25 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 2); -x_26 = 1; -lean_ctor_set_uint8(x_15, 9, x_26); -x_27 = l_Lean_Meta_Context_configKey(x_10); -x_28 = !lean_is_exclusive(x_10); -if (x_28 == 0) +x_24 = lean_ctor_get(x_11, 6); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_11, sizeof(void*)*7 + 1); +x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*7 + 2); +x_27 = 1; +lean_ctor_set_uint8(x_16, 9, x_27); +x_28 = l_Lean_Meta_Context_configKey(x_11); +x_29 = !lean_is_exclusive(x_11); +if (x_29 == 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; lean_object* x_35; uint64_t x_36; uint64_t x_37; uint64_t x_38; uint64_t x_39; uint64_t x_40; lean_object* x_41; -x_29 = lean_ctor_get(x_10, 6); -lean_dec(x_29); -x_30 = lean_ctor_get(x_10, 5); +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; uint64_t x_37; uint64_t x_38; uint64_t x_39; uint64_t x_40; uint64_t x_41; lean_object* x_42; +x_30 = lean_ctor_get(x_11, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_10, 4); +x_31 = lean_ctor_get(x_11, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_10, 3); +x_32 = lean_ctor_get(x_11, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_10, 2); +x_33 = lean_ctor_get(x_11, 3); lean_dec(x_33); -x_34 = lean_ctor_get(x_10, 1); +x_34 = lean_ctor_get(x_11, 2); lean_dec(x_34); -x_35 = lean_ctor_get(x_10, 0); +x_35 = lean_ctor_get(x_11, 1); lean_dec(x_35); -x_36 = 2; -x_37 = lean_uint64_shift_right(x_27, x_36); -x_38 = lean_uint64_shift_left(x_37, x_36); -x_39 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___lam__0___closed__1; -x_40 = lean_uint64_lor(x_38, x_39); -x_41 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_41, 0, x_15); -lean_ctor_set_uint64(x_41, sizeof(void*)*1, x_40); -lean_ctor_set(x_10, 0, x_41); +x_36 = lean_ctor_get(x_11, 0); +lean_dec(x_36); +x_37 = 2; +x_38 = lean_uint64_shift_right(x_28, x_37); +x_39 = lean_uint64_shift_left(x_38, x_37); +x_40 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___lam__0___closed__1; +x_41 = lean_uint64_lor(x_39, x_40); +x_42 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_42, 0, x_16); +lean_ctor_set_uint64(x_42, sizeof(void*)*1, x_41); +lean_ctor_set(x_11, 0, x_42); switch (lean_obj_tag(x_1)) { case 4: { -lean_object* x_42; -lean_dec_ref(x_9); -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_42 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_42) == 0) +lean_object* x_43; +lean_dec_ref(x_10); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_43 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec_ref(x_42); -x_45 = l_Array_isEmpty___redArg(x_43); -if (x_45 == 0) +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec_ref(x_43); +x_46 = l_Array_isEmpty___redArg(x_44); +if (x_46 == 0) { -lean_object* x_46; -x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_43, x_10, x_11, x_12, x_13, x_44); -lean_dec(x_43); -return x_46; +lean_object* x_47; +x_47 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_44, x_11, x_12, x_13, x_14, x_45); +lean_dec(x_44); +return x_47; } else { -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_dec(x_43); -lean_dec_ref(x_8); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +lean_dec(x_44); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); -x_47 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__1; -x_48 = l_Lean_Meta_Grind_Origin_pp(x_2); -x_49 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__3; -x_51 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_51, x_10, x_11, x_12, x_13, x_44); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +x_48 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__1; +x_49 = l_Lean_Meta_Grind_Origin_pp(x_2); +x_50 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__3; +x_52 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_52, x_11, x_12, x_13, x_14, x_45); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_11); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) { -return x_52; +return x_53; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_52, 0); -x_55 = lean_ctor_get(x_52, 1); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_53, 0); +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_52); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_dec(x_53); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } else { -uint8_t x_57; -lean_dec_ref(x_10); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_8); +uint8_t x_58; +lean_dec_ref(x_11); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_57 = !lean_is_exclusive(x_42); -if (x_57 == 0) +x_58 = !lean_is_exclusive(x_43); +if (x_58 == 0) { -return x_42; +return x_43; } else { -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_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_43, 0); +x_60 = lean_ctor_get(x_43, 1); +lean_inc(x_60); lean_inc(x_59); -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; +lean_dec(x_43); +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; } } } case 5: { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_62 = lean_array_push(x_61, x_9); -x_63 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_62, x_10, x_11, x_12, x_13, x_14); -lean_dec_ref(x_62); -return x_63; -} -case 6: -{ -lean_object* x_64; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_64 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -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_array_push(x_65, x_9); -x_68 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_67, x_10, x_11, x_12, x_13, x_66); -lean_dec_ref(x_67); -return x_68; -} -else -{ -uint8_t x_69; -lean_dec_ref(x_10); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_5); -lean_dec_ref(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_69 = !lean_is_exclusive(x_64); -if (x_69 == 0) -{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_63 = lean_array_push(x_62, x_10); +x_64 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_63, x_11, x_12, x_13, x_14, x_15); +lean_dec_ref(x_63); return x_64; } -else +case 6: { -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); -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; -} -} -} -case 7: +lean_object* x_65; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_65 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_73; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_73 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_73) == 0) -{ -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_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec_ref(x_73); -x_76 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_77 = lean_array_push(x_76, x_9); -x_78 = l_Array_reverse___redArg(x_74); -x_79 = l_Array_append___redArg(x_77, x_78); -lean_dec_ref(x_78); -x_80 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_79, x_10, x_11, x_12, x_13, x_75); -lean_dec_ref(x_79); -return x_80; +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec_ref(x_65); +x_68 = lean_array_push(x_66, x_10); +x_69 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_68, x_11, x_12, x_13, x_14, x_67); +lean_dec_ref(x_68); +return x_69; } else { -uint8_t x_81; +uint8_t x_70; +lean_dec_ref(x_11); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); lean_dec_ref(x_10); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_81 = !lean_is_exclusive(x_73); -if (x_81 == 0) +x_70 = !lean_is_exclusive(x_65); +if (x_70 == 0) { +return x_65; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_65, 0); +x_72 = lean_ctor_get(x_65, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_65); +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 -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_73, 0); -x_83 = lean_ctor_get(x_73, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_73); -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; } } -} -case 8: +case 7: { -lean_object* x_85; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_85 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_85) == 0) +lean_object* x_74; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_74 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_74) == 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; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec_ref(x_85); -x_88 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_89 = lean_array_push(x_88, x_9); -x_90 = l_Array_append___redArg(x_89, x_86); -lean_dec(x_86); -x_91 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_90, x_10, x_11, x_12, x_13, x_87); -lean_dec_ref(x_90); -return x_91; +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; +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); +x_77 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_78 = lean_array_push(x_77, x_10); +x_79 = l_Array_reverse___redArg(x_75); +x_80 = l_Array_append___redArg(x_78, x_79); +lean_dec_ref(x_79); +x_81 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_80, x_11, x_12, x_13, x_14, x_76); +lean_dec_ref(x_80); +return x_81; } else { -uint8_t x_92; +uint8_t x_82; +lean_dec_ref(x_11); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); lean_dec_ref(x_10); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_92 = !lean_is_exclusive(x_85); -if (x_92 == 0) +x_82 = !lean_is_exclusive(x_74); +if (x_82 == 0) { +return x_74; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_74, 0); +x_84 = lean_ctor_get(x_74, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_74); +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_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_85, 0); -x_94 = lean_ctor_get(x_85, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_85); -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; } } -} -default: +case 8: { -lean_object* x_96; lean_object* x_97; -lean_dec_ref(x_9); -x_96 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__6; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_97 = l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_spec__0(x_96, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_97) == 0) +lean_object* x_86; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_86 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_86) == 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); -lean_dec_ref(x_97); -x_100 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_98, x_10, x_11, x_12, x_13, x_99); -lean_dec(x_98); -return x_100; +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_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 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_90 = lean_array_push(x_89, x_10); +x_91 = l_Array_append___redArg(x_90, x_87); +lean_dec(x_87); +x_92 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_91, x_11, x_12, x_13, x_14, x_88); +lean_dec_ref(x_91); +return x_92; } else { -uint8_t x_101; +uint8_t x_93; +lean_dec_ref(x_11); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); lean_dec_ref(x_10); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_8); +lean_dec_ref(x_9); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_93 = !lean_is_exclusive(x_86); +if (x_93 == 0) +{ +return x_86; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_86, 0); +x_95 = lean_ctor_get(x_86, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_86); +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; +} +} +} +default: +{ +lean_object* x_97; lean_object* x_98; +lean_dec_ref(x_10); +x_97 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__6; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_11); +x_98 = l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_spec__0(x_97, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec_ref(x_98); +x_101 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_99, x_11, x_12, x_13, x_14, x_100); +lean_dec(x_99); +return x_101; +} +else +{ +uint8_t x_102; +lean_dec_ref(x_11); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec(x_1); -x_101 = !lean_is_exclusive(x_97); -if (x_101 == 0) +x_102 = !lean_is_exclusive(x_98); +if (x_102 == 0) { -return x_97; +return x_98; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_97, 0); -x_103 = lean_ctor_get(x_97, 1); +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_98, 0); +x_104 = lean_ctor_get(x_98, 1); +lean_inc(x_104); lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_97); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; +lean_dec(x_98); +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; } } } @@ -57474,371 +57561,371 @@ return x_104; } else { -uint64_t x_105; uint64_t x_106; uint64_t x_107; uint64_t x_108; uint64_t x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_10); -x_105 = 2; -x_106 = lean_uint64_shift_right(x_27, x_105); -x_107 = lean_uint64_shift_left(x_106, x_105); -x_108 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___lam__0___closed__1; -x_109 = lean_uint64_lor(x_107, x_108); -x_110 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_110, 0, x_15); -lean_ctor_set_uint64(x_110, sizeof(void*)*1, x_109); -x_111 = lean_alloc_ctor(0, 7, 3); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_18); -lean_ctor_set(x_111, 2, x_19); -lean_ctor_set(x_111, 3, x_20); -lean_ctor_set(x_111, 4, x_21); -lean_ctor_set(x_111, 5, x_22); -lean_ctor_set(x_111, 6, x_23); -lean_ctor_set_uint8(x_111, sizeof(void*)*7, x_17); -lean_ctor_set_uint8(x_111, sizeof(void*)*7 + 1, x_24); -lean_ctor_set_uint8(x_111, sizeof(void*)*7 + 2, x_25); +uint64_t x_106; uint64_t x_107; uint64_t x_108; uint64_t x_109; uint64_t x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_11); +x_106 = 2; +x_107 = lean_uint64_shift_right(x_28, x_106); +x_108 = lean_uint64_shift_left(x_107, x_106); +x_109 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___lam__0___closed__1; +x_110 = lean_uint64_lor(x_108, x_109); +x_111 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_111, 0, x_16); +lean_ctor_set_uint64(x_111, sizeof(void*)*1, x_110); +x_112 = lean_alloc_ctor(0, 7, 3); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_19); +lean_ctor_set(x_112, 2, x_20); +lean_ctor_set(x_112, 3, x_21); +lean_ctor_set(x_112, 4, x_22); +lean_ctor_set(x_112, 5, x_23); +lean_ctor_set(x_112, 6, x_24); +lean_ctor_set_uint8(x_112, sizeof(void*)*7, x_18); +lean_ctor_set_uint8(x_112, sizeof(void*)*7 + 1, x_25); +lean_ctor_set_uint8(x_112, sizeof(void*)*7 + 2, x_26); switch (lean_obj_tag(x_1)) { case 4: { -lean_object* x_112; -lean_dec_ref(x_9); -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_111); -x_112 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_111, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_112) == 0) +lean_object* x_113; +lean_dec_ref(x_10); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_112); +x_113 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_112, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_113) == 0) { -lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); +lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); -lean_dec_ref(x_112); -x_115 = l_Array_isEmpty___redArg(x_113); -if (x_115 == 0) +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec_ref(x_113); +x_116 = l_Array_isEmpty___redArg(x_114); +if (x_116 == 0) { -lean_object* x_116; -x_116 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_113, x_111, x_11, x_12, x_13, x_114); -lean_dec(x_113); -return x_116; +lean_object* x_117; +x_117 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_114, x_112, x_12, x_13, x_14, x_115); +lean_dec(x_114); +return x_117; } else { -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_dec(x_113); -lean_dec_ref(x_8); +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_dec(x_114); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); -x_117 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__1; -x_118 = l_Lean_Meta_Grind_Origin_pp(x_2); -x_119 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -x_120 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__3; -x_121 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -x_122 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_121, x_111, x_11, x_12, x_13, x_114); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_111); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); +x_118 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__1; +x_119 = l_Lean_Meta_Grind_Origin_pp(x_2); +x_120 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +x_121 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__3; +x_122 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_122, x_112, x_12, x_13, x_14, x_115); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_112); +x_124 = lean_ctor_get(x_123, 0); 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; +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_126 = x_123; } else { - lean_dec_ref(x_122); - x_125 = lean_box(0); + lean_dec_ref(x_123); + x_126 = lean_box(0); } -if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); } else { - x_126 = x_125; + x_127 = x_126; } -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_124); -return x_126; +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; } } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -lean_dec_ref(x_111); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_8); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec_ref(x_112); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_127 = lean_ctor_get(x_112, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_112, 1); +x_128 = lean_ctor_get(x_113, 0); lean_inc(x_128); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_129 = x_112; +x_129 = lean_ctor_get(x_113, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_130 = x_113; } else { - lean_dec_ref(x_112); - x_129 = lean_box(0); + lean_dec_ref(x_113); + x_130 = lean_box(0); } -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(1, 2, 0); } else { - x_130 = x_129; + x_131 = x_130; } -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -return x_130; +lean_ctor_set(x_131, 0, x_128); +lean_ctor_set(x_131, 1, x_129); +return x_131; } } case 5: { -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_132 = lean_array_push(x_131, x_9); -x_133 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_132, x_111, x_11, x_12, x_13, x_14); -lean_dec_ref(x_132); -return x_133; +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_133 = lean_array_push(x_132, x_10); +x_134 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_133, x_112, x_12, x_13, x_14, x_15); +lean_dec_ref(x_133); +return x_134; } case 6: { -lean_object* x_134; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_111); -x_134 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_111, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_134) == 0) +lean_object* x_135; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_112); +x_135 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_112, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_135) == 0) { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_136 = lean_ctor_get(x_135, 0); lean_inc(x_136); -lean_dec_ref(x_134); -x_137 = lean_array_push(x_135, x_9); -x_138 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_137, x_111, x_11, x_12, x_13, x_136); -lean_dec_ref(x_137); -return x_138; +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec_ref(x_135); +x_138 = lean_array_push(x_136, x_10); +x_139 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_138, x_112, x_12, x_13, x_14, x_137); +lean_dec_ref(x_138); +return x_139; } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec_ref(x_111); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec_ref(x_112); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_139 = lean_ctor_get(x_134, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_134, 1); +x_140 = lean_ctor_get(x_135, 0); lean_inc(x_140); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_141 = x_134; +x_141 = lean_ctor_get(x_135, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_142 = x_135; } else { - lean_dec_ref(x_134); - x_141 = lean_box(0); + lean_dec_ref(x_135); + x_142 = lean_box(0); } -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(1, 2, 0); } else { - x_142 = x_141; + x_143 = x_142; } -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +return x_143; } } case 7: { -lean_object* x_143; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_111); -x_143 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_111, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_143) == 0) +lean_object* x_144; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_112); +x_144 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_112, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_144) == 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; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); +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_inc(x_145); -lean_dec_ref(x_143); -x_146 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_147 = lean_array_push(x_146, x_9); -x_148 = l_Array_reverse___redArg(x_144); -x_149 = l_Array_append___redArg(x_147, x_148); -lean_dec_ref(x_148); -x_150 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_149, x_111, x_11, x_12, x_13, x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +lean_dec_ref(x_144); +x_147 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_148 = lean_array_push(x_147, x_10); +x_149 = l_Array_reverse___redArg(x_145); +x_150 = l_Array_append___redArg(x_148, x_149); lean_dec_ref(x_149); -return x_150; +x_151 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_150, x_112, x_12, x_13, x_14, x_146); +lean_dec_ref(x_150); +return x_151; } else { -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec_ref(x_111); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec_ref(x_112); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_151 = lean_ctor_get(x_143, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_143, 1); +x_152 = lean_ctor_get(x_144, 0); lean_inc(x_152); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_153 = x_143; +x_153 = lean_ctor_get(x_144, 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; } else { - lean_dec_ref(x_143); - x_153 = lean_box(0); + lean_dec_ref(x_144); + x_154 = lean_box(0); } -if (lean_is_scalar(x_153)) { - x_154 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(1, 2, 0); } else { - x_154 = x_153; + x_155 = x_154; } -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_152); -return x_154; +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +return x_155; } } case 8: { -lean_object* x_155; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_111); -x_155 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_111, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_155) == 0) +lean_object* x_156; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_112); +x_156 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_112, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_156) == 0) { -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_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); -lean_dec_ref(x_155); -x_158 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_159 = lean_array_push(x_158, x_9); -x_160 = l_Array_append___redArg(x_159, x_156); -lean_dec(x_156); -x_161 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_160, x_111, x_11, x_12, x_13, x_157); -lean_dec_ref(x_160); -return x_161; +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +lean_dec_ref(x_156); +x_159 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_160 = lean_array_push(x_159, x_10); +x_161 = l_Array_append___redArg(x_160, x_157); +lean_dec(x_157); +x_162 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_161, x_112, x_12, x_13, x_14, x_158); +lean_dec_ref(x_161); +return x_162; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec_ref(x_111); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec_ref(x_112); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_162 = lean_ctor_get(x_155, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_155, 1); +x_163 = lean_ctor_get(x_156, 0); lean_inc(x_163); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_164 = x_155; +x_164 = lean_ctor_get(x_156, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_165 = x_156; } else { - lean_dec_ref(x_155); - x_164 = lean_box(0); + lean_dec_ref(x_156); + x_165 = lean_box(0); } -if (lean_is_scalar(x_164)) { - x_165 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); } else { - x_165 = x_164; + x_166 = x_165; } -lean_ctor_set(x_165, 0, x_162); -lean_ctor_set(x_165, 1, x_163); -return x_165; +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; } } default: { -lean_object* x_166; lean_object* x_167; -lean_dec_ref(x_9); -x_166 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__6; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_111); -x_167 = l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_spec__0(x_166, x_111, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_167) == 0) +lean_object* x_167; lean_object* x_168; +lean_dec_ref(x_10); +x_167 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__6; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_112); +x_168 = l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_spec__0(x_167, x_112, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_168) == 0) { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_168, 0); lean_inc(x_169); -lean_dec_ref(x_167); -x_170 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_168, x_111, x_11, x_12, x_13, x_169); -lean_dec(x_168); -return x_170; +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +lean_dec_ref(x_168); +x_171 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_169, x_112, x_12, x_13, x_14, x_170); +lean_dec(x_169); +return x_171; } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec_ref(x_111); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_8); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec_ref(x_112); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec(x_1); -x_171 = lean_ctor_get(x_167, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_167, 1); +x_172 = lean_ctor_get(x_168, 0); lean_inc(x_172); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - lean_ctor_release(x_167, 1); - x_173 = x_167; +x_173 = lean_ctor_get(x_168, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_174 = x_168; } else { - lean_dec_ref(x_167); - x_173 = lean_box(0); + lean_dec_ref(x_168); + x_174 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(1, 2, 0); } else { - x_174 = x_173; + x_175 = x_174; } -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_173); +return x_175; } } } @@ -57846,905 +57933,911 @@ return x_174; } else { -uint8_t x_175; uint8_t x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; uint8_t x_189; uint8_t x_190; uint8_t x_191; uint8_t 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; lean_object* x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; lean_object* x_203; uint64_t x_204; lean_object* x_205; uint64_t x_206; uint64_t x_207; uint64_t x_208; uint64_t x_209; uint64_t x_210; lean_object* x_211; lean_object* x_212; -x_175 = lean_ctor_get_uint8(x_15, 0); -x_176 = lean_ctor_get_uint8(x_15, 1); -x_177 = lean_ctor_get_uint8(x_15, 2); -x_178 = lean_ctor_get_uint8(x_15, 3); -x_179 = lean_ctor_get_uint8(x_15, 4); -x_180 = lean_ctor_get_uint8(x_15, 5); -x_181 = lean_ctor_get_uint8(x_15, 6); -x_182 = lean_ctor_get_uint8(x_15, 7); -x_183 = lean_ctor_get_uint8(x_15, 8); -x_184 = lean_ctor_get_uint8(x_15, 10); -x_185 = lean_ctor_get_uint8(x_15, 11); -x_186 = lean_ctor_get_uint8(x_15, 12); -x_187 = lean_ctor_get_uint8(x_15, 13); -x_188 = lean_ctor_get_uint8(x_15, 14); -x_189 = lean_ctor_get_uint8(x_15, 15); -x_190 = lean_ctor_get_uint8(x_15, 16); -x_191 = lean_ctor_get_uint8(x_15, 17); -x_192 = lean_ctor_get_uint8(x_15, 18); -lean_dec(x_15); -x_193 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); -x_194 = lean_ctor_get(x_10, 1); -lean_inc(x_194); -x_195 = lean_ctor_get(x_10, 2); -lean_inc_ref(x_195); -x_196 = lean_ctor_get(x_10, 3); +uint8_t x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; uint8_t x_189; uint8_t x_190; uint8_t x_191; uint8_t x_192; uint8_t x_193; uint8_t 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; uint8_t x_202; uint8_t x_203; lean_object* x_204; uint64_t x_205; lean_object* x_206; uint64_t x_207; uint64_t x_208; uint64_t x_209; uint64_t x_210; uint64_t x_211; lean_object* x_212; lean_object* x_213; +x_176 = lean_ctor_get_uint8(x_16, 0); +x_177 = lean_ctor_get_uint8(x_16, 1); +x_178 = lean_ctor_get_uint8(x_16, 2); +x_179 = lean_ctor_get_uint8(x_16, 3); +x_180 = lean_ctor_get_uint8(x_16, 4); +x_181 = lean_ctor_get_uint8(x_16, 5); +x_182 = lean_ctor_get_uint8(x_16, 6); +x_183 = lean_ctor_get_uint8(x_16, 7); +x_184 = lean_ctor_get_uint8(x_16, 8); +x_185 = lean_ctor_get_uint8(x_16, 10); +x_186 = lean_ctor_get_uint8(x_16, 11); +x_187 = lean_ctor_get_uint8(x_16, 12); +x_188 = lean_ctor_get_uint8(x_16, 13); +x_189 = lean_ctor_get_uint8(x_16, 14); +x_190 = lean_ctor_get_uint8(x_16, 15); +x_191 = lean_ctor_get_uint8(x_16, 16); +x_192 = lean_ctor_get_uint8(x_16, 17); +x_193 = lean_ctor_get_uint8(x_16, 18); +lean_dec(x_16); +x_194 = lean_ctor_get_uint8(x_11, sizeof(void*)*7); +x_195 = lean_ctor_get(x_11, 1); +lean_inc(x_195); +x_196 = lean_ctor_get(x_11, 2); lean_inc_ref(x_196); -x_197 = lean_ctor_get(x_10, 4); -lean_inc(x_197); -x_198 = lean_ctor_get(x_10, 5); +x_197 = lean_ctor_get(x_11, 3); +lean_inc_ref(x_197); +x_198 = lean_ctor_get(x_11, 4); lean_inc(x_198); -x_199 = lean_ctor_get(x_10, 6); +x_199 = lean_ctor_get(x_11, 5); lean_inc(x_199); -x_200 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 1); -x_201 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 2); -x_202 = 1; -x_203 = lean_alloc_ctor(0, 0, 19); -lean_ctor_set_uint8(x_203, 0, x_175); -lean_ctor_set_uint8(x_203, 1, x_176); -lean_ctor_set_uint8(x_203, 2, x_177); -lean_ctor_set_uint8(x_203, 3, x_178); -lean_ctor_set_uint8(x_203, 4, x_179); -lean_ctor_set_uint8(x_203, 5, x_180); -lean_ctor_set_uint8(x_203, 6, x_181); -lean_ctor_set_uint8(x_203, 7, x_182); -lean_ctor_set_uint8(x_203, 8, x_183); -lean_ctor_set_uint8(x_203, 9, x_202); -lean_ctor_set_uint8(x_203, 10, x_184); -lean_ctor_set_uint8(x_203, 11, x_185); -lean_ctor_set_uint8(x_203, 12, x_186); -lean_ctor_set_uint8(x_203, 13, x_187); -lean_ctor_set_uint8(x_203, 14, x_188); -lean_ctor_set_uint8(x_203, 15, x_189); -lean_ctor_set_uint8(x_203, 16, x_190); -lean_ctor_set_uint8(x_203, 17, x_191); -lean_ctor_set_uint8(x_203, 18, x_192); -x_204 = l_Lean_Meta_Context_configKey(x_10); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - lean_ctor_release(x_10, 2); - lean_ctor_release(x_10, 3); - lean_ctor_release(x_10, 4); - lean_ctor_release(x_10, 5); - lean_ctor_release(x_10, 6); - x_205 = x_10; +x_200 = lean_ctor_get(x_11, 6); +lean_inc(x_200); +x_201 = lean_ctor_get_uint8(x_11, sizeof(void*)*7 + 1); +x_202 = lean_ctor_get_uint8(x_11, sizeof(void*)*7 + 2); +x_203 = 1; +x_204 = lean_alloc_ctor(0, 0, 19); +lean_ctor_set_uint8(x_204, 0, x_176); +lean_ctor_set_uint8(x_204, 1, x_177); +lean_ctor_set_uint8(x_204, 2, x_178); +lean_ctor_set_uint8(x_204, 3, x_179); +lean_ctor_set_uint8(x_204, 4, x_180); +lean_ctor_set_uint8(x_204, 5, x_181); +lean_ctor_set_uint8(x_204, 6, x_182); +lean_ctor_set_uint8(x_204, 7, x_183); +lean_ctor_set_uint8(x_204, 8, x_184); +lean_ctor_set_uint8(x_204, 9, x_203); +lean_ctor_set_uint8(x_204, 10, x_185); +lean_ctor_set_uint8(x_204, 11, x_186); +lean_ctor_set_uint8(x_204, 12, x_187); +lean_ctor_set_uint8(x_204, 13, x_188); +lean_ctor_set_uint8(x_204, 14, x_189); +lean_ctor_set_uint8(x_204, 15, x_190); +lean_ctor_set_uint8(x_204, 16, x_191); +lean_ctor_set_uint8(x_204, 17, x_192); +lean_ctor_set_uint8(x_204, 18, x_193); +x_205 = l_Lean_Meta_Context_configKey(x_11); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + lean_ctor_release(x_11, 2); + lean_ctor_release(x_11, 3); + lean_ctor_release(x_11, 4); + lean_ctor_release(x_11, 5); + lean_ctor_release(x_11, 6); + x_206 = x_11; } else { - lean_dec_ref(x_10); - x_205 = lean_box(0); + lean_dec_ref(x_11); + x_206 = lean_box(0); } -x_206 = 2; -x_207 = lean_uint64_shift_right(x_204, x_206); -x_208 = lean_uint64_shift_left(x_207, x_206); -x_209 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___lam__0___closed__1; -x_210 = lean_uint64_lor(x_208, x_209); -x_211 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_211, 0, x_203); -lean_ctor_set_uint64(x_211, sizeof(void*)*1, x_210); -if (lean_is_scalar(x_205)) { - x_212 = lean_alloc_ctor(0, 7, 3); +x_207 = 2; +x_208 = lean_uint64_shift_right(x_205, x_207); +x_209 = lean_uint64_shift_left(x_208, x_207); +x_210 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___lam__0___closed__1; +x_211 = lean_uint64_lor(x_209, x_210); +x_212 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_212, 0, x_204); +lean_ctor_set_uint64(x_212, sizeof(void*)*1, x_211); +if (lean_is_scalar(x_206)) { + x_213 = lean_alloc_ctor(0, 7, 3); } else { - x_212 = x_205; + x_213 = x_206; } -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_194); -lean_ctor_set(x_212, 2, x_195); -lean_ctor_set(x_212, 3, x_196); -lean_ctor_set(x_212, 4, x_197); -lean_ctor_set(x_212, 5, x_198); -lean_ctor_set(x_212, 6, x_199); -lean_ctor_set_uint8(x_212, sizeof(void*)*7, x_193); -lean_ctor_set_uint8(x_212, sizeof(void*)*7 + 1, x_200); -lean_ctor_set_uint8(x_212, sizeof(void*)*7 + 2, x_201); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_195); +lean_ctor_set(x_213, 2, x_196); +lean_ctor_set(x_213, 3, x_197); +lean_ctor_set(x_213, 4, x_198); +lean_ctor_set(x_213, 5, x_199); +lean_ctor_set(x_213, 6, x_200); +lean_ctor_set_uint8(x_213, sizeof(void*)*7, x_194); +lean_ctor_set_uint8(x_213, sizeof(void*)*7 + 1, x_201); +lean_ctor_set_uint8(x_213, sizeof(void*)*7 + 2, x_202); switch (lean_obj_tag(x_1)) { case 4: { -lean_object* x_213; -lean_dec_ref(x_9); -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_212); -x_213 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_212, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_213) == 0) +lean_object* x_214; +lean_dec_ref(x_10); +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_213); +x_214 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_213, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_214; lean_object* x_215; uint8_t x_216; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); +lean_object* x_215; lean_object* x_216; uint8_t x_217; +x_215 = lean_ctor_get(x_214, 0); lean_inc(x_215); -lean_dec_ref(x_213); -x_216 = l_Array_isEmpty___redArg(x_214); -if (x_216 == 0) +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec_ref(x_214); +x_217 = l_Array_isEmpty___redArg(x_215); +if (x_217 == 0) { -lean_object* x_217; -x_217 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_214, x_212, x_11, x_12, x_13, x_215); -lean_dec(x_214); -return x_217; +lean_object* x_218; +x_218 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_215, x_213, x_12, x_13, x_14, x_216); +lean_dec(x_215); +return x_218; } else { -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_dec(x_214); -lean_dec_ref(x_8); +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_dec(x_215); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); -x_218 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__1; -x_219 = l_Lean_Meta_Grind_Origin_pp(x_2); -x_220 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_220, 0, x_218); -lean_ctor_set(x_220, 1, x_219); -x_221 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__3; -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___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_222, x_212, x_11, x_12, x_13, x_215); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_212); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); +x_219 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__1; +x_220 = l_Lean_Meta_Grind_Origin_pp(x_2); +x_221 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +x_222 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__3; +x_223 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_223, 0, x_221); +lean_ctor_set(x_223, 1, x_222); +x_224 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_223, x_213, x_12, x_13, x_14, x_216); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_213); +x_225 = lean_ctor_get(x_224, 0); lean_inc(x_225); -if (lean_is_exclusive(x_223)) { - lean_ctor_release(x_223, 0); - lean_ctor_release(x_223, 1); - x_226 = x_223; +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_227 = x_224; } else { - lean_dec_ref(x_223); - x_226 = lean_box(0); + lean_dec_ref(x_224); + x_227 = lean_box(0); } -if (lean_is_scalar(x_226)) { - x_227 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_227)) { + x_228 = lean_alloc_ctor(1, 2, 0); } else { - x_227 = x_226; + x_228 = x_227; } -lean_ctor_set(x_227, 0, x_224); -lean_ctor_set(x_227, 1, x_225); -return x_227; +lean_ctor_set(x_228, 0, x_225); +lean_ctor_set(x_228, 1, x_226); +return x_228; } } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec_ref(x_212); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_8); +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_dec_ref(x_213); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_228 = lean_ctor_get(x_213, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_213, 1); +x_229 = lean_ctor_get(x_214, 0); lean_inc(x_229); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_230 = x_213; +x_230 = lean_ctor_get(x_214, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_231 = x_214; } else { - lean_dec_ref(x_213); - x_230 = lean_box(0); + lean_dec_ref(x_214); + x_231 = lean_box(0); } -if (lean_is_scalar(x_230)) { - x_231 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(1, 2, 0); } else { - x_231 = x_230; + x_232 = x_231; } -lean_ctor_set(x_231, 0, x_228); -lean_ctor_set(x_231, 1, x_229); -return x_231; +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +return x_232; } } case 5: { -lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_232 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_233 = lean_array_push(x_232, x_9); -x_234 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_233, x_212, x_11, x_12, x_13, x_14); -lean_dec_ref(x_233); -return x_234; +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_234 = lean_array_push(x_233, x_10); +x_235 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_234, x_213, x_12, x_13, x_14, x_15); +lean_dec_ref(x_234); +return x_235; } case 6: { -lean_object* x_235; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_212); -x_235 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_212, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_235) == 0) +lean_object* x_236; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_213); +x_236 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_213, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_236) == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -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; lean_object* x_239; lean_object* x_240; +x_237 = lean_ctor_get(x_236, 0); lean_inc(x_237); -lean_dec_ref(x_235); -x_238 = lean_array_push(x_236, x_9); -x_239 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_238, x_212, x_11, x_12, x_13, x_237); -lean_dec_ref(x_238); -return x_239; +x_238 = lean_ctor_get(x_236, 1); +lean_inc(x_238); +lean_dec_ref(x_236); +x_239 = lean_array_push(x_237, x_10); +x_240 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_239, x_213, x_12, x_13, x_14, x_238); +lean_dec_ref(x_239); +return x_240; } else { -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -lean_dec_ref(x_212); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec_ref(x_213); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_240 = lean_ctor_get(x_235, 0); -lean_inc(x_240); -x_241 = lean_ctor_get(x_235, 1); +x_241 = lean_ctor_get(x_236, 0); lean_inc(x_241); -if (lean_is_exclusive(x_235)) { - lean_ctor_release(x_235, 0); - lean_ctor_release(x_235, 1); - x_242 = x_235; +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +if (lean_is_exclusive(x_236)) { + lean_ctor_release(x_236, 0); + lean_ctor_release(x_236, 1); + x_243 = x_236; } else { - lean_dec_ref(x_235); - x_242 = lean_box(0); + lean_dec_ref(x_236); + 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; } } case 7: { -lean_object* x_244; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_212); -x_244 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_212, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_244) == 0) +lean_object* x_245; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_213); +x_245 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_213, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_245) == 0) { -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; -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_246 = lean_ctor_get(x_245, 0); lean_inc(x_246); -lean_dec_ref(x_244); -x_247 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_248 = lean_array_push(x_247, x_9); -x_249 = l_Array_reverse___redArg(x_245); -x_250 = l_Array_append___redArg(x_248, x_249); -lean_dec_ref(x_249); -x_251 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_250, x_212, x_11, x_12, x_13, x_246); +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec_ref(x_245); +x_248 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_249 = lean_array_push(x_248, x_10); +x_250 = l_Array_reverse___redArg(x_246); +x_251 = l_Array_append___redArg(x_249, x_250); lean_dec_ref(x_250); -return x_251; +x_252 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_251, x_213, x_12, x_13, x_14, x_247); +lean_dec_ref(x_251); +return x_252; } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -lean_dec_ref(x_212); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +lean_dec_ref(x_213); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_252 = lean_ctor_get(x_244, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_244, 1); +x_253 = lean_ctor_get(x_245, 0); lean_inc(x_253); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_254 = x_244; +x_254 = lean_ctor_get(x_245, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + x_255 = x_245; } else { - lean_dec_ref(x_244); - x_254 = lean_box(0); + lean_dec_ref(x_245); + x_255 = lean_box(0); } -if (lean_is_scalar(x_254)) { - x_255 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_255)) { + x_256 = lean_alloc_ctor(1, 2, 0); } else { - x_255 = x_254; + x_256 = x_255; } -lean_ctor_set(x_255, 0, x_252); -lean_ctor_set(x_255, 1, x_253); -return x_255; +lean_ctor_set(x_256, 0, x_253); +lean_ctor_set(x_256, 1, x_254); +return x_256; } } case 8: { -lean_object* x_256; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_212); -x_256 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_8, x_212, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_256) == 0) +lean_object* x_257; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_213); +x_257 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_9, x_213, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_257) == 0) { -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_258 = lean_ctor_get(x_257, 0); lean_inc(x_258); -lean_dec_ref(x_256); -x_259 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; -x_260 = lean_array_push(x_259, x_9); -x_261 = l_Array_append___redArg(x_260, x_257); -lean_dec(x_257); -x_262 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_261, x_212, x_11, x_12, x_13, x_258); -lean_dec_ref(x_261); -return x_262; +x_259 = lean_ctor_get(x_257, 1); +lean_inc(x_259); +lean_dec_ref(x_257); +x_260 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__4; +x_261 = lean_array_push(x_260, x_10); +x_262 = l_Array_append___redArg(x_261, x_258); +lean_dec(x_258); +x_263 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_262, x_213, x_12, x_13, x_14, x_259); +lean_dec_ref(x_262); +return x_263; } else { -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -lean_dec_ref(x_212); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +lean_dec_ref(x_213); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_10); lean_dec_ref(x_9); -lean_dec_ref(x_8); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_263 = lean_ctor_get(x_256, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_256, 1); +x_264 = lean_ctor_get(x_257, 0); lean_inc(x_264); -if (lean_is_exclusive(x_256)) { - lean_ctor_release(x_256, 0); - lean_ctor_release(x_256, 1); - x_265 = x_256; +x_265 = lean_ctor_get(x_257, 1); +lean_inc(x_265); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_266 = x_257; } else { - lean_dec_ref(x_256); - x_265 = lean_box(0); + lean_dec_ref(x_257); + x_266 = lean_box(0); } -if (lean_is_scalar(x_265)) { - x_266 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_266)) { + x_267 = lean_alloc_ctor(1, 2, 0); } else { - x_266 = x_265; + x_267 = x_266; } -lean_ctor_set(x_266, 0, x_263); -lean_ctor_set(x_266, 1, x_264); -return x_266; +lean_ctor_set(x_267, 0, x_264); +lean_ctor_set(x_267, 1, x_265); +return x_267; } } default: { -lean_object* x_267; lean_object* x_268; -lean_dec_ref(x_9); -x_267 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__6; -lean_inc(x_13); -lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc_ref(x_212); -x_268 = l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_spec__0(x_267, x_212, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_268) == 0) +lean_object* x_268; lean_object* x_269; +lean_dec_ref(x_10); +x_268 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___closed__6; +lean_inc(x_14); +lean_inc_ref(x_13); +lean_inc(x_12); +lean_inc_ref(x_213); +x_269 = l_panic___at___Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_spec__0(x_268, x_213, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_269) == 0) { -lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_269 = lean_ctor_get(x_268, 0); -lean_inc(x_269); -x_270 = lean_ctor_get(x_268, 1); +lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_270 = lean_ctor_get(x_269, 0); lean_inc(x_270); -lean_dec_ref(x_268); -x_271 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_269, x_212, x_11, x_12, x_13, x_270); -lean_dec(x_269); -return x_271; +x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_271); +lean_dec_ref(x_269); +x_272 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_9, x_270, x_213, x_12, x_13, x_14, x_271); +lean_dec(x_270); +return x_272; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -lean_dec_ref(x_212); -lean_dec(x_13); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec_ref(x_8); +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +lean_dec_ref(x_213); +lean_dec(x_14); +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec(x_1); -x_272 = lean_ctor_get(x_268, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_268, 1); +x_273 = lean_ctor_get(x_269, 0); lean_inc(x_273); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_274 = x_268; +x_274 = lean_ctor_get(x_269, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_275 = x_269; } else { - lean_dec_ref(x_268); - x_274 = lean_box(0); + lean_dec_ref(x_269); + x_275 = lean_box(0); } -if (lean_is_scalar(x_274)) { - x_275 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_275)) { + x_276 = lean_alloc_ctor(1, 2, 0); } else { - x_275 = x_274; + x_276 = x_275; } -lean_ctor_set(x_275, 0, x_272); -lean_ctor_set(x_275, 1, x_273); -return x_275; +lean_ctor_set(x_276, 0, x_273); +lean_ctor_set(x_276, 1, x_274); +return x_276; } } } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t 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) { _start: { switch (lean_obj_tag(x_4)) { case 0: { -uint8_t x_13; uint8_t x_14; lean_object* x_15; +uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_dec_ref(x_5); -x_13 = lean_ctor_get_uint8(x_4, 0); +x_14 = lean_ctor_get_uint8(x_4, 0); lean_dec_ref(x_4); -x_14 = 1; -x_15 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_14, x_14, x_13, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_15) == 0) +x_15 = 1; +x_16 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_15, x_15, x_14, x_7, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_16) == 0) { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_15, 0, x_18); -return x_15; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_16, 0, x_19); +return x_16; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_19); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; +lean_dec(x_16); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; } } else { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_15); -if (x_23 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) { -return x_15; +return x_16; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get(x_15, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_15); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_dec(x_16); +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; } } } case 1: { -uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; +uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_dec_ref(x_5); -x_27 = lean_ctor_get_uint8(x_4, 0); +x_28 = lean_ctor_get_uint8(x_4, 0); lean_dec_ref(x_4); -x_28 = 1; -x_29 = 0; -x_30 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_28, x_29, x_27, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_30) == 0) +x_29 = 1; +x_30 = 0; +x_31 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_29, x_30, x_28, x_7, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_31) == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_30, 0, x_33); -return x_30; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_31, 0, x_34); +return x_31; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_30, 0); -x_35 = lean_ctor_get(x_30, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_31, 0); +x_36 = lean_ctor_get(x_31, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_30); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_34); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; +lean_dec(x_31); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_35); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; } } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_30); -if (x_38 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_31); +if (x_39 == 0) { -return x_30; +return x_31; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_30, 0); -x_40 = lean_ctor_get(x_30, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_31, 0); +x_41 = lean_ctor_get(x_31, 1); +lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_30); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_dec(x_31); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } case 3: { -lean_object* x_42; +lean_object* x_43; lean_dec_ref(x_5); -x_42 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore(x_1, x_2, x_3, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_42) == 0) +x_43 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore(x_1, x_2, x_3, x_7, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_43) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_42, 0); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_42, 0, x_45); -return x_42; +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_43, 0, x_46); +return x_43; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_42, 0); -x_47 = lean_ctor_get(x_42, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_43, 0); +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_42); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_46); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_dec(x_43); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_47); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } else { -uint8_t x_50; -x_50 = !lean_is_exclusive(x_42); -if (x_50 == 0) +uint8_t x_51; +x_51 = !lean_is_exclusive(x_43); +if (x_51 == 0) { -return x_42; +return x_43; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_42, 0); -x_52 = lean_ctor_get(x_42, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_43, 0); +x_53 = lean_ctor_get(x_43, 1); +lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_42); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_dec(x_43); +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; } } } default: { -uint8_t x_54; lean_object* x_55; -x_54 = l_Lean_Meta_Grind_EMatchTheoremKind_gen(x_4); -lean_inc(x_11); -lean_inc_ref(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); +uint8_t x_55; lean_object* x_56; +x_55 = l_Lean_Meta_Grind_EMatchTheoremKind_gen(x_4); +lean_inc(x_12); +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc_ref(x_9); lean_inc_ref(x_3); -x_55 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_inferEMatchProofType(x_3, x_54, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_55) == 0) +x_56 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_inferEMatchProofType(x_3, x_55, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec_ref(x_55); -x_58 = l_Lean_Meta_Context_config(x_8); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec_ref(x_56); +x_59 = l_Lean_Meta_Context_config(x_9); +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -uint8_t 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; uint8_t x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; uint8_t x_73; uint64_t x_74; uint8_t x_75; -x_60 = lean_ctor_get_uint8(x_8, sizeof(void*)*7); -x_61 = lean_ctor_get(x_8, 1); -lean_inc(x_61); -x_62 = lean_ctor_get(x_8, 2); -lean_inc_ref(x_62); -x_63 = lean_ctor_get(x_8, 3); +uint8_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; uint8_t x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; uint8_t x_75; uint64_t x_76; uint8_t x_77; +x_61 = lean_ctor_get_uint8(x_9, sizeof(void*)*7); +x_62 = lean_ctor_get(x_9, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_9, 2); lean_inc_ref(x_63); -x_64 = lean_ctor_get(x_8, 4); -lean_inc(x_64); -x_65 = lean_ctor_get(x_8, 5); +x_64 = lean_ctor_get(x_9, 3); +lean_inc_ref(x_64); +x_65 = lean_ctor_get(x_9, 4); lean_inc(x_65); -x_66 = lean_ctor_get(x_8, 6); +x_66 = lean_ctor_get(x_9, 5); lean_inc(x_66); -x_67 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 1); -x_68 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 2); -x_69 = lean_box(x_6); -x_70 = lean_box(x_7); -x_71 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___boxed), 14, 7); -lean_closure_set(x_71, 0, x_4); -lean_closure_set(x_71, 1, x_1); -lean_closure_set(x_71, 2, x_2); -lean_closure_set(x_71, 3, x_3); -lean_closure_set(x_71, 4, x_5); -lean_closure_set(x_71, 5, x_69); -lean_closure_set(x_71, 6, x_70); -x_72 = 0; -x_73 = 2; -lean_ctor_set_uint8(x_58, 9, x_73); -x_74 = l_Lean_Meta_Context_configKey(x_8); -x_75 = !lean_is_exclusive(x_8); -if (x_75 == 0) +x_67 = lean_ctor_get(x_9, 6); +lean_inc(x_67); +x_68 = lean_ctor_get_uint8(x_9, sizeof(void*)*7 + 1); +x_69 = lean_ctor_get_uint8(x_9, sizeof(void*)*7 + 2); +x_70 = lean_box(x_6); +x_71 = lean_box(x_7); +x_72 = lean_box(x_8); +x_73 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___boxed), 15, 8); +lean_closure_set(x_73, 0, x_4); +lean_closure_set(x_73, 1, x_1); +lean_closure_set(x_73, 2, x_2); +lean_closure_set(x_73, 3, x_3); +lean_closure_set(x_73, 4, x_5); +lean_closure_set(x_73, 5, x_70); +lean_closure_set(x_73, 6, x_71); +lean_closure_set(x_73, 7, x_72); +x_74 = 0; +x_75 = 2; +lean_ctor_set_uint8(x_59, 9, x_75); +x_76 = l_Lean_Meta_Context_configKey(x_9); +x_77 = !lean_is_exclusive(x_9); +if (x_77 == 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; uint64_t x_83; uint64_t x_84; uint64_t x_85; uint64_t x_86; uint64_t x_87; lean_object* x_88; lean_object* x_89; -x_76 = lean_ctor_get(x_8, 6); -lean_dec(x_76); -x_77 = lean_ctor_get(x_8, 5); -lean_dec(x_77); -x_78 = lean_ctor_get(x_8, 4); +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; uint64_t x_85; uint64_t x_86; uint64_t x_87; uint64_t x_88; uint64_t x_89; lean_object* x_90; lean_object* x_91; +x_78 = lean_ctor_get(x_9, 6); lean_dec(x_78); -x_79 = lean_ctor_get(x_8, 3); +x_79 = lean_ctor_get(x_9, 5); lean_dec(x_79); -x_80 = lean_ctor_get(x_8, 2); +x_80 = lean_ctor_get(x_9, 4); lean_dec(x_80); -x_81 = lean_ctor_get(x_8, 1); +x_81 = lean_ctor_get(x_9, 3); lean_dec(x_81); -x_82 = lean_ctor_get(x_8, 0); +x_82 = lean_ctor_get(x_9, 2); lean_dec(x_82); -x_83 = 2; -x_84 = lean_uint64_shift_right(x_74, x_83); -x_85 = lean_uint64_shift_left(x_84, x_83); -x_86 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___closed__0; -x_87 = lean_uint64_lor(x_85, x_86); -x_88 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_88, 0, x_58); -lean_ctor_set_uint64(x_88, sizeof(void*)*1, x_87); -lean_ctor_set(x_8, 0, x_88); -x_89 = l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg(x_56, x_71, x_72, x_72, x_8, x_9, x_10, x_11, x_57); -return x_89; +x_83 = lean_ctor_get(x_9, 1); +lean_dec(x_83); +x_84 = lean_ctor_get(x_9, 0); +lean_dec(x_84); +x_85 = 2; +x_86 = lean_uint64_shift_right(x_76, x_85); +x_87 = lean_uint64_shift_left(x_86, x_85); +x_88 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___closed__0; +x_89 = lean_uint64_lor(x_87, x_88); +x_90 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_90, 0, x_59); +lean_ctor_set_uint64(x_90, sizeof(void*)*1, x_89); +lean_ctor_set(x_9, 0, x_90); +x_91 = l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg(x_57, x_73, x_74, x_74, x_9, x_10, x_11, x_12, x_58); +return x_91; } else { -uint64_t x_90; uint64_t x_91; uint64_t x_92; uint64_t x_93; uint64_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_8); -x_90 = 2; -x_91 = lean_uint64_shift_right(x_74, x_90); -x_92 = lean_uint64_shift_left(x_91, x_90); -x_93 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___closed__0; -x_94 = lean_uint64_lor(x_92, x_93); -x_95 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_95, 0, x_58); -lean_ctor_set_uint64(x_95, sizeof(void*)*1, x_94); -x_96 = lean_alloc_ctor(0, 7, 3); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_61); -lean_ctor_set(x_96, 2, x_62); -lean_ctor_set(x_96, 3, x_63); -lean_ctor_set(x_96, 4, x_64); -lean_ctor_set(x_96, 5, x_65); -lean_ctor_set(x_96, 6, x_66); -lean_ctor_set_uint8(x_96, sizeof(void*)*7, x_60); -lean_ctor_set_uint8(x_96, sizeof(void*)*7 + 1, x_67); -lean_ctor_set_uint8(x_96, sizeof(void*)*7 + 2, x_68); -x_97 = l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg(x_56, x_71, x_72, x_72, x_96, x_9, x_10, x_11, x_57); -return x_97; -} -} -else -{ -uint8_t x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t 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; uint8_t x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; uint8_t x_129; lean_object* x_130; uint64_t x_131; lean_object* x_132; uint64_t x_133; uint64_t x_134; uint64_t x_135; uint64_t x_136; uint64_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_98 = lean_ctor_get_uint8(x_58, 0); -x_99 = lean_ctor_get_uint8(x_58, 1); -x_100 = lean_ctor_get_uint8(x_58, 2); -x_101 = lean_ctor_get_uint8(x_58, 3); -x_102 = lean_ctor_get_uint8(x_58, 4); -x_103 = lean_ctor_get_uint8(x_58, 5); -x_104 = lean_ctor_get_uint8(x_58, 6); -x_105 = lean_ctor_get_uint8(x_58, 7); -x_106 = lean_ctor_get_uint8(x_58, 8); -x_107 = lean_ctor_get_uint8(x_58, 10); -x_108 = lean_ctor_get_uint8(x_58, 11); -x_109 = lean_ctor_get_uint8(x_58, 12); -x_110 = lean_ctor_get_uint8(x_58, 13); -x_111 = lean_ctor_get_uint8(x_58, 14); -x_112 = lean_ctor_get_uint8(x_58, 15); -x_113 = lean_ctor_get_uint8(x_58, 16); -x_114 = lean_ctor_get_uint8(x_58, 17); -x_115 = lean_ctor_get_uint8(x_58, 18); -lean_dec(x_58); -x_116 = lean_ctor_get_uint8(x_8, sizeof(void*)*7); -x_117 = lean_ctor_get(x_8, 1); -lean_inc(x_117); -x_118 = lean_ctor_get(x_8, 2); -lean_inc_ref(x_118); -x_119 = lean_ctor_get(x_8, 3); -lean_inc_ref(x_119); -x_120 = lean_ctor_get(x_8, 4); -lean_inc(x_120); -x_121 = lean_ctor_get(x_8, 5); -lean_inc(x_121); -x_122 = lean_ctor_get(x_8, 6); -lean_inc(x_122); -x_123 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 1); -x_124 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 2); -x_125 = lean_box(x_6); -x_126 = lean_box(x_7); -x_127 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___boxed), 14, 7); -lean_closure_set(x_127, 0, x_4); -lean_closure_set(x_127, 1, x_1); -lean_closure_set(x_127, 2, x_2); -lean_closure_set(x_127, 3, x_3); -lean_closure_set(x_127, 4, x_5); -lean_closure_set(x_127, 5, x_125); -lean_closure_set(x_127, 6, x_126); -x_128 = 0; -x_129 = 2; -x_130 = lean_alloc_ctor(0, 0, 19); -lean_ctor_set_uint8(x_130, 0, x_98); -lean_ctor_set_uint8(x_130, 1, x_99); -lean_ctor_set_uint8(x_130, 2, x_100); -lean_ctor_set_uint8(x_130, 3, x_101); -lean_ctor_set_uint8(x_130, 4, x_102); -lean_ctor_set_uint8(x_130, 5, x_103); -lean_ctor_set_uint8(x_130, 6, x_104); -lean_ctor_set_uint8(x_130, 7, x_105); -lean_ctor_set_uint8(x_130, 8, x_106); -lean_ctor_set_uint8(x_130, 9, x_129); -lean_ctor_set_uint8(x_130, 10, x_107); -lean_ctor_set_uint8(x_130, 11, x_108); -lean_ctor_set_uint8(x_130, 12, x_109); -lean_ctor_set_uint8(x_130, 13, x_110); -lean_ctor_set_uint8(x_130, 14, x_111); -lean_ctor_set_uint8(x_130, 15, x_112); -lean_ctor_set_uint8(x_130, 16, x_113); -lean_ctor_set_uint8(x_130, 17, x_114); -lean_ctor_set_uint8(x_130, 18, x_115); -x_131 = l_Lean_Meta_Context_configKey(x_8); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - lean_ctor_release(x_8, 3); - lean_ctor_release(x_8, 4); - lean_ctor_release(x_8, 5); - lean_ctor_release(x_8, 6); - x_132 = x_8; -} else { - lean_dec_ref(x_8); - x_132 = lean_box(0); -} -x_133 = 2; -x_134 = lean_uint64_shift_right(x_131, x_133); -x_135 = lean_uint64_shift_left(x_134, x_133); -x_136 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___closed__0; -x_137 = lean_uint64_lor(x_135, x_136); -x_138 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_138, 0, x_130); -lean_ctor_set_uint64(x_138, sizeof(void*)*1, x_137); -if (lean_is_scalar(x_132)) { - x_139 = lean_alloc_ctor(0, 7, 3); -} else { - x_139 = x_132; -} -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_117); -lean_ctor_set(x_139, 2, x_118); -lean_ctor_set(x_139, 3, x_119); -lean_ctor_set(x_139, 4, x_120); -lean_ctor_set(x_139, 5, x_121); -lean_ctor_set(x_139, 6, x_122); -lean_ctor_set_uint8(x_139, sizeof(void*)*7, x_116); -lean_ctor_set_uint8(x_139, sizeof(void*)*7 + 1, x_123); -lean_ctor_set_uint8(x_139, sizeof(void*)*7 + 2, x_124); -x_140 = l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg(x_56, x_127, x_128, x_128, x_139, x_9, x_10, x_11, x_57); -return x_140; -} -} -else -{ -uint8_t x_141; -lean_dec(x_11); -lean_dec_ref(x_10); +uint64_t x_92; uint64_t x_93; uint64_t x_94; uint64_t x_95; uint64_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_dec(x_9); -lean_dec_ref(x_8); +x_92 = 2; +x_93 = lean_uint64_shift_right(x_76, x_92); +x_94 = lean_uint64_shift_left(x_93, x_92); +x_95 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___closed__0; +x_96 = lean_uint64_lor(x_94, x_95); +x_97 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_97, 0, x_59); +lean_ctor_set_uint64(x_97, sizeof(void*)*1, x_96); +x_98 = lean_alloc_ctor(0, 7, 3); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_62); +lean_ctor_set(x_98, 2, x_63); +lean_ctor_set(x_98, 3, x_64); +lean_ctor_set(x_98, 4, x_65); +lean_ctor_set(x_98, 5, x_66); +lean_ctor_set(x_98, 6, x_67); +lean_ctor_set_uint8(x_98, sizeof(void*)*7, x_61); +lean_ctor_set_uint8(x_98, sizeof(void*)*7 + 1, x_68); +lean_ctor_set_uint8(x_98, sizeof(void*)*7 + 2, x_69); +x_99 = l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg(x_57, x_73, x_74, x_74, x_98, x_10, x_11, x_12, x_58); +return x_99; +} +} +else +{ +uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t 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; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; uint64_t x_134; lean_object* x_135; uint64_t x_136; uint64_t x_137; uint64_t x_138; uint64_t x_139; uint64_t x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_100 = lean_ctor_get_uint8(x_59, 0); +x_101 = lean_ctor_get_uint8(x_59, 1); +x_102 = lean_ctor_get_uint8(x_59, 2); +x_103 = lean_ctor_get_uint8(x_59, 3); +x_104 = lean_ctor_get_uint8(x_59, 4); +x_105 = lean_ctor_get_uint8(x_59, 5); +x_106 = lean_ctor_get_uint8(x_59, 6); +x_107 = lean_ctor_get_uint8(x_59, 7); +x_108 = lean_ctor_get_uint8(x_59, 8); +x_109 = lean_ctor_get_uint8(x_59, 10); +x_110 = lean_ctor_get_uint8(x_59, 11); +x_111 = lean_ctor_get_uint8(x_59, 12); +x_112 = lean_ctor_get_uint8(x_59, 13); +x_113 = lean_ctor_get_uint8(x_59, 14); +x_114 = lean_ctor_get_uint8(x_59, 15); +x_115 = lean_ctor_get_uint8(x_59, 16); +x_116 = lean_ctor_get_uint8(x_59, 17); +x_117 = lean_ctor_get_uint8(x_59, 18); +lean_dec(x_59); +x_118 = lean_ctor_get_uint8(x_9, sizeof(void*)*7); +x_119 = lean_ctor_get(x_9, 1); +lean_inc(x_119); +x_120 = lean_ctor_get(x_9, 2); +lean_inc_ref(x_120); +x_121 = lean_ctor_get(x_9, 3); +lean_inc_ref(x_121); +x_122 = lean_ctor_get(x_9, 4); +lean_inc(x_122); +x_123 = lean_ctor_get(x_9, 5); +lean_inc(x_123); +x_124 = lean_ctor_get(x_9, 6); +lean_inc(x_124); +x_125 = lean_ctor_get_uint8(x_9, sizeof(void*)*7 + 1); +x_126 = lean_ctor_get_uint8(x_9, sizeof(void*)*7 + 2); +x_127 = lean_box(x_6); +x_128 = lean_box(x_7); +x_129 = lean_box(x_8); +x_130 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0___boxed), 15, 8); +lean_closure_set(x_130, 0, x_4); +lean_closure_set(x_130, 1, x_1); +lean_closure_set(x_130, 2, x_2); +lean_closure_set(x_130, 3, x_3); +lean_closure_set(x_130, 4, x_5); +lean_closure_set(x_130, 5, x_127); +lean_closure_set(x_130, 6, x_128); +lean_closure_set(x_130, 7, x_129); +x_131 = 0; +x_132 = 2; +x_133 = lean_alloc_ctor(0, 0, 19); +lean_ctor_set_uint8(x_133, 0, x_100); +lean_ctor_set_uint8(x_133, 1, x_101); +lean_ctor_set_uint8(x_133, 2, x_102); +lean_ctor_set_uint8(x_133, 3, x_103); +lean_ctor_set_uint8(x_133, 4, x_104); +lean_ctor_set_uint8(x_133, 5, x_105); +lean_ctor_set_uint8(x_133, 6, x_106); +lean_ctor_set_uint8(x_133, 7, x_107); +lean_ctor_set_uint8(x_133, 8, x_108); +lean_ctor_set_uint8(x_133, 9, x_132); +lean_ctor_set_uint8(x_133, 10, x_109); +lean_ctor_set_uint8(x_133, 11, x_110); +lean_ctor_set_uint8(x_133, 12, x_111); +lean_ctor_set_uint8(x_133, 13, x_112); +lean_ctor_set_uint8(x_133, 14, x_113); +lean_ctor_set_uint8(x_133, 15, x_114); +lean_ctor_set_uint8(x_133, 16, x_115); +lean_ctor_set_uint8(x_133, 17, x_116); +lean_ctor_set_uint8(x_133, 18, x_117); +x_134 = l_Lean_Meta_Context_configKey(x_9); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + lean_ctor_release(x_9, 2); + lean_ctor_release(x_9, 3); + lean_ctor_release(x_9, 4); + lean_ctor_release(x_9, 5); + lean_ctor_release(x_9, 6); + x_135 = x_9; +} else { + lean_dec_ref(x_9); + x_135 = lean_box(0); +} +x_136 = 2; +x_137 = lean_uint64_shift_right(x_134, x_136); +x_138 = lean_uint64_shift_left(x_137, x_136); +x_139 = l_Lean_Meta_Grind_mkEMatchTheoremUsingSingletonPatterns___closed__0; +x_140 = lean_uint64_lor(x_138, x_139); +x_141 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_141, 0, x_133); +lean_ctor_set_uint64(x_141, sizeof(void*)*1, x_140); +if (lean_is_scalar(x_135)) { + x_142 = lean_alloc_ctor(0, 7, 3); +} else { + x_142 = x_135; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_119); +lean_ctor_set(x_142, 2, x_120); +lean_ctor_set(x_142, 3, x_121); +lean_ctor_set(x_142, 4, x_122); +lean_ctor_set(x_142, 5, x_123); +lean_ctor_set(x_142, 6, x_124); +lean_ctor_set_uint8(x_142, sizeof(void*)*7, x_118); +lean_ctor_set_uint8(x_142, sizeof(void*)*7 + 1, x_125); +lean_ctor_set_uint8(x_142, sizeof(void*)*7 + 2, x_126); +x_143 = l_Lean_Meta_forallTelescopeReducing___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__5___redArg(x_57, x_130, x_131, x_131, x_142, x_10, x_11, x_12, x_58); +return x_143; +} +} +else +{ +uint8_t x_144; +lean_dec(x_12); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_141 = !lean_is_exclusive(x_55); -if (x_141 == 0) +x_144 = !lean_is_exclusive(x_56); +if (x_144 == 0) { -return x_55; +return x_56; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_55, 0); -x_143 = lean_ctor_get(x_55, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_55); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_56, 0); +x_146 = lean_ctor_get(x_56, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_56); +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +return x_147; } } } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_object* x_15) { _start: { -uint8_t x_15; uint8_t x_16; lean_object* x_17; -x_15 = lean_unbox(x_6); -x_16 = lean_unbox(x_7); -x_17 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0(x_1, x_2, x_3, x_4, x_5, x_15, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; +x_16 = lean_unbox(x_6); +x_17 = lean_unbox(x_7); +x_18 = lean_unbox(x_8); +x_19 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lam__0(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_14 = lean_unbox(x_6); +x_15 = lean_unbox(x_7); +x_16 = lean_unbox(x_8); +x_17 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(x_1, x_2, x_3, x_4, x_5, x_14, x_15, x_16, x_9, x_10, x_11, x_12, x_13); return x_17; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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; uint8_t x_14; lean_object* x_15; -x_13 = lean_unbox(x_6); -x_14 = lean_unbox(x_7); -x_15 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(x_1, x_2, x_3, x_4, x_5, x_13, x_14, x_8, x_9, x_10, x_11, x_12); -return x_15; -} -} static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__0() { _start: { @@ -58813,188 +58906,189 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(lean_object* 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) { _start: { -lean_object* x_10; -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_6); -lean_inc_ref(x_5); +lean_object* x_11; +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); lean_inc(x_1); -x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor(x_1, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec_ref(x_10); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec_ref(x_11); lean_inc(x_1); -x_13 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_13, 0, x_1); -x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__0; -x_15 = 1; -lean_inc(x_8); -lean_inc_ref(x_7); -lean_inc(x_6); -lean_inc_ref(x_5); +x_14 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_14, 0, x_1); +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__0; +x_16 = 1; +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc(x_7); +lean_inc_ref(x_6); lean_inc(x_2); -x_16 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(x_13, x_14, x_11, x_2, x_3, x_15, x_4, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); +x_17 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(x_14, x_15, x_12, x_2, x_3, x_16, 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; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_18 = lean_ctor_get(x_16, 1); +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec_ref(x_16); -x_19 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__1; -x_20 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute(x_2); -x_21 = l_Lean_stringToMessageData(x_20); -lean_dec_ref(x_20); -x_22 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_22, 0, x_19); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__3; -x_24 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = 0; -x_26 = l_Lean_MessageData_ofConstName(x_1, x_25); -x_27 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_27, 0, x_24); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___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); -x_30 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure(x_2); +if (lean_obj_tag(x_18) == 0) +{ +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; 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; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec_ref(x_17); +x_20 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__1; +x_21 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute(x_2); +x_22 = l_Lean_stringToMessageData(x_21); +lean_dec_ref(x_21); +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_20); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__3; +x_25 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = 0; +x_27 = l_Lean_MessageData_ofConstName(x_1, x_26); +x_28 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_28, 0, x_25); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__5; +x_30 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure(x_2); lean_dec(x_2); -x_31 = l_Lean_stringToMessageData(x_30); -lean_dec_ref(x_30); -x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_29); -lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__7; -x_34 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_34, x_5, x_6, x_7, x_8, x_18); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -return x_35; +x_32 = l_Lean_stringToMessageData(x_31); +lean_dec_ref(x_31); +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__7; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_35, x_6, x_7, x_8, x_9, x_19); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +return x_36; } else { -uint8_t x_36; -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); +uint8_t x_37; +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_36 = !lean_is_exclusive(x_16); -if (x_36 == 0) +x_37 = !lean_is_exclusive(x_17); +if (x_37 == 0) { -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_16, 0); -lean_dec(x_37); +lean_object* x_38; lean_object* x_39; x_38 = lean_ctor_get(x_17, 0); -lean_inc(x_38); -lean_dec_ref(x_17); -lean_ctor_set(x_16, 0, x_38); -return x_16; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_16, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_18, 0); lean_inc(x_39); -lean_dec(x_16); -x_40 = lean_ctor_get(x_17, 0); +lean_dec_ref(x_18); +lean_ctor_set(x_17, 0, x_39); +return x_17; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_17, 1); lean_inc(x_40); -lean_dec_ref(x_17); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -return x_41; +lean_dec(x_17); +x_41 = lean_ctor_get(x_18, 0); +lean_inc(x_41); +lean_dec_ref(x_18); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; } } } else { -uint8_t x_42; -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); +uint8_t x_43; +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_42 = !lean_is_exclusive(x_16); -if (x_42 == 0) +x_43 = !lean_is_exclusive(x_17); +if (x_43 == 0) { -return x_16; +return x_17; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_16, 0); -x_44 = lean_ctor_get(x_16, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_17, 0); +x_45 = lean_ctor_get(x_17, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_16); -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; +lean_dec(x_17); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } else { -uint8_t x_46; -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); +uint8_t x_47; +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); lean_dec_ref(x_3); lean_dec(x_2); lean_dec(x_1); -x_46 = !lean_is_exclusive(x_10); -if (x_46 == 0) +x_47 = !lean_is_exclusive(x_11); +if (x_47 == 0) { -return x_10; +return x_11; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_10, 0); -x_48 = lean_ctor_get(x_10, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_11, 0); +x_49 = lean_ctor_get(x_11, 1); +lean_inc(x_49); lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_10); -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; +lean_dec(x_11); +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; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___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_Lean_Meta_Grind_mkEMatchTheoremForDecl___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_10; lean_object* x_11; -x_10 = lean_unbox(x_4); -x_11 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); -return x_11; +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_4); +x_12 = lean_unbox(x_5); +x_13 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_2, x_3, x_11, x_12, x_6, x_7, x_8, x_9, x_10); +return x_13; } } LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f_spec__0(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) { @@ -60450,6 +60544,57 @@ lean_dec_ref(x_3); return x_8; } } +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("redundant modifier `!` in `grind` attribute", 43, 43); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__1; +x_10 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_9, x_2, x_3, x_4, x_5, x_6); +return x_10; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___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_1); +x_8 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_8; +} +} LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_Meta_Grind_addEMatchAttr_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) { _start: { @@ -60522,39 +60667,42 @@ return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object* x_1, uint8_t 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_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object* x_1, uint8_t 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: { switch (lean_obj_tag(x_3)) { case 0: { -uint8_t x_11; lean_object* x_12; +lean_object* x_12; lean_dec_ref(x_4); -x_11 = 1; -x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable(x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec_ref(x_12); +x_14 = 1; +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_14, x_5, x_7, x_8, x_9, x_10, x_13); lean_dec_ref(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_ref(x_3); +lean_dec(x_1); return x_12; } +} case 1: { -uint8_t x_13; lean_object* x_14; +lean_object* x_16; lean_dec_ref(x_4); -x_13 = 0; -x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec_ref(x_3); -return x_14; -} -case 2: -{ -uint8_t x_15; lean_object* x_16; -lean_dec_ref(x_4); -x_15 = 1; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -lean_inc_ref(x_6); -lean_inc(x_1); -x_16 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable(x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; uint8_t x_18; lean_object* x_19; @@ -60562,155 +60710,224 @@ x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec_ref(x_16); x_18 = 0; -x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_18, x_5, x_6, x_7, x_8, x_9, x_17); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_18, x_5, x_7, x_8, x_9, x_10, x_17); lean_dec_ref(x_3); return x_19; } else { -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); +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(x_1); return x_16; } } -default: +case 2: { lean_object* x_20; -lean_inc_ref(x_8); -lean_inc(x_1); -x_20 = l_Lean_getConstInfo___at___Lean_Meta_Grind_addEMatchAttr_spec__0(x_1, x_6, x_7, x_8, x_9, x_10); +lean_dec_ref(x_4); +x_20 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable(x_6, x_7, x_8, x_9, x_10, x_11); 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_36; uint8_t x_37; -x_21 = lean_ctor_get(x_20, 0); +lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 1); 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_9, 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_36 = lean_ctor_get(x_24, 0); -lean_inc_ref(x_36); -lean_dec(x_24); +x_22 = 1; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); lean_inc(x_1); -x_37 = l_Lean_wasOriginallyTheorem(x_36, x_1); -if (x_37 == 0) -{ -uint8_t x_38; -x_38 = l_Lean_ConstantInfo_isCtor(x_21); -if (x_38 == 0) -{ -uint8_t x_39; -x_39 = l_Lean_ConstantInfo_isAxiom(x_21); -lean_dec(x_21); -if (x_39 == 0) -{ -uint8_t x_40; lean_object* x_41; -lean_dec_ref(x_4); -x_40 = 1; -x_41 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_40, x_5, x_6, x_7, x_8, x_9, x_25); -lean_dec(x_3); -return x_41; -} -else -{ -goto block_35; -} -} -else -{ -lean_dec(x_21); -goto block_35; -} -} -else -{ -lean_dec(x_21); -goto block_35; -} -block_35: -{ -lean_object* x_26; -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc(x_7); -x_26 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); -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 = l_Lean_Meta_Grind_isEMatchTheorem___redArg___closed__0; -x_30 = l_Lean_ScopedEnvExtension_add___at___Lean_Meta_Grind_addSymbolPriorityAttr_spec__0___redArg(x_29, x_27, x_2, x_7, x_8, x_9, x_28); -lean_dec(x_9); -lean_dec(x_7); -return x_30; -} -else -{ -uint8_t x_31; -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -x_31 = !lean_is_exclusive(x_26); -if (x_31 == 0) +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_22, x_5, x_7, x_8, x_9, x_10, x_21); +if (lean_obj_tag(x_23) == 0) { +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec_ref(x_23); +x_25 = 0; +x_26 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_25, x_5, x_7, x_8, x_9, x_10, x_24); +lean_dec_ref(x_3); return x_26; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); +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(x_1); +return x_23; +} +} +else +{ +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(x_1); +return x_20; +} +} +default: +{ +lean_object* x_27; +lean_inc_ref(x_9); +lean_inc(x_1); +x_27 = l_Lean_getConstInfo___at___Lean_Meta_Grind_addEMatchAttr_spec__0(x_1, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_43; uint8_t x_44; +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_st_ref_get(x_10, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -lean_dec(x_26); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_dec_ref(x_30); +x_43 = lean_ctor_get(x_31, 0); +lean_inc_ref(x_43); +lean_dec(x_31); +lean_inc(x_1); +x_44 = l_Lean_wasOriginallyTheorem(x_43, x_1); +if (x_44 == 0) +{ +uint8_t x_45; +x_45 = l_Lean_ConstantInfo_isCtor(x_28); +if (x_45 == 0) +{ +uint8_t x_46; +x_46 = l_Lean_ConstantInfo_isAxiom(x_28); +lean_dec(x_28); +if (x_46 == 0) +{ +lean_object* x_47; +lean_dec_ref(x_4); +x_47 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable(x_6, x_7, x_8, x_9, x_10, x_32); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec_ref(x_47); +x_49 = 1; +x_50 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_49, x_5, x_7, x_8, x_9, x_10, x_48); +lean_dec(x_3); +return x_50; +} +else +{ +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_3); +lean_dec(x_1); +return x_47; +} +} +else +{ +goto block_42; +} +} +else +{ +lean_dec(x_28); +goto block_42; +} +} +else +{ +lean_dec(x_28); +goto block_42; +} +block_42: +{ +lean_object* x_33; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +x_33 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, 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; +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 = l_Lean_Meta_Grind_isEMatchTheorem___redArg___closed__0; +x_37 = l_Lean_ScopedEnvExtension_add___at___Lean_Meta_Grind_addSymbolPriorityAttr_spec__0___redArg(x_36, x_34, x_2, x_8, x_9, x_10, x_35); +lean_dec(x_10); +lean_dec(x_8); +return x_37; +} +else +{ +uint8_t x_38; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } } else { -uint8_t x_42; -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); +uint8_t x_51; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec(x_3); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_20); -if (x_42 == 0) +x_51 = !lean_is_exclusive(x_27); +if (x_51 == 0) { -return x_20; +return x_27; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_20, 0); -x_44 = lean_ctor_get(x_20, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_20); -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; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_27, 0); +x_53 = lean_ctor_get(x_27, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_27); +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; } } } @@ -60728,16 +60945,1189 @@ lean_dec_ref(x_2); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr___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_Grind_addEMatchAttr___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_11; uint8_t x_12; lean_object* x_13; -x_11 = lean_unbox(x_2); -x_12 = lean_unbox(x_5); -x_13 = l_Lean_Meta_Grind_addEMatchAttr(x_1, x_11, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10); +uint8_t x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_unbox(x_2); +x_13 = lean_unbox(x_5); +x_14 = lean_unbox(x_6); +x_15 = l_Lean_Meta_Grind_addEMatchAttr(x_1, x_12, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_SelectM_State_ctorIdx(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_unsigned_to_nat(0u); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_SelectM_State_ctorIdx___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_SelectM_State_ctorIdx(x_1); +lean_dec_ref(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = l_List_reverse___redArg(x_2); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_3); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = l_Lean_Meta_Grind_ppPattern(x_9); +x_12 = l_Lean_MessageData_toString(x_11, x_4); +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); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_13); +{ +lean_object* _tmp_0 = x_10; +lean_object* _tmp_1 = x_1; +lean_object* _tmp_3 = x_14; +x_1 = _tmp_0; +x_2 = _tmp_1; +x_4 = _tmp_3; +} +goto _start; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_16 = lean_ctor_get(x_1, 0); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_1); +x_18 = l_Lean_Meta_Grind_ppPattern(x_16); +x_19 = l_Lean_MessageData_toString(x_18, x_4); +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_2); +x_1 = x_17; +x_2 = x_22; +x_4 = x_21; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_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; +x_9 = l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__0___redArg(x_1, x_2, x_3, x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l_List_foldl___at___List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1_spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 1); +x_5 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lam__0___closed__2; +x_6 = lean_string_append(x_1, x_5); +x_7 = lean_string_append(x_6, x_3); +x_1 = x_7; +x_2 = x_4; +goto _start; +} +} +} +static lean_object* _init_l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[]", 2, 2); +return x_1; +} +} +static lean_object* _init_l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__0; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_1, 1); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1; +x_6 = lean_string_append(x_5, x_4); +x_7 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1; +x_8 = lean_string_append(x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint32_t x_13; lean_object* x_14; +x_9 = lean_ctor_get(x_1, 0); +x_10 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1; +x_11 = lean_string_append(x_10, x_9); +x_12 = l_List_foldl___at___List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1_spec__1(x_11, x_3); +x_13 = 93; +x_14 = lean_string_push(x_12, x_13); +return x_14; +} +} +} +} +LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_eq(x_3, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_1, 3); +x_7 = lean_array_uget(x_2, x_3); +x_8 = lean_ctor_get(x_7, 3); +lean_inc(x_8); +lean_dec_ref(x_7); +x_9 = l_List_beq___at___Lean_Meta_Grind_EMatchTheorems_containsWithSamePatterns_spec__0(x_6, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +size_t x_10; size_t x_11; +x_10 = 1; +x_11 = lean_usize_add(x_3, x_10); +x_3 = x_11; +goto _start; +} +else +{ +return x_9; +} +} +else +{ +uint8_t x_13; +x_13 = 0; return x_13; } } +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("] for pattern: ", 15, 15); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1; +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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind!", 6, 6); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save(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_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_98 = lean_ctor_get(x_3, 1); +x_99 = lean_unsigned_to_nat(0u); +x_100 = lean_array_get_size(x_98); +x_101 = lean_nat_dec_lt(x_99, x_100); +if (x_101 == 0) +{ +lean_dec(x_100); +goto block_97; +} +else +{ +if (x_101 == 0) +{ +lean_dec(x_100); +goto block_97; +} +else +{ +size_t x_102; size_t x_103; uint8_t x_104; +x_102 = 0; +x_103 = lean_usize_of_nat(x_100); +lean_dec(x_100); +x_104 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__3(x_1, x_98, x_102, x_103); +if (x_104 == 0) +{ +goto block_97; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec_ref(x_1); +x_105 = lean_box(0); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_3); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_8); +return x_107; +} +} +} +block_94: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_10 = lean_ctor_get(x_1, 3); +x_11 = lean_ctor_get(x_1, 6); +x_12 = lean_box(0); +lean_inc(x_10); +x_13 = l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__0___redArg(x_10, x_12, x_3, x_8); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_dec(x_20); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_22 = lean_ctor_get(x_15, 0); +x_23 = lean_ctor_get(x_15, 1); +x_24 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0; +x_25 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1(x_19); +lean_dec(x_19); +x_26 = lean_string_append(x_24, x_25); +lean_dec_ref(x_25); +x_27 = lean_box(0); +x_28 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(x_11); +x_29 = lean_string_append(x_9, x_28); +lean_dec_ref(x_28); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1; +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_26); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_34, 0, x_30); +lean_ctor_set(x_34, 1, x_31); +lean_ctor_set(x_34, 2, x_32); +lean_ctor_set(x_34, 3, x_33); +lean_ctor_set(x_34, 4, x_33); +lean_ctor_set(x_34, 5, x_33); +x_35 = lean_array_push(x_22, x_34); +x_36 = lean_array_push(x_23, x_1); +lean_ctor_set(x_15, 1, x_36); +lean_ctor_set(x_15, 0, x_35); +lean_ctor_set(x_14, 0, x_27); +return x_13; +} +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_object* x_50; lean_object* x_51; lean_object* x_52; +x_37 = lean_ctor_get(x_15, 0); +x_38 = lean_ctor_get(x_15, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_15); +x_39 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0; +x_40 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1(x_19); +lean_dec(x_19); +x_41 = lean_string_append(x_39, x_40); +lean_dec_ref(x_40); +x_42 = lean_box(0); +x_43 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(x_11); +x_44 = lean_string_append(x_9, x_43); +lean_dec_ref(x_43); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1; +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_41); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_49, 0, x_45); +lean_ctor_set(x_49, 1, x_46); +lean_ctor_set(x_49, 2, x_47); +lean_ctor_set(x_49, 3, x_48); +lean_ctor_set(x_49, 4, x_48); +lean_ctor_set(x_49, 5, x_48); +x_50 = lean_array_push(x_37, x_49); +x_51 = lean_array_push(x_38, x_1); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +lean_ctor_set(x_14, 1, x_52); +lean_ctor_set(x_14, 0, x_42); +return x_13; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_53 = lean_ctor_get(x_14, 0); +lean_inc(x_53); +lean_dec(x_14); +x_54 = lean_ctor_get(x_15, 0); +lean_inc_ref(x_54); +x_55 = lean_ctor_get(x_15, 1); +lean_inc_ref(x_55); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + x_56 = x_15; +} else { + lean_dec_ref(x_15); + x_56 = lean_box(0); +} +x_57 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0; +x_58 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1(x_53); +lean_dec(x_53); +x_59 = lean_string_append(x_57, x_58); +lean_dec_ref(x_58); +x_60 = lean_box(0); +x_61 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(x_11); +x_62 = lean_string_append(x_9, x_61); +lean_dec_ref(x_61); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_62); +x_64 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1; +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_59); +x_66 = lean_box(0); +x_67 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_67, 0, x_63); +lean_ctor_set(x_67, 1, x_64); +lean_ctor_set(x_67, 2, x_65); +lean_ctor_set(x_67, 3, x_66); +lean_ctor_set(x_67, 4, x_66); +lean_ctor_set(x_67, 5, x_66); +x_68 = lean_array_push(x_54, x_67); +x_69 = lean_array_push(x_55, x_1); +if (lean_is_scalar(x_56)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_56; +} +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_60); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set(x_13, 0, x_71); +return x_13; +} +} +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; 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; +x_72 = lean_ctor_get(x_13, 1); +lean_inc(x_72); +lean_dec(x_13); +x_73 = lean_ctor_get(x_14, 0); +lean_inc(x_73); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_74 = x_14; +} else { + lean_dec_ref(x_14); + x_74 = lean_box(0); +} +x_75 = lean_ctor_get(x_15, 0); +lean_inc_ref(x_75); +x_76 = lean_ctor_get(x_15, 1); +lean_inc_ref(x_76); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + x_77 = x_15; +} else { + lean_dec_ref(x_15); + x_77 = lean_box(0); +} +x_78 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0; +x_79 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1(x_73); +lean_dec(x_73); +x_80 = lean_string_append(x_78, x_79); +lean_dec_ref(x_79); +x_81 = lean_box(0); +x_82 = l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore(x_11); +x_83 = lean_string_append(x_9, x_82); +lean_dec_ref(x_82); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_85 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1; +x_86 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_86, 0, x_80); +x_87 = lean_box(0); +x_88 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_88, 0, x_84); +lean_ctor_set(x_88, 1, x_85); +lean_ctor_set(x_88, 2, x_86); +lean_ctor_set(x_88, 3, x_87); +lean_ctor_set(x_88, 4, x_87); +lean_ctor_set(x_88, 5, x_87); +x_89 = lean_array_push(x_75, x_88); +x_90 = lean_array_push(x_76, x_1); +if (lean_is_scalar(x_77)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_77; +} +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +if (lean_is_scalar(x_74)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_74; +} +lean_ctor_set(x_92, 0, x_81); +lean_ctor_set(x_92, 1, x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_72); +return x_93; +} +} +block_97: +{ +if (x_2 == 0) +{ +lean_object* x_95; +x_95 = l_Lean_Meta_Grind_mkGroundPattern___closed__0; +x_9 = x_95; +goto block_94; +} +else +{ +lean_object* x_96; +x_96 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__2; +x_9 = x_96; +goto block_94; +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_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: +{ +lean_object* x_9; +x_9 = l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_9; +} +} +LEAN_EXPORT lean_object* l_List_foldl___at___List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_List_foldl___at___List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1_spec__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__3___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; +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___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__3(x_1, x_2, x_5, x_6); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__0(lean_object* x_1, lean_object* x_2, uint8_t 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; lean_object* x_13; lean_object* x_14; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_24; lean_object* x_25; lean_object* x_29; +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_29 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_4, x_2, x_3, x_5, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(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; +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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save(x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_31); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec_ref(x_32); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_box(0); +x_12 = x_36; +x_13 = x_35; +x_14 = x_34; +goto block_17; +} +else +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +x_37 = lean_ctor_get(x_29, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_29, 1); +lean_inc(x_38); +lean_dec_ref(x_29); +x_24 = x_37; +x_25 = x_38; +goto block_28; +} +block_17: +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +block_23: +{ +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec_ref(x_19); +x_21 = lean_box(0); +x_12 = x_21; +x_13 = x_6; +x_14 = x_18; +goto block_17; +} +else +{ +lean_object* x_22; +lean_dec_ref(x_6); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_18); +return x_22; +} +} +block_28: +{ +uint8_t x_26; +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) +{ +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +x_18 = x_25; +x_19 = x_24; +x_20 = x_27; +goto block_23; +} +else +{ +x_18 = x_25; +x_19 = x_24; +x_20 = x_26; +goto block_23; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__1(uint8_t 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_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_alloc_ctor(5, 0, 1); +lean_ctor_set_uint8(x_10, 0, x_1); +x_11 = lean_box(x_3); +lean_inc_ref(x_2); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +x_12 = lean_apply_8(x_2, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_12) == 0) +{ +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_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_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_box(4); +x_17 = lean_box(x_3); +lean_inc_ref(x_2); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +x_18 = lean_apply_8(x_2, x_16, x_17, x_15, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_18) == 0) +{ +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_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_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_box(7); +x_23 = lean_box(x_3); +lean_inc_ref(x_2); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +x_24 = lean_apply_8(x_2, x_22, x_23, x_21, x_5, x_6, x_7, x_8, x_20); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec_ref(x_24); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_box(6); +x_29 = lean_box(x_3); +x_30 = lean_apply_8(x_2, x_28, x_29, x_27, x_5, x_6, x_7, x_8, x_26); +return x_30; +} +else +{ +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +return x_24; +} +} +else +{ +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +return x_18; +} +} +else +{ +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +return x_12; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid `grind` theorem, failed to find an usable pattern using different modifiers", 83, 83); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Try these:", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Tactic_TryThis_instInhabitedSuggestion_default; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Try this:", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__5; +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_Grind_addEMatchAttrAndSuggest___closed__7() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_alloc_ctor(8, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest(lean_object* x_1, lean_object* x_2, uint8_t 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; lean_object* x_22; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_53 = lean_ctor_get(x_9, 2); +x_54 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__0; +x_55 = l_Lean_Option_get___at___Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2_spec__2(x_53, x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; +x_56 = lean_box(x_55); +lean_inc_ref(x_4); +lean_inc(x_2); +x_57 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__0___boxed), 11, 3); +lean_closure_set(x_57, 0, x_2); +lean_closure_set(x_57, 1, x_4); +lean_closure_set(x_57, 2, x_56); +x_58 = 1; +x_59 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__6; +if (x_5 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_alloc_ctor(0, 0, 1); +lean_ctor_set_uint8(x_60, 0, x_55); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_4); +lean_inc(x_2); +x_61 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__0(x_2, x_4, x_55, x_60, x_55, x_59, x_7, x_8, x_9, x_10, x_11); +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; +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); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_65, 0, x_55); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_66 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__0(x_2, x_4, x_55, x_65, x_55, x_64, x_7, x_8, x_9, x_10, x_63); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec_ref(x_66); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_57); +x_70 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__1(x_55, x_57, x_55, x_69, x_7, x_8, x_9, x_10, x_68); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +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_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_74 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__1(x_55, x_57, x_58, x_73, x_7, x_8, x_9, x_10, x_72); +x_22 = x_74; +goto block_52; +} +else +{ +lean_dec_ref(x_57); +x_22 = x_70; +goto block_52; +} +} +else +{ +lean_dec_ref(x_57); +x_22 = x_66; +goto block_52; +} +} +else +{ +lean_dec_ref(x_57); +lean_dec_ref(x_4); +lean_dec(x_2); +x_22 = x_61; +goto block_52; +} +} +else +{ +lean_object* x_75; +lean_dec_ref(x_4); +lean_dec(x_2); +lean_inc(x_10); +lean_inc_ref(x_9); +lean_inc(x_8); +lean_inc_ref(x_7); +x_75 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__1(x_55, x_57, x_58, x_59, x_7, x_8, x_9, x_10, x_11); +x_22 = x_75; +goto block_52; +} +} +else +{ +lean_object* x_76; lean_object* x_77; +lean_dec(x_1); +x_76 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__7; +x_77 = l_Lean_Meta_Grind_addEMatchAttr(x_2, x_3, x_76, x_4, x_6, x_5, x_7, x_8, x_9, x_10, x_11); +return x_77; +} +block_21: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = l_Lean_Meta_Grind_isEMatchTheorem___redArg___closed__0; +x_19 = lean_array_fget(x_12, x_13); +lean_dec_ref(x_12); +x_20 = l_Lean_ScopedEnvExtension_add___at___Lean_Meta_Grind_addSymbolPriorityAttr_spec__0___redArg(x_18, x_19, x_3, x_14, x_15, x_16, x_17); +lean_dec(x_16); +lean_dec(x_14); +return x_20; +} +block_52: +{ +if (lean_obj_tag(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; uint8_t x_30; +x_23 = lean_ctor_get(x_22, 0); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec_ref(x_22); +x_26 = lean_ctor_get(x_24, 0); +lean_inc_ref(x_26); +x_27 = lean_ctor_get(x_24, 1); +lean_inc_ref(x_27); +lean_dec(x_24); +x_28 = lean_unsigned_to_nat(0u); +x_29 = lean_array_get_size(x_27); +x_30 = lean_nat_dec_lt(x_28, x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec_ref(x_27); +lean_dec_ref(x_26); +lean_dec(x_1); +x_31 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__1; +x_32 = l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstVal___at___Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels_spec__1_spec__1_spec__1_spec__1_spec__2_spec__2___redArg(x_31, x_7, x_8, x_9, x_10, x_25); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_array_get_size(x_26); +x_34 = lean_unsigned_to_nat(1u); +x_35 = lean_nat_dec_eq(x_33, x_34); +lean_dec(x_33); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +x_36 = lean_box(0); +x_37 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__2; +x_38 = 4; +lean_inc(x_10); +lean_inc_ref(x_9); +x_39 = l_Lean_Meta_Tactic_TryThis_addSuggestions___redArg(x_1, x_26, x_36, x_37, x_36, x_38, x_7, x_8, x_9, x_10, x_25); +lean_dec_ref(x_7); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec_ref(x_39); +x_12 = x_27; +x_13 = x_28; +x_14 = x_8; +x_15 = x_9; +x_16 = x_10; +x_17 = x_40; +goto block_21; +} +else +{ +lean_dec_ref(x_27); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +return x_39; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; +x_41 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__3; +x_42 = lean_array_get(x_41, x_26, x_28); +lean_dec_ref(x_26); +x_43 = lean_box(0); +x_44 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__4; +x_45 = 4; +lean_inc(x_10); +lean_inc_ref(x_9); +x_46 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_1, x_42, x_43, x_44, x_43, x_45, x_7, x_8, x_9, x_10, x_25); +lean_dec_ref(x_7); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec_ref(x_46); +x_12 = x_27; +x_13 = x_28; +x_14 = x_8; +x_15 = x_9; +x_16 = x_10; +x_17 = x_47; +goto block_21; +} +else +{ +lean_dec_ref(x_27); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +return x_46; +} +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_22); +if (x_48 == 0) +{ +return x_22; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_22, 0); +x_50 = lean_ctor_get(x_22, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_22); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___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; uint8_t x_13; lean_object* x_14; +x_12 = lean_unbox(x_3); +x_13 = lean_unbox(x_5); +x_14 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__0(x_1, x_2, x_12, x_4, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___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) { +_start: +{ +uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_unbox(x_1); +x_11 = lean_unbox(x_3); +x_12 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest___lam__1(x_10, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttrAndSuggest___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; uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_unbox(x_3); +x_13 = lean_unbox(x_5); +x_14 = lean_unbox(x_6); +x_15 = l_Lean_Meta_Grind_addEMatchAttrAndSuggest(x_1, x_2, x_12, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11); +return x_15; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr___lam__0(lean_object* x_1, lean_object* x_2) { _start: { @@ -61032,6 +62422,7 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object lean_object* initialize_Lean_Message(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_FVarSubst(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Match_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_TryThis(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_EMatchTheorem(uint8_t builtin, lean_object* w) { lean_object * res; @@ -61073,6 +62464,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Match_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_TryThis(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default___closed__0 = _init_l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default___closed__0); l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedSymbolPriorities_default___closed__1(); @@ -61394,36 +62788,38 @@ l_Lean_Meta_Grind_instHashableEMatchTheoremKind___closed__0 = _init_l_Lean_Meta_ lean_mark_persistent(l_Lean_Meta_Grind_instHashableEMatchTheoremKind___closed__0); l_Lean_Meta_Grind_instHashableEMatchTheoremKind = _init_l_Lean_Meta_Grind_instHashableEMatchTheoremKind(); lean_mark_persistent(l_Lean_Meta_Grind_instHashableEMatchTheoremKind); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__0 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__0); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__1 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__1); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__2 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__2); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__3 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__3); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__4 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__4); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__5 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__5); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__6 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__6); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__7 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__7); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__8 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__8); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__9 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__9); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__10 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__10); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__11 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__11); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__12); +l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__13 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttributeCore___closed__13); l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__0 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__0); l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__1); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__2 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__2); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__3 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__3); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__4 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__4); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__5 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__5); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__6 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__6); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__7 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__7); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__8 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__8); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__9 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__9); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__10 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__10); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__11 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__11); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__12 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__12); -l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__13 = _init_l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheoremKind_toAttribute___closed__13); -l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0 = _init_l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0(); -lean_mark_persistent(l_panic___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure_spec__0___closed__0); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__0(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__0); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_EMatchTheoremKind_explainFailure___closed__1(); @@ -61601,8 +62997,6 @@ l_Lean_Meta_Grind_ppPattern___closed__7 = _init_l_Lean_Meta_Grind_ppPattern___cl lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__7); l_Lean_Meta_Grind_ppPattern___closed__8 = _init_l_Lean_Meta_Grind_ppPattern___closed__8(); lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__8); -l_Lean_Meta_Grind_ppPattern___closed__9 = _init_l_Lean_Meta_Grind_ppPattern___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__9); l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKind_repr___closed__0 = _init_l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKind_repr___closed__0(); lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKind_repr___closed__0); l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKind_repr___closed__1 = _init_l_Lean_Meta_Grind_NormalizePattern_instReprPatternArgKind_repr___closed__1(); @@ -61687,6 +63081,8 @@ l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___redArg___closed__1); l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___redArg___closed__2 = _init_l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___redArg___closed__2(); lean_mark_persistent(l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt_spec__1_spec__1___redArg___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lam__0___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lam__0___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lam__0___closed__0); l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___lam__0___closed__0 = _init_l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___lam__0___closed__0(); lean_mark_persistent(l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___lam__0___closed__0); l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___lam__0___closed__1 = _init_l_Lean_logAt___at___Lean_log___at___Lean_logInfo___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_logPatternWhen_spec__2_spec__2_spec__2___lam__0___closed__1(); @@ -61938,6 +63334,36 @@ l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lam__0___closed__0 = _init_l_Lean_M lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lam__0___closed__0); l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lam__0___closed__1 = _init_l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lam__0___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lam__0___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__0); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ensureNoMinIndexable___closed__1); +l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__0 = _init_l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__0(); +lean_mark_persistent(l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__0); +l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1 = _init_l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1(); +lean_mark_persistent(l_List_toString___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save_spec__1___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__0); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_save___closed__2); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__0 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__0(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__0); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__1 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__1); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__2 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__2); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__3 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__3); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__4 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__4); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__5 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__5); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__6 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__6); +l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__7 = _init_l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchAttrAndSuggest___closed__7); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c index 8cf7e4b8a5..a64ca7fa9e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c @@ -32,7 +32,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuilti static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__2; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__7; LEAN_EXPORT lean_object* l_Lean_addTrace___at___Lean_Meta_Grind_propagateForallPropUp_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_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(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* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(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*); static lean_object* l_Lean_Meta_Grind_simpForall___closed__25; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_propagateForallPropUp_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simpForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2944,7 +2944,7 @@ _start: lean_object* x_10; uint8_t x_11; lean_object* x_12; x_10 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f___closed__0; x_11 = 0; -x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(x_1, x_10, x_2, x_3, x_4, x_11, x_11, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(x_1, x_10, x_2, x_3, x_4, x_11, x_11, x_11, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_12) == 0) { return x_12; @@ -3315,7 +3315,7 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems(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; lean_object* x_20; lean_object* x_71; lean_object* x_72; 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; 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_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; 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_136; +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_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_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_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_136; lean_inc(x_9); lean_inc_ref(x_8); lean_inc(x_7); @@ -3697,12 +3697,12 @@ lean_dec_ref(x_171); x_176 = lean_ctor_get(x_173, 2); lean_inc(x_176); lean_dec_ref(x_173); -x_106 = x_156; -x_107 = x_158; -x_108 = x_161; -x_109 = x_176; -x_110 = x_153; -x_111 = x_139; +x_106 = x_153; +x_107 = x_176; +x_108 = x_156; +x_109 = x_139; +x_110 = x_158; +x_111 = x_161; x_112 = x_168; x_113 = x_140; x_114 = x_141; @@ -3731,12 +3731,12 @@ x_180 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_isNewPa if (x_180 == 0) { lean_dec(x_179); -x_106 = x_156; -x_107 = x_158; -x_108 = x_161; -x_109 = x_178; -x_110 = x_153; -x_111 = x_139; +x_106 = x_153; +x_107 = x_178; +x_108 = x_156; +x_109 = x_139; +x_110 = x_158; +x_111 = x_161; x_112 = x_168; x_113 = x_140; x_114 = x_141; @@ -3773,12 +3773,12 @@ x_183 = lean_ctor_get(x_179, 3); lean_inc(x_183); lean_dec(x_179); x_184 = lean_array_push(x_168, x_183); -x_106 = x_156; -x_107 = x_158; -x_108 = x_161; -x_109 = x_178; -x_110 = x_153; -x_111 = x_139; +x_106 = x_153; +x_107 = x_178; +x_108 = x_156; +x_109 = x_139; +x_110 = x_158; +x_111 = x_161; x_112 = x_184; x_113 = x_140; x_114 = x_141; @@ -4316,15 +4316,15 @@ lean_dec_ref(x_86); x_91 = lean_ctor_get(x_89, 2); lean_inc(x_91); lean_dec_ref(x_89); -x_92 = lean_nat_dec_eq(x_91, x_74); +x_92 = lean_nat_dec_eq(x_91, x_73); lean_dec(x_91); if (x_92 == 0) { -lean_dec_ref(x_76); -lean_dec(x_75); +lean_dec_ref(x_75); +lean_dec_ref(x_74); lean_dec_ref(x_72); -lean_dec_ref(x_71); -x_11 = x_74; +lean_dec(x_71); +x_11 = x_73; x_12 = x_77; x_13 = x_78; x_14 = x_79; @@ -4340,12 +4340,12 @@ else { lean_object* x_93; lean_object* x_94; x_93 = lean_alloc_ctor(8, 0, 1); -lean_ctor_set_uint8(x_93, 0, x_73); +lean_ctor_set_uint8(x_93, 0, x_76); lean_inc(x_84); lean_inc_ref(x_83); lean_inc(x_82); lean_inc_ref(x_81); -x_94 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f(x_76, x_72, x_93, x_71, x_81, x_82, x_83, x_84, x_90); +x_94 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f(x_74, x_75, x_93, x_72, x_81, x_82, x_83, x_84, x_90); if (lean_obj_tag(x_94) == 0) { lean_object* x_95; @@ -4354,11 +4354,11 @@ lean_inc(x_95); if (lean_obj_tag(x_95) == 0) { lean_object* x_96; -lean_dec(x_75); +lean_dec(x_71); x_96 = lean_ctor_get(x_94, 1); lean_inc(x_96); lean_dec_ref(x_94); -x_11 = x_74; +x_11 = x_73; x_12 = x_77; x_13 = x_78; x_14 = x_79; @@ -4387,14 +4387,14 @@ lean_inc(x_80); lean_inc_ref(x_79); lean_inc(x_78); lean_inc(x_77); -x_99 = l_Lean_Meta_Grind_activateTheorem(x_98, x_75, x_77, x_78, x_79, x_80, x_81, x_82, x_83, x_84, x_97); +x_99 = l_Lean_Meta_Grind_activateTheorem(x_98, x_71, x_77, x_78, x_79, x_80, x_81, x_82, x_83, x_84, x_97); if (lean_obj_tag(x_99) == 0) { lean_object* x_100; x_100 = lean_ctor_get(x_99, 1); lean_inc(x_100); lean_dec_ref(x_99); -x_11 = x_74; +x_11 = x_73; x_12 = x_77; x_13 = x_78; x_14 = x_79; @@ -4416,7 +4416,7 @@ lean_dec(x_80); lean_dec_ref(x_79); lean_dec(x_78); lean_dec(x_77); -lean_dec(x_74); +lean_dec(x_73); lean_dec_ref(x_1); return x_99; } @@ -4433,8 +4433,8 @@ lean_dec(x_80); lean_dec_ref(x_79); lean_dec(x_78); lean_dec(x_77); -lean_dec(x_75); -lean_dec(x_74); +lean_dec(x_73); +lean_dec(x_71); lean_dec_ref(x_1); x_101 = !lean_is_exclusive(x_94); if (x_101 == 0) @@ -4465,10 +4465,10 @@ lean_inc(x_120); lean_inc_ref(x_119); lean_inc(x_118); lean_inc_ref(x_117); -lean_inc_ref(x_106); -lean_inc_ref(x_107); -lean_inc_ref(x_111); -x_123 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f(x_111, x_107, x_122, x_106, x_117, x_118, x_119, x_120, x_121); +lean_inc_ref(x_108); +lean_inc_ref(x_110); +lean_inc_ref(x_109); +x_123 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f(x_109, x_110, x_122, x_108, x_117, x_118, x_119, x_120, x_121); if (lean_obj_tag(x_123) == 0) { lean_object* x_124; @@ -4482,8 +4482,8 @@ x_125 = lean_ctor_get(x_123, 1); lean_inc(x_125); lean_dec_ref(x_123); x_71 = x_106; -x_72 = x_107; -x_73 = x_108; +x_72 = x_108; +x_73 = x_107; x_74 = x_109; x_75 = x_110; x_76 = x_111; @@ -4513,8 +4513,8 @@ if (x_128 == 0) { lean_dec(x_127); x_71 = x_106; -x_72 = x_107; -x_73 = x_108; +x_72 = x_108; +x_73 = x_107; x_74 = x_109; x_75 = x_110; x_76 = x_111; @@ -4540,8 +4540,8 @@ lean_inc(x_116); lean_inc_ref(x_115); lean_inc(x_114); lean_inc(x_113); -lean_inc(x_110); -x_129 = l_Lean_Meta_Grind_activateTheorem(x_127, x_110, x_113, x_114, x_115, x_116, x_117, x_118, x_119, x_120, x_126); +lean_inc(x_106); +x_129 = l_Lean_Meta_Grind_activateTheorem(x_127, x_106, x_113, x_114, x_115, x_116, x_117, x_118, x_119, x_120, x_126); if (lean_obj_tag(x_129) == 0) { lean_object* x_130; @@ -4549,8 +4549,8 @@ x_130 = lean_ctor_get(x_129, 1); lean_inc(x_130); lean_dec_ref(x_129); x_71 = x_106; -x_72 = x_107; -x_73 = x_108; +x_72 = x_108; +x_73 = x_107; x_74 = x_109; x_75 = x_110; x_76 = x_111; @@ -4575,11 +4575,11 @@ lean_dec(x_116); lean_dec_ref(x_115); lean_dec(x_114); lean_dec(x_113); -lean_dec_ref(x_111); -lean_dec(x_110); -lean_dec(x_109); -lean_dec_ref(x_107); -lean_dec_ref(x_106); +lean_dec_ref(x_110); +lean_dec_ref(x_109); +lean_dec_ref(x_108); +lean_dec(x_107); +lean_dec(x_106); lean_dec_ref(x_1); return x_129; } @@ -4598,11 +4598,11 @@ lean_dec_ref(x_115); lean_dec(x_114); lean_dec(x_113); lean_dec_ref(x_112); -lean_dec_ref(x_111); -lean_dec(x_110); -lean_dec(x_109); -lean_dec_ref(x_107); -lean_dec_ref(x_106); +lean_dec_ref(x_110); +lean_dec_ref(x_109); +lean_dec_ref(x_108); +lean_dec(x_107); +lean_dec(x_106); lean_dec_ref(x_1); x_131 = !lean_is_exclusive(x_123); if (x_131 == 0) @@ -8394,17 +8394,17 @@ block_446: { if (x_26 == 0) { -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_16); lean_dec_ref(x_15); lean_dec(x_14); -x_10 = x_20; +x_10 = x_24; goto block_13; } else @@ -8423,30 +8423,30 @@ x_31 = lean_name_eq(x_29, x_30); if (x_31 == 0) { lean_object* x_32; uint8_t x_33; -lean_dec(x_25); -lean_dec_ref(x_24); lean_dec(x_21); +lean_dec(x_20); +lean_dec_ref(x_19); x_32 = l_Lean_Meta_Grind_simpForall___closed__4; x_33 = lean_name_eq(x_29, x_32); lean_dec(x_29); if (x_33 == 0) { lean_dec_ref(x_27); -lean_dec_ref(x_23); -lean_dec(x_22); -lean_dec_ref(x_19); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_18); lean_dec_ref(x_16); lean_dec_ref(x_15); lean_dec(x_14); -x_10 = x_20; +x_10 = x_24; goto block_13; } else { lean_object* x_34; lean_inc_ref(x_15); -x_34 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_34 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -8583,16 +8583,16 @@ lean_dec_ref(x_75); if (lean_obj_tag(x_77) == 0) { lean_dec_ref(x_74); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); lean_dec(x_14); -x_10 = x_20; +x_10 = x_24; goto block_13; } else @@ -8615,12 +8615,12 @@ lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; x_83 = lean_ctor_get(x_79, 0); x_84 = lean_ctor_get(x_81, 0); x_85 = lean_ctor_get(x_81, 1); +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_86 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_86 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_86) == 0) { lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; @@ -8634,7 +8634,7 @@ x_89 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed) lean_closure_set(x_89, 0, x_84); lean_inc_ref(x_15); lean_inc(x_14); -x_90 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_89, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_88); +x_90 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_89, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_88); if (lean_obj_tag(x_90) == 0) { uint8_t x_91; @@ -8783,11 +8783,11 @@ lean_free_object(x_79); lean_dec(x_83); lean_free_object(x_77); lean_dec_ref(x_74); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -8821,12 +8821,12 @@ x_140 = lean_ctor_get(x_81, 1); lean_inc(x_140); lean_inc(x_139); lean_dec(x_81); +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_141 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_141 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_141) == 0) { lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; @@ -8840,7 +8840,7 @@ x_144 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed lean_closure_set(x_144, 0, x_139); lean_inc_ref(x_15); lean_inc(x_14); -x_145 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_144, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_143); +x_145 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_144, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_143); if (lean_obj_tag(x_145) == 0) { lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t 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; @@ -8949,11 +8949,11 @@ lean_free_object(x_79); lean_dec(x_138); lean_free_object(x_77); lean_dec_ref(x_74); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -9001,12 +9001,12 @@ if (lean_is_exclusive(x_176)) { lean_dec_ref(x_176); x_180 = lean_box(0); } +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_181 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_181 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_181) == 0) { lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; @@ -9020,7 +9020,7 @@ x_184 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed lean_closure_set(x_184, 0, x_178); lean_inc_ref(x_15); lean_inc(x_14); -x_185 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_184, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_183); +x_185 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_184, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_183); if (lean_obj_tag(x_185) == 0) { 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; @@ -9134,11 +9134,11 @@ lean_dec(x_178); lean_dec(x_177); lean_free_object(x_77); lean_dec_ref(x_74); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -9196,12 +9196,12 @@ if (lean_is_exclusive(x_218)) { lean_dec_ref(x_218); x_223 = lean_box(0); } +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_224 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_224 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_224) == 0) { lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; @@ -9215,7 +9215,7 @@ x_227 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed lean_closure_set(x_227, 0, x_221); lean_inc_ref(x_15); lean_inc(x_14); -x_228 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_227, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_226); +x_228 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_227, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_226); if (lean_obj_tag(x_228) == 0) { lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t 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; @@ -9335,11 +9335,11 @@ lean_dec(x_221); lean_dec(x_220); lean_dec(x_219); lean_dec_ref(x_74); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -9389,12 +9389,12 @@ lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; x_266 = lean_ctor_get(x_262, 0); x_267 = lean_ctor_get(x_264, 0); x_268 = lean_ctor_get(x_264, 1); +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_269 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_269 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_269) == 0) { lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; @@ -9408,7 +9408,7 @@ x_272 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed lean_closure_set(x_272, 0, x_267); lean_inc_ref(x_15); lean_inc(x_14); -x_273 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_272, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_271); +x_273 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_272, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_271); if (lean_obj_tag(x_273) == 0) { uint8_t x_274; @@ -9557,11 +9557,11 @@ lean_free_object(x_262); lean_dec(x_266); lean_free_object(x_76); lean_dec_ref(x_75); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -9595,12 +9595,12 @@ x_323 = lean_ctor_get(x_264, 1); lean_inc(x_323); lean_inc(x_322); lean_dec(x_264); +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_324 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_324 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_324) == 0) { lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; @@ -9614,7 +9614,7 @@ x_327 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed lean_closure_set(x_327, 0, x_322); lean_inc_ref(x_15); lean_inc(x_14); -x_328 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_327, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_326); +x_328 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_327, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_326); if (lean_obj_tag(x_328) == 0) { lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_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; @@ -9723,11 +9723,11 @@ lean_free_object(x_262); lean_dec(x_321); lean_free_object(x_76); lean_dec_ref(x_75); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -9775,12 +9775,12 @@ if (lean_is_exclusive(x_359)) { lean_dec_ref(x_359); x_363 = lean_box(0); } +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_364 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_364 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_364) == 0) { lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; @@ -9794,7 +9794,7 @@ x_367 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed lean_closure_set(x_367, 0, x_361); lean_inc_ref(x_15); lean_inc(x_14); -x_368 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_367, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_366); +x_368 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_367, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_366); if (lean_obj_tag(x_368) == 0) { lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; uint8_t 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; @@ -9908,11 +9908,11 @@ lean_dec(x_361); lean_dec(x_360); lean_free_object(x_76); lean_dec_ref(x_75); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -9970,12 +9970,12 @@ if (lean_is_exclusive(x_401)) { lean_dec_ref(x_401); x_406 = lean_box(0); } +lean_inc(x_23); +lean_inc_ref(x_22); lean_inc(x_18); -lean_inc_ref(x_19); -lean_inc(x_22); -lean_inc_ref(x_23); +lean_inc_ref(x_25); lean_inc_ref(x_15); -x_407 = l_Lean_Meta_getLevel(x_15, x_23, x_22, x_19, x_18, x_20); +x_407 = l_Lean_Meta_getLevel(x_15, x_25, x_18, x_22, x_23, x_24); if (lean_obj_tag(x_407) == 0) { lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; @@ -9989,7 +9989,7 @@ x_410 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpForall___lam__0___boxed lean_closure_set(x_410, 0, x_404); lean_inc_ref(x_15); lean_inc(x_14); -x_411 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_410, x_21, x_24, x_25, x_23, x_22, x_19, x_18, x_409); +x_411 = l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Grind_simpForall_spec__0___redArg(x_14, x_15, x_410, x_21, x_19, x_20, x_25, x_18, x_22, x_23, x_409); if (lean_obj_tag(x_411) == 0) { lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; uint8_t 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; @@ -10109,11 +10109,11 @@ lean_dec(x_404); lean_dec(x_403); lean_dec(x_402); lean_dec_ref(x_75); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_15); @@ -10148,11 +10148,11 @@ else lean_object* x_444; lean_object* x_445; lean_dec_ref(x_28); lean_dec_ref(x_27); -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_23); -lean_dec(x_22); +lean_dec_ref(x_25); +lean_dec(x_23); +lean_dec_ref(x_22); lean_dec(x_21); +lean_dec(x_20); lean_dec_ref(x_19); lean_dec(x_18); lean_dec_ref(x_16); @@ -10161,7 +10161,7 @@ lean_dec(x_14); x_444 = l_Lean_Meta_Grind_simpForall___closed__0; x_445 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_445, 0, x_444); -lean_ctor_set(x_445, 1, x_20); +lean_ctor_set(x_445, 1, x_24); return x_445; } } @@ -10172,14 +10172,14 @@ uint8_t x_455; x_455 = l_Lean_Expr_isApp(x_16); if (x_455 == 0) { -x_18 = x_453; -x_19 = x_452; -x_20 = x_454; +x_18 = x_451; +x_19 = x_448; +x_20 = x_449; x_21 = x_447; -x_22 = x_451; -x_23 = x_450; -x_24 = x_448; -x_25 = x_449; +x_22 = x_452; +x_23 = x_453; +x_24 = x_454; +x_25 = x_450; x_26 = x_455; goto block_446; } @@ -10190,14 +10190,14 @@ x_456 = l_Lean_Expr_getAppNumArgs(x_16); x_457 = lean_unsigned_to_nat(2u); x_458 = lean_nat_dec_eq(x_456, x_457); lean_dec(x_456); -x_18 = x_453; -x_19 = x_452; -x_20 = x_454; +x_18 = x_451; +x_19 = x_448; +x_20 = x_449; x_21 = x_447; -x_22 = x_451; -x_23 = x_450; -x_24 = x_448; -x_25 = x_449; +x_22 = x_452; +x_23 = x_453; +x_24 = x_454; +x_25 = x_450; x_26 = x_458; goto block_446; } @@ -10514,7 +10514,7 @@ lean_inc_ref(x_22); lean_dec_ref(x_15); if (lean_obj_tag(x_22) == 6) { -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; uint8_t x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; uint8_t x_124; uint8_t x_154; +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_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; uint8_t x_124; uint8_t x_154; x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 2); @@ -10823,13 +10823,13 @@ block_123: if (x_97 == 0) { uint8_t x_98; -x_98 = l_Lean_Expr_hasLooseBVars(x_96); +x_98 = l_Lean_Expr_hasLooseBVars(x_95); if (x_98 == 0) { -if (x_94 == 0) +if (x_96 == 0) { -lean_dec_ref(x_96); lean_dec_ref(x_95); +lean_dec_ref(x_94); lean_dec(x_23); x_26 = x_2; x_27 = x_3; @@ -10848,18 +10848,18 @@ lean_dec(x_3); lean_dec_ref(x_2); x_99 = 0; lean_inc_ref(x_25); -x_100 = l_Lean_mkLambda(x_23, x_99, x_25, x_95); +x_100 = l_Lean_mkLambda(x_23, x_99, x_25, x_94); lean_inc_ref(x_100); lean_inc_ref(x_25); lean_inc_ref(x_19); x_101 = l_Lean_mkAppB(x_19, x_25, x_100); -lean_inc_ref(x_96); -x_102 = l_Lean_mkAnd(x_101, x_96); +lean_inc_ref(x_95); +x_102 = l_Lean_mkAnd(x_101, x_95); x_103 = l_Lean_Expr_constLevels_x21(x_19); lean_dec_ref(x_19); x_104 = l_Lean_Meta_Grind_simpExists___redArg___closed__8; x_105 = l_Lean_mkConst(x_104, x_103); -x_106 = l_Lean_mkApp3(x_105, x_25, x_100, x_96); +x_106 = l_Lean_mkApp3(x_105, x_25, x_100, x_95); x_107 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_107, 0, x_106); x_108 = lean_alloc_ctor(0, 2, 1); @@ -10876,8 +10876,8 @@ return x_110; } else { -lean_dec_ref(x_96); lean_dec_ref(x_95); +lean_dec_ref(x_94); lean_dec(x_23); x_26 = x_2; x_27 = x_3; @@ -10897,18 +10897,18 @@ lean_dec(x_3); lean_dec_ref(x_2); x_111 = 0; lean_inc_ref(x_25); -x_112 = l_Lean_mkLambda(x_23, x_111, x_25, x_96); +x_112 = l_Lean_mkLambda(x_23, x_111, x_25, x_95); lean_inc_ref(x_112); lean_inc_ref(x_25); lean_inc_ref(x_19); x_113 = l_Lean_mkAppB(x_19, x_25, x_112); -lean_inc_ref(x_95); -x_114 = l_Lean_mkAnd(x_95, x_113); +lean_inc_ref(x_94); +x_114 = l_Lean_mkAnd(x_94, x_113); x_115 = l_Lean_Expr_constLevels_x21(x_19); lean_dec_ref(x_19); x_116 = l_Lean_Meta_Grind_simpExists___redArg___closed__10; x_117 = l_Lean_mkConst(x_116, x_115); -x_118 = l_Lean_mkApp3(x_117, x_25, x_112, x_95); +x_118 = l_Lean_mkApp3(x_117, x_25, x_112, x_94); x_119 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_119, 0, x_118); x_120 = lean_alloc_ctor(0, 2, 1); @@ -10974,17 +10974,17 @@ x_133 = l_Lean_Expr_appArg_x21(x_24); x_134 = l_Lean_Expr_hasLooseBVars(x_132); if (x_134 == 0) { -x_94 = x_131; -x_95 = x_132; -x_96 = x_133; +x_94 = x_132; +x_95 = x_133; +x_96 = x_131; x_97 = x_131; goto block_123; } else { -x_94 = x_131; -x_95 = x_132; -x_96 = x_133; +x_94 = x_132; +x_95 = x_133; +x_96 = x_131; x_97 = x_129; goto block_123; }